ExecuteFile

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
daniel
Junior Coder
Posts: 32
Joined: Mon Apr 25, 2005 5:04 pm

ExecuteFile

Post by daniel » Thu May 03, 2007 6:36 pm

I'm working on a macro that once it gets to a certain place it opens up a website. I do the ExecuteFile>%URL% step but I Do Not want it to open on an existing internet explorer window. i want it to open a new window and then go to that website. please help...

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

Post by Marcus Tettmar » Thu May 03, 2007 6:42 pm

Look at the Simple Web Auto script that comes with the software. Or search the Scripts and Tips forum for InternetExplorer.Application and you will find the best solution.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

daniel
Junior Coder
Posts: 32
Joined: Mon Apr 25, 2005 5:04 pm

Post by daniel » Thu May 03, 2007 6:56 pm

thanks

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Fri May 04, 2007 6:16 pm

Try this:

run>C:\Program Files\Internet Explorer\iexplore.exe "http://www.mjtnet.com"

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Sat May 05, 2007 1:12 am

I used to open IE that way but Marcus explained to me why it is unreliable in this classic thread.

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Sat May 05, 2007 2:50 pm

Me_again wrote:I used to open IE that way but Marcus explained to me why it is unreliable in this classic thread.
I agree.
Although VB script is more reliable I prefer to use the run command if all I want to do is open a simple web page, for example a button that opens my home page. I don’t see any reason to double the size of a compiled script if all I want to do is open my home page. But when you have to mess with filling forms or a page has to be completely loaded, VB script is the way to go, otherwise the run command will do just fine in my experience.

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