Link to home
Start Free TrialLog in
Avatar of hydrive1902
hydrive1902

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of hydrive1902
hydrive1902

ASKER

thanks