Symplystyc Posted December 9, 2007 Share Posted December 9, 2007 newb question for my newb script I would like my script to pause at a certain point until a key is pressed. I found how to pause with hotkeys but thats not what I want it to do. The script is just logging me into a website, entering my acct and pwd and submitting, then the next page has an number verification on it, I would like the script to pause after it submits my acct and pwd so that i can enter the correct number. any suggestions would be appreciated. The glass is neither half empty nor half full, it is simply twice as big as it needs to be. Link to comment Share on other sites More sharing options...
Generator Posted December 9, 2007 Share Posted December 9, 2007 #include<misc.au3> Do Sleep(1) Until _IsPressed("hex key") Link to comment Share on other sites More sharing options...
Symplystyc Posted December 9, 2007 Author Share Posted December 9, 2007 thankyou, that did exactly what I needed it to. The glass is neither half empty nor half full, it is simply twice as big as it needs to be. Link to comment Share on other sites More sharing options...
erebus Posted December 9, 2007 Share Posted December 9, 2007 Just a quick 'n dirty note here. Do not use anything below Sleep(250) so as not to occupy too much CPU time -if possible-. Link to comment Share on other sites More sharing options...
Generator Posted December 9, 2007 Share Posted December 9, 2007 Just a quick 'n dirty note here. Do not use anything below Sleep(250) so as not to occupy too much CPU time -if possible-.Your information is incorrect, Sleep(250) makes the script unable to respond quick enough, or something happened during that 250 ms will result the script to do nothing. While Sleep(1) is very efficient and it doesn't hog cpu at all, code below uses around 3k Memory and 0 CPU. While 1 Sleep(1) WEnd 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