#1
|
|||
|
|||
Pokerstars Autohotkeys script
note- i edited the keys - switching them around a bit
Hello fellow posters, Through some trial and error I put together some script for the buttons on Pokerstars. This is in addition to the script availablehere. current key map (from the website above) upper left table - Numpad7 lower left table - Numpad1 upper right table - Numpad9 lower right table - Numpad3 Fold - Numpad4 Call - Numpad5 Raise - Numpad6 reletive motion buttons - click window to the... up - up arrow left - left arrow right - right arrow down - down arrow my additions to checkmark the following boxes check/fold - NumpadAdd (the Numpad +) fold - Numpad0 check and later becomes call - NumpadEnter those are the only boxes i use, if you need more it should be hard to add a few more with the coordinates from these. also, if you accidentally press Fold instead of check and the reminder comes up you just press enter on the keyboard to check. list of all keyboard keys and their hotkey code You can change the keys that press the buttons very easily if you want, just substitute the proper key code. Please note that I am no programmer and this is basically just a patchwork job. Please feel free to edit or revise if you see any problems. I have only had time to test it on a couple tables so far today so try it with one before moving to many (i have used the functions without being able to click the buttons with great success....four tables seems the most that this would work well...one in each corner). Okay, simply past the following into notepad and end the file name with .ahk and you are in business. Save it to the desktop and click on it and it is running. I added Alt x which suspends/restores the script so you can type and surf ect. Finally, make sure the numlock button has been press otherwise the numlock hotkeys will not work. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; this is to suspend the hotkeys, so you can type normally/browse web/etc ; note: ! = alt, ^ = ctrl.. so !t = alt+t !x:: Suspend, Toggle ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;; ; Checkmark the Check/Fold button with NumpadAdd NumpadAdd:: ;MouseClick, left, 415, 508 ;Sleep, 100 MouseClick, left, 415, 508 Sleep, 100 return ; Checkmark the Fold button with Numpad0 Numpad0:: ;MouseClick, left, 415, 522 ;Sleep, 100 MouseClick, left, 415, 522 Sleep, 100 return ; Checkmark the Check which later becomes the Call button (in the same spot) with NumpadEnter NumpadEnter:: ;MouseClick, left, 550, 508 ;Sleep, 100 MouseClick, left, 550, 508 Sleep, 100 return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Define keys for relative motion to the right, to the left, etc. ; For example, "Numpad6" goes one window to the right. ; This depends on where the mouse starts. ; WindowLeft Left:: CoordMode, Mouse, Relative MouseMove,-400,300 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowDown Down:: CoordMode, Mouse, Relative MouseMove,400,900 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowRight Right:: CoordMode, Mouse, Relative MouseMove,1200,300 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowUp Up:: CoordMode, Mouse, Relative MouseMove,400,-300 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Define keys for fold, check/call, and bet/raise ; ; The key for each action is defined by the string before the double colon. ; You can change the key like this: ; Regular keys: a, b, c, 1, 2, 3, etc. ; Function keys: F1, F2, etc. ; Numeric keypad: Numpad1, Numpad2, NumpadPlus, etc ; Arrows keys: Left, Right, Up, Down ; Control key prefix: add caret in front, like this: ^f, ^c, ^r ; Alt key prefix: add exclamantion point in front: !f, !c, !r ; Windows key prefix: add hash mark in front: #f, #c, #r ; Fold Numpad4:: ;MouseClick, left, 470, 530 ;Sleep, 100 MouseClick, left, 470, 550 Sleep, 100 return ; Check/Call Numpad5:: ;MouseClick, left, 600, 505 ;Sleep, 100 MouseClick, left, 600, 550 Sleep, 100 return ; Bet/Raise Numpad6:: ;MouseClick, left, 720, 505 ;Sleep, 100 MouseClick, left, 720, 550 Sleep, 100 return ; AutoPost NumpadSub:: MouseClick, left, 16, 425 Sleep, 100 return ; SitOut NumpadMult:: MouseClick, left, 16, 405 Sleep, 100 return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Define keys for absolute mouse motion to a particular window. ; For example, "Numpad7" always goes to the upper-left window. ; This does not depend on where the mouse starts. ; WindowNW Numpad7:: CoordMode, Mouse, Screen MouseMove,400,300 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowNE Numpad9:: CoordMode, Mouse, Screen MouseMove,1200,300 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowSW Numpad1:: CoordMode, Mouse, Screen MouseMove,400,900 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return ; WindowSE Numpad3:: CoordMode, Mouse, Screen MouseMove,1200,900 MouseGetPos, curPosX, curPosY, curWin WinGetTitle, title, ahk_id %curWin% WinActivate, %title% return |
|
|