View Single Post
Rage2100
Old 08-11-2009, 06:14 PM #33 (permalink)  
Rage2100's Avatar
Full House

Join Date: Jan 2007
Location: UK
Posts: 719
Rage2100 is on a distinguished road
Thanks for testing that, Naka. Here is a slightly better version, as you only have to enter the co-ordinates once, at the top of the script.

Code:
X=368
Y=126

XButton2::
MouseGetPos,,,tableID
WinGetTitle, title, ahk_id %tableID%
IfNotInString, title, overlay
{
   StringGetPos, move_pos, title, $
    move_pos:=move_pos-3
     StringLeft, title, title, %move_pos%
      title=%title%overlay
       ControlClick, x%X% y%Y%, %title%
} else
ControlClick, x%X% y%Y%, %title%
return
Reply With Quote