I have a few scripts that do a "run program" to open a web page. These web pages then require a user name and password entry. I know how to automate the send of the user name and password, but I have problems with the timing. Frequently the user name is not entered into the user name box, but is sent elsewhere - like into the URL address window.
What is the secret to timing the send of text to a window just opened???
Thank you so very much! Jim
code being discussed:
Run Program>C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE "https://investment1s.ameritrade.com/cgi-bin/apps/LogIn"
wait>.2
WaitWindowOpen>Log On to TD AMERITRADE*
WaitReady>0
SetFocus>Log On to TD AMERITRADE*
Wait>0.6
Send Character/Text>username
Press TAB
Send Character/Text>password
I can't see where the username goes, but the password ends up in the URL address box.
Most of the time the script works correctly...
I need help with waitwindowopen
Moderators: Dorian (MJT support), JRL
Check out the info in this thread.
http://www.mjtnet.com/forum/viewtopic.p ... lorer+busy
Hope this helps,
Dick
http://www.mjtnet.com/forum/viewtopic.p ... lorer+busy
Hope this helps,
Dick
Dick,
looks like that is the answer.
BUT - How do I set Wait to 1???
I tried:
let>wait=1
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do while IE.Busy and Wait
loop
End Sub
I get an error on execution invalid numeric expression in the openpage line...
looks like that is the answer.
BUT - How do I set Wait to 1???
I tried:
let>wait=1
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do while IE.Busy and Wait
loop
End Sub
I get an error on execution invalid numeric expression in the openpage line...
This works for me:
Later,
Dick
Code: Select all
VBStart
Sub OpenPage(URL,Wait)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate URL
do while IE.Busy and Wait
loop
End Sub
VBEND
VBRun>OpenPage,http:\\www.mjtnet.com,1
Wait>2
mdl>done
Dick