You must do the things you think you cannot do.

- Eleanor Roosevelt

Monday, May 17, 2010

Auto Hot Key

How many people use this program? I have no idea. But it should definitely be in any serious poker player's arsenal. The program allows its user to assign mouse clicks and movements to keyboard keys. Say you want to make a bet, click "B" and AHK will do the mouse actions you have "B" scripted to do. Go from sliding the mouse up and down and left clicking to just pressing "B" and you've streamlined your movements. The more you streamline such repetitive movements, the easier it is for you to play and add more tables.

I love it. It helps me play quite a few tables (a max of 12 on my current laptop setup). Anyway, I wanted to post my script, hopefully helping some other beginners jumpstart their AHK usage.

Anything with a ";" in front of it is ignored by AHK (";" signifies a comment). It's not all that complicated: put the key you want to use as a macro and follow it by "::" and some other code to tell it what to do. I have a modified version of this script that allows me to use a USB game controller =) I may post that later. Anyway, enjoy:


; Fold
u::
MouseClick, left, 367, 448
Sleep, 100
MouseClick, left, 368, 465
Sleep, 100
return

; Check/Call
i::
MouseClick, left, 480, 446
Sleep, 100
MouseClick, left, 516, 477
Sleep, 100
return

; Inc Bet Amount
o::
MouseClick, left, 670, 423
Sleep, 100
return

; Bet/Raise
p::
Random, randxcord, 630, 640
Random, randycord, 475, 485
MouseClick, left, randxcord, randycord
Sleep, 100
return

; Bet/Raise x 2
y::
MouseClick, left, 617, 423
Sleep, 100
MouseClick, left, 617, 423
Sleep, 100
MouseClick, left, 617, 423
Sleep, 100
MouseClick, left, 635, 480
Sleep, 100
return

; AutoPost
NumpadAdd::
MouseClick, left, 16, 425
Sleep, 100
return

; SitOut
NumpadSub::
MouseClick, left, 16, 405
Sleep, 100
return

;close
esc::
MouseClick, left, 682, 17
Sleep, 100
MouseClick, left, 67, 107
return

;no wait for bb
w::
MouseClick, left, 464, 439
Sleep, 100
return

;allin
del::
MouseClickDrag, L, 605, 420, 679, 420
return

;sit out next hand
a::
MouseClick, left, 15, 353
Return

;fold to any bet
d::
MouseClick, left, 15, 338
Return

;sit out next blind
s::
MouseClick, left, 15, 368
Return

;Add chips
t::
MouseClick, left, 350, 75
Sleep, 100
MouseClick, left, 300, 60
Sleep, 1000
MouseClick, left, 130, 350
Return

; WindowNW
6::
CoordMode, Mouse, Screen
MouseMove,400,300
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowNE
7::
CoordMode, Mouse, Screen
MouseMove,880,200
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowSW
8::
CoordMode, Mouse, Screen
MouseMove,200,700
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; WindowSE
9::
CoordMode, Mouse, Screen
MouseMove,900,700
MouseGetPos, curPosX, curPosY, curWin
WinGetTitle, title, ahk_id %curWin%
WinActivate, %title%
return

; Desktop1
1::
CoordMode, Mouse, Screen
Click 1157, 1032
return

; Desktop2
2::
CoordMode, Mouse, Screen
Click 1180, 1032
return

; Desktop3
3::
CoordMode, Mouse, Screen
Click 1205, 1032
return

; Desktop4
4::
CoordMode, Mouse, Screen
Click 1225, 1032
return

No comments:

Post a Comment