Script to open Internet Explorer

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
lardy999
Newbie
Posts: 5
Joined: Tue Jun 24, 2008 11:00 am

Script to open Internet Explorer

Post by lardy999 » Tue Jun 24, 2008 11:10 am

I am trying to write a script that will either...

Open IE & goto http://maps.google.co.uk

OR

IF IE is already open, do not open a new instance, just goto http://maps.google.co.uk

I thought it would be straight forward but I can't get it to work. Any help would be greatly appreciated.

Thanks
Helen

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jun 24, 2008 12:01 pm

The following will open the URL in your default browser just like clicking a link or shortcut on your desktop:

ExecuteFile>http://maps.google.co.uk

If you want to be cleverer and find an already running instance of IE and navigate that instance, take a look at:

http://www.mjtnet.com/blog/2008/05/07/a ... -instance/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

lardy999
Newbie
Posts: 5
Joined: Tue Jun 24, 2008 11:00 am

Post by lardy999 » Tue Jun 24, 2008 12:35 pm

Thanks for the reply Marcus.

However, when I try to use the easier of your solutions

ExecuteFile>http://maps.google.co.uk

I get a MS error saying "file http://maps.google.co.uk Does Not Exist"

Any ideas?

Helen

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jun 24, 2008 12:41 pm

Which version of Macro Scheduler are you using?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

lardy999
Newbie
Posts: 5
Joined: Tue Jun 24, 2008 11:00 am

Post by lardy999 » Tue Jun 24, 2008 12:47 pm

version 7.2.050 running on XP

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Jun 24, 2008 1:18 pm

According to the history list the ability to use ExecuteFile with URLs was added in version 7.3 in 2004:

http://www.mjtnet.com/mswhatsnew.htm

If you're running 7.2 then 7.3 is a free update which you can download from your registered user login at http://www.mjtnet.com/dldregd.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

lardy999
Newbie
Posts: 5
Joined: Tue Jun 24, 2008 11:00 am

Thanks

Post by lardy999 » Thu Jun 26, 2008 3:02 pm

Perfect, thanks for your help

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