Internet Explorer

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
ERANewbie
Newbie
Posts: 3
Joined: Wed Nov 29, 2006 5:15 pm

Internet Explorer

Post by ERANewbie » Wed Nov 29, 2006 5:23 pm

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

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Nov 29, 2006 7:12 pm

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.

------------------------------
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

ERANewbie
Newbie
Posts: 3
Joined: Wed Nov 29, 2006 5:15 pm

Internet Explorer

Post by ERANewbie » Wed Nov 29, 2006 7:38 pm

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 :)

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Wed Nov 29, 2006 9:07 pm

by Press TAB*n, He meant that you need to replace n with a number.

Press TAB*3 for example.

ERANewbie
Newbie
Posts: 3
Joined: Wed Nov 29, 2006 5:15 pm

Internet Explorer

Post by ERANewbie » Wed Nov 29, 2006 11:15 pm

Does that mean it will tab three times?

and again thanks for your help

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Nov 30, 2006 3:17 am

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.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts