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.