Hi All,
Been trying to to get a script to work that does the following:
when a particular game is running, when I click the * key then move mouse to position A, left click, move to position B, left click.
AHK allows the script below to run, but when I click on the * key nothing happens.
#IfWinActive ("ahk_class xxx") && ("ahk_exe xxx.exe")
*::
MouseMove, 939, 985
MouseClick, Left
MouseMove, 831, 168
MouseClick, left
return
I've tried using the SetCursorPosition
#IfWinActive ("ahk_class xxx") && ("ahk_exe xxx.exe")
*::
DllCall("SetCursorPos", int, 939, int, 985)
MouseClick, Left
DllCall("SetCursorPos", int, 831, int, 168)
MouseClick, left
return
And also
#IfWinActive ("ahk_class xxx") && ("ahk_exe xxx.exe")
*::
SendEvent {Click 939, 985}
MouseClick, Left
SendEvent {Click 831, 168}
MouseClick, left
return
I've also removed the IfWinActive line for all three, none work.
What am I missing?
Help with moving mouse to a position, left click and repeat in different position
Re: Help with moving mouse to a position, left click and repeat in different position
Replace * with 8
* is a modifier symbol
* is a modifier symbol
Re: Help with moving mouse to a position, left click and repeat in different position
You might want: NumpadMult::
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: Bing [Bot] and 86 guests