#1
|
|||
|
|||
AutoHotKey script to play Empire No Limit Games
Well I just got finished with my AHK script. Here's what the hotkeys do and later down I'll post the code.
Numpad0 - Fold NumpadDot - Check/Call NumpadEnter - Confirm raise Numpad1-9 - bets big blind, one being a call, 2 being 2x the blind, 3 is 3x and so forth NumpadAdd - Each time you press the value of the raise goes up by one unit (in my case $.25) NumpadSub - Each time you press the value of the raise goes down by one unit 1 - Presses the fold checkmark button 2 - Presses check/fold checkmark button 3 - Presses check checkmark button 4 - Presses Call the Big Blind checkmark button 5 - Presses Bet Pot checkmark button [ QUOTE ] ;Fold Numpad0:: MouseClick, left, 240, 485 ;Location of the fold button return ;Check/Call NumpadDot:: MouseClick, left, 400, 485 ;Location of the check/call button return ;Bet 1x Big Blind Numpad1:: MouseClick, left, 400, 485 ;Same as check/call button return ;Bet 2x Big Blind Numpad2:: ControlSetText,Edit2,0.50,A MouseClick, left, 560, 480 return ;Bet 3x Big Blind Numpad3:: ControlSetText,Edit2,0.75,A MouseClick, left, 560, 480 return ;Bet 4x Big Blind Numpad4:: ControlSetText,Edit2,1,A MouseClick, left, 560, 480 return ;Bet 5x Big Blind Numpad5:: ControlSetText,Edit2,1.25,A MouseClick, left, 560, 480 return ;Bet 6x Big Blind Numpad6:: ControlSetText,Edit2,1.50,A MouseClick, left, 560, 480 return ;Bet 7x Big Blind Numpad7:: ControlSetText,Edit2,1.75,A MouseClick, left, 560, 480 return ;Bet 8x Big Blind Numpad8:: ControlSetText,Edit2,2,A MouseClick, left, 560, 480 return ;Bet 9x Big Blind Numpad9:: ControlSetText,Edit2,2.25,A MouseClick, left, 560, 480 return ;Raise bet by 1x Big Blind NumpadAdd:: ControlGetText,CurrentBet,Edit2,A NewBet := (CurrentBet + 0.25) ControlSetText,Edit2,%NewBet%,A return ;Lower bet by 1x Big Blind NumpadSub:: ControlGetText,CurrentLesserBet,Edit2,A NewLesserBet := (CurrentLesserBet - 0.25) ControlSetText,Edit2,%NewLesserBet%,A return ;Presses raise button after you set amount to confirm bet NumpadEnter:: MouseClick, left, 560, 480 return ;Press 1 to put check mark on fold button 1::MouseClick,left,178,470 return ;Press 2 to put check mark on check/fold button 2::MouseClick,left,178,500 return ;press 3 to put check mark on check button 3::MouseClick,left,337,474 return ;Press 4 to put check mark on Call Big Blind button 4::MouseClick,left,340,500 return ;press 5 to put check mark on Bet Pot button 5::MouseClick,left,509,472 return [/ QUOTE ] To use this just download AutoHotKey then save the above text into a text file, name it what you want and end it with a .ahk extension. Just double click it to use the hotkeys I set out. You can easily change the amounts of bets used by each key and also the keys used. Right now I've got the x,y coordinates set up for Empire poker...so I think it should work for all party skins but haven't tested it yet. I'll post a revised version for CrypticLogic sites in a bit. Still on my to do list 1. If possible hotkey a few buttons to switch focus from one game to the next. 2. If possible emulate MTH's functionality. Don't know how I would go about that though, gonna leave a post on AHK's forums to see if the scripters over there can help me. So...should I add anything else? |
|
|