Hi,
New here, am writing my first script. I am trying to write a Macro that opens IE (I have that part of it working) and then I want to type into the address bar a new destination. It opens up but nothing types on the address bar.
Change Directory>C:\Program Files\Internet Explorer
Run Program>C:\Program Files\Internet Explorer\iexplore.exe
WaitWindowOpen>ERA USA - Microsoft Internet Explorer
SetFocus>ERA USA - Microsoft Internet Explorer
Send>www.yahoo.com
Press Enter
Any help would be appreciated
thanks
Jim
Internet Explorer
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
A single one line command will do that for you, if MSIE is your default browser.
Execute>www.yahoo.com
That will call up your default browser and open on the page http://www.yahoo.com
-----------------------------
Re your original script. Why do you have ERA as part of the window name when MSIE opens up? Is that part of the home page?
After the MSIE window is open, do you need to press Tab to get to the URL box before you send the URL information? Press TAB*n
-----------------------------
To debug your script, two good tools: Logs and Single Step.
1. In the properties you can set up a log file. Run the program, then look at the log for clues about what happened.
2. In the editor, you can single step and watch what happens. Turn o on Show Watch LIst and you can see the values of the variables as they change.
------------------------------
Execute>www.yahoo.com
That will call up your default browser and open on the page http://www.yahoo.com
-----------------------------
Re your original script. Why do you have ERA as part of the window name when MSIE opens up? Is that part of the home page?
After the MSIE window is open, do you need to press Tab to get to the URL box before you send the URL information? Press TAB*n
-----------------------------
To debug your script, two good tools: Logs and Single Step.
1. In the properties you can set up a log file. Run the program, then look at the log for clues about what happened.
2. In the editor, you can single step and watch what happens. Turn o on Show Watch LIst and you can see the values of the variables as they change.
------------------------------
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Internet Explorer
I tried your press tab *n and that didn't work. I removed the *n
and just used press tab and it worked!
Thanks for the help
and just used press tab and it worked!
Thanks for the help
Internet Explorer
Does that mean it will tab three times?
and again thanks for your help
and again thanks for your help
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Yes, that will press the TAB key 3 times.
Have you read the HELP files?
Check out the Help for PRESS.
There is a lot of good information and samples in the Help Files.
Te get familiar with some commands, try to record a short macro. Then edit the file. Move the cursor onto the command at the beginning of the line and press F1 to get context sensitive help.
Have you read the HELP files?
Check out the Help for PRESS.
There is a lot of good information and samples in the Help Files.
Te get familiar with some commands, try to record a short macro. Then edit the file. Move the cursor onto the command at the beginning of the line and press F1 to get context sensitive help.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!