Dryden Posted July 10, 2007 Share Posted July 10, 2007 (edited) Hi! anyone knows how to wait for any key?? For example: HotKeySet("{ESC}", "Exit") ho do I make it run exit function no matter what key is pressed? Do I have to do Hot key sets to all keys? :S EDIT: It doesn't need to be a hotkeyset. It can be something that would pause the script and resume it when a key is pressed. I was tring to use _IsPressed, but I don't think that there's a key that means all keys... :S Edited July 10, 2007 by Dryden "Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." - Terry Pratchett. Link to comment Share on other sites More sharing options...
evilertoaster Posted July 10, 2007 Share Posted July 10, 2007 while 1 for $x=0 to 165 if _IsPressed(Hex($x)) then Exit EndIf Next WEnd Link to comment Share on other sites More sharing options...
Dryden Posted July 10, 2007 Author Share Posted July 10, 2007 that's genious... so simple... thx "Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." - Terry Pratchett. 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