Symplystyc Posted December 9, 2007 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.
Generator Posted December 9, 2007 Posted December 9, 2007 #include<misc.au3> Do Sleep(1) Until _IsPressed("hex key")
Symplystyc Posted December 9, 2007 Author 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.
erebus Posted December 9, 2007 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-.
Generator Posted December 9, 2007 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
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