Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Need easy help

$
0
0

hi all 
i was watching this vid
http://www.youtube.com/watch?v=4comGjTLGe4

it must move the mouse when arrows are clicked

 

my code:

AutoIt         
HotKeySet("(UP)", "up") HotKeySet("(DOWN)", "down") HotKeySet("(RIGHT)", "right") HotKeySet("(LEFT)", "left") While 1 = 1 Sleep(1000) WEnd Func up() $pos = MouseGetPos() MouseMove($pos[0], $pos[1] - 1, 1) EndFunc ;==>up Func down() $pos = MouseGetPos() MouseMove($pos[0], $pos[1] + 1, 1) EndFunc ;==>down Func right() $pos = MouseGetPos() MouseMove($pos[1] + 1, $pos[0], 1) EndFunc ;==>right Func left() $pos = MouseGetPos() MouseMove($pos[1] - 1, $pos[0], 1) EndFunc ;==>left

------------------------------------------------------------------------------------------------------------------------------------------------

 

 

any ideas ?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>