Sign in to follow this  
Followers 0
tyro

first-timer with small problem

5 posts in this topic

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



#2 ·  Posted (edited)

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

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

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  
Followers 0