did some tinkering with a script. Now it checks if window under a mouse absolute window (nl holdem)
Code:
CoordMode, Mouse, Screen
; The xbutton1 mouse button clicks the fold button on the table, if you play with stacked tables behind each other than you can remove the
; at the 2 lines below, this brings the table to the bottom of the stack once you have folded.
XButton1::
MouseGetPos,XMouse,YMouse,tableID
WinGetTitle, this_title, ahk_id%tableID%
if InStr(this_title,"NL Hold'em")>0
{
IfWinExist, ahk_id %tableID%
WinGetPos, X, Y, Width, Height
ClickX := X + (.603125*Width)
ClickY := Y + (.967*Height)
MouseClick, left, ClickX, ClickY
MouseMove, XMouse, YMouse
;sleep, 50
;WinSet, Bottom,, ahk_id %tableID%
return
}
else send {XButon1}
return
; The rbutton mouse button clicks the raise button on the table, if you play with stacked tables behind each other than you can remove the ; at the 2 lines below, this brings the table to the bottom of the stack once you have folded.
RButton::
MouseGetPos,XMouse,YMouse,tableID
WinGetTitle, this_title, ahk_id%tableID%
if InStr(this_title,"NL Hold'em")>0
{
IfWinExist, ahk_id %tableID%
WinGetPos, X, Y, Width, Height
ClickX := X + (.88*Width)
ClickY := Y + (.967*Height)
MouseClick, left, ClickX, ClickY
MouseMove, XMouse, YMouse
;sleep, 50
;WinSet, Bottom,, ahk_id %tableID%
return
}
else send {rbutton}
return
; Wheelup increases bet sizing, it works better than AP's because the table doesnt have to
;be activated, the mouse only needs to be over the table.
WheelUp::
MouseGetPos,XMouse,YMouse,tableID
WinGetTitle, this_title, ahk_id%tableID%
if InStr(this_title,"NL Hold'em")>0
{
IfWinExist, ahk_id %tableID%
WinGetPos, X, Y, Width, Height
ClickX := X + (.98*Width)
ClickY := Y + (.87759336*Height)
MouseClick, left, ClickX, ClickY
;MouseMove, XMouse, YMouse
return
}
else send {Wheelup}
return
; Wheeldown decreases bet sizing, it works better than AP's because the table doesnt have to be activated, the mouse only needs to be over the table.
WheelDown::
MouseGetPos,XMouse,YMouse,tableID
WinGetTitle, this_title, ahk_id%tableID%
if InStr(this_title,"NL Hold'em")>0
{
IfWinExist, ahk_id %tableID%
WinGetPos, X, Y, Width, Height
ClickX := X + (.809*Width)
ClickY := Y + (.87759336*Height)
MouseClick, left, ClickX, ClickY
;MouseMove, XMouse, YMouse
return
}
else send {Wheeldown}
return