rocknload Posted August 22, 2008 Posted August 22, 2008 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?
billthecreator Posted August 22, 2008 Posted August 22, 2008 (edited) you have a ' ; ' before qt.... HotKeySet("{ESC}"," ;qt")just use HotKeySet("{ESC}","qt") Func qt() Exit EndFunc Edited August 22, 2008 by billthecreator [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap
rocknload Posted August 22, 2008 Author Posted August 22, 2008 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!
billthecreator Posted August 22, 2008 Posted August 22, 2008 yep [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now