Re: AHK check/fold script for ipoker?
Well I went ahead wrote it. I'm not sure if the fold and check/fold check boxes are in different location on other skins. This works fine on Uncover Poker, just change the variables to suit other skins if there is a problem. I had to use the sleeps as it wouldn't register the clicks otherwise.
; --------------------
; Auto check folding
; --------------------
~!RButton::
CheckFold()
Return
CheckFold()
{
CFBoxX := 252
CFBoxY := 547
FBoxX := 252
FBoxY := 527
CButtonX := 423
CButtonY := 547
SaveMousePos()
Click
Sleep 50
WinGetPos, WindowX, WindowY, , , A
;Click the fold checkbox
MouseMove, WindowX + FBoxX, WindowY + FBoxY
Click
Sleep 50
Click
;Click the check/fold checkbox
MouseMove, WindowX + CFBoxX, WindowY + CFBoxY
Click
Sleep, 50
Click
Sleep, 50
;Click the check button if fold has been checked while a check is possible
MouseMove, WindowX + CButtonX, WindowY + CButtonY
Click
RestoreMousePos()
return
}
|