Sign in to follow this  
Followers 0
rocknload

error code when i try to set up a hotkey

4 posts in this topic

hi..when i try to setup a hotkey i get an error msg...

here's an example of a code that autoit gives me problem with:

HotKeySet("{ESC}"," ;qt")

Func qt()

Exit

EndFunc

While 1

$i=mousegetpos()

$c=PixelSearch($i[0]-50 ,$i[1]-50,$i[0]+50,$i[1]+50,14680023)

If IsArray($c) Then

MouseMove($c[0],$c[1],0)

else

$c= PixelSearch($i[0]-150,$i[1]-150,$i[0]+150,$i[1]+15 0,14680023)

If IsArray($c) Then MouseMove($c[0],$c[1],0)

endif

WEnd

now i dont know if the whole code is wrong.. but everytime i try to use hotkeyset i get an error code..can someone please help me?

Share this post


Link to post
Share on other sites



you have a ' ; ' before qt....

just use

HotKeySet("{ESC}","qt")
Func qt()
Exit
EndFunc

-.- i feel so stupid...meh its my first day using autoit...

thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0