Jump to content

Recommended Posts

Posted

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?

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
×
×
  • Create New...