autoit script- after a script is set to run can it remain on hold until a key is pressed rather then a timer delay?

Hi I use autoit to automate a lot of my user logins. I made a program in visual basic 6 and for example when I click a button in the program, it automatically launches IE browser and the script is started. I start it with a 10 second delay which gives the page some time to load. Then after 10 seconds the script is active and the tab button automatically gets shifted however many times needed till the curser is in the user name box, for example maybe the tab button was pressed three times (by auto it) . Then a few seconds later the user name is automatically typed in (by auto it). Then there is a 2 second delay then another tab and then another 2 second delay then the password is automatically typed in by auto it. 2 seconds later the enter button is pressed and usually I am successfully logged into whatever site I have it programmed for.

The problem is sometimes the webpage changes a bit, and it requires an extra tab to be pushed, so since it was programmed to tab 3 times in the example above but now it requires 4 tabs until the curser is in the username box.

So I had an idea to prevent that from happening, if I press the button on VB to launch the webpage and launch the script, is there a way to make the script stay dormant until a button is pressed? That way I can click the curser into the user name field manually and when the curser is there I can press a button on keyboard to activate the script to start running.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
simply use a system.getkey or auto-it isressed function

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
I've requested that this question be closed as follows:

Accepted answer: 500 points for David Johnson, CD (IT-Expert-Pro MVP)'s comment #a40754398

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
hydrive1902Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.