Got it from Spawnova (i think)
Code: Select all
CoordMode,mouse,screen ;tells ahk that any mouse positions will be treated as relative to screen and not the active window
;If you want the mouse to be relative to the window delete this line or change screen to window
r:: ;press f1 to activate hotkey, change to whatever you want
MouseGetPos,x,y ;store the current mouse position as x and y
Click,1283,466 ;click at pos
sleep, 100
Click,768,551
sleep,200
Click,778,682
sleep,6500
Click,768,621
s::
MouseMove,x,y ;move the mouse back to the stored mouse position
return ;return the script to idle
Sorry if this is AHK 1, again i am very noob at AHK so i cant tell the difference between AHK 1 and AHK 2, if so, move to AHK1 forums or something
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]