j-p Posted July 23, 2006 Share Posted July 23, 2006 Hi, I've defined some hotkeys for my convenience (really simple, they just start some progs) Well, but how to keep that little script active, probably I could Sleep(100000000000000000) but there should be a better way. any help would be appreciated Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 23, 2006 Moderators Share Posted July 23, 2006 (edited) Hi, I've defined some hotkeys for my convenience (really simple, they just start some progs) Well, but how to keep that little script active, probably I could Sleep(100000000000000000) but there should be a better way. any help would be appreciatedWhile 1 Sleep(10000) WEndIt's a loop, just put it after your hotkeys. Edited July 23, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Paulie Posted July 24, 2006 Share Posted July 24, 2006 Just to clarify smoke_n ;Hotkeys come first HotKeySet("{Key1}","Function1") HotKeySet("{Key2}","Function2") ;Loop to make the script stay active While 1 Sleep(1000) WEnd ;Functions to call with Hotkeys Func Function1() ;Do whatever EndFunc Func Function2() ;Do whatever again EndFunc Link to comment Share on other sites More sharing options...
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