Hello guys, I have a question.
Whats wrong with the following code? when I press the i key mouse wont move and click a npc :/
Whats wrong with the following code? when I press the i key mouse wont move and click a npc :/
Code:
#include <ImageSearch.au3>
HotKeySet("i", "Start")
$X = 0
$Y = 0
Func Start()
$Search = _ImageSearch('ui.png', 0, $X, $Y, 0)
If $Search = 1 Then
MouseMove($X, $Y, 10)
EndIf
EndFunc
while 1
sleep(100)
WEnd