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

How can i press keyboard any key ?

$
0
0
How can i press keyboard any key ?
HotKeySet ("g") is it true ?

First time , i am using autoit, and i don't know c++ ,  i am noob, sory it :)

#include <ImageSearch.au3>

HotKeySet("{ESC}", "Terminate")
$x = 0
$y = 0
While 1
$res1 = _imagesearch('u.png',0, $x, $y, 0)
If $res1 = 1 Then
MouseMove($x, $y,10)
HotKeySet ("g")
EndIf
WEnd
Func Terminate()
Exit 0
EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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