Sign in to follow this  
Followers 0
Symplystyc

newb question

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



#include<misc.au3>
Do
Sleep(1)
Until _IsPressed("hex key")

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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-.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0