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 ?