Code: Select all
MouseIsOverLeft()
{ MouseGetPos,x
Return x < 10
}
Code: Select all
MouseIsOverLeft()
{ MouseGetPos,x
Return x < 10
}
You can find the window title using window spy. (Right click any running ahk script in your try and you can open window spy. Hover over the game and the first line in the first box is window title.
Code: Select all
SetTitleMatchMode, 2
Code: Select all
if not WinExist("X1") or not WinExist("X2")
{
;stuff
}
Code: Select all
#If WinActive("ahk_id "var)
LButton::
blah blah
return