|
Thanks for that, it works a treat, I changed the bit for the wheelup/wheeldown from click to control click cause it was dragging my cursor again, and thought that might be the reason why I cant get my hotkeys to work, so I just went back to your original code and again couldn't get any of my hotkeys to work. This is what the script looks like so far:
Code:
SetFormat, Float, 0.2 ;Set to 2 decimal places
BB=0.04 ;BB size
SB=0.02 ;SB size
BT=0 ;Set bet total to zero
FBX=203 ;Fold button position X
FBY=437 ;Fold button position Y
CBX=330 ;Check/call button position X
CBY=437 ;Check/call button position Y
RBX=457 ;Raise button position X
RBY=437 ;Raise button position Y
BetBoxX=487 ;Bet box position X
BetBoxY=467 ;Bet box position Y
Esc::
MouseGetPos,,,win
ControlClick, x%FBX% y%FBY%, ahk_id %win%
return
f1::
MouseGetPos,,,win
ControlClick, x%FBX% y%FBY%, ahk_id %win%
return
f2::
MouseGetPos,,,win
ControlClick, x%FBX% y%FBY%, ahk_id %win%
return
WheelUp::
ControlClick, %BetBoxX%, %BetBoxY%
Send {HOME}+{END}^c
BT:= clipboard
BT+=BB
Send {HOME}+{END}{Del}%BT%
return
WheelDown::
ControlClick, %BetBoxX%, %BetBoxY%
Send {HOME}+{END}^c
BT:= clipboard
BT-=SB
Send {HOME}+{END}{Del}%BT%
return
I have tried different combinations for the hotkeys I tried it as it was ControlClick, x%FBX% y%FBY%, ahk_id %win% then this
ControlClick, x203%FBX% y437%FBY%, ahk_id %win% then this
ControlClick, x203 y437, ahk_id %win%
|