Jump to content
Sign in to follow this  
tyro

first-timer with small problem

Recommended Posts

tyro

Just installed AutoIt yesterday and wrote my first script today. A TERRIFIC PROGRAM!!

But had a small problem with my first script. The script runs flawlessly 4 times out of 5 BUT sometimes it fails.

Run("C:\Program Files\Internet Explorer\iexplore.exe")
WinWaitActive("Blank Page - Windows Internet Explorer")
Send("http://somesite.com/p?r=ab_6", 1)
Send("{enter}")

The failures occur when the first Send() does not enter the address (as written)in the address bar of IE, but rather leaves out some of the characters.

Any suggestions much appreciated. Would ShellExecute("address")be more reliable??

Share this post


Link to post
Share on other sites
Richard Robertson

Consider instead

Run('iexplore.exe "http://somesite.com/p?r=ab_6"')

Also, yes, ShellExecute would be better, since it would open the user's default browser.

Edited by Richard Robertson

Share this post


Link to post
Share on other sites
anixon

Just installed AutoIt yesterday and wrote my first script today. A TERRIFIC PROGRAM!!

But had a small problem with my first script. The script runs flawlessly 4 times out of 5 BUT sometimes it fails.

Run("C:\Program Files\Internet Explorer\iexplore.exe")
WinWaitActive("Blank Page - Windows Internet Explorer")
Send("http://somesite.com/p?r=ab_6", 1)
Send("{enter}")

The failures occur when the first Send() does not enter the address (as written)in the address bar of IE, but rather leaves out some of the characters.

Any suggestions much appreciated. Would ShellExecute("address")be more reliable??

Share this post


Link to post
Share on other sites
anixon

As previously posted this works just fine given that I have both Safari and the latest version of IE installed on a Vista Box

ShellExecute("http:\\www.mapilab.com\outlook\security\") Ant..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.