tyro Posted September 22, 2009 Posted September 22, 2009 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??
Richard Robertson Posted September 22, 2009 Posted September 22, 2009 (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 September 22, 2009 by Richard Robertson
anixon Posted September 22, 2009 Posted September 22, 2009 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??
anixon Posted September 22, 2009 Posted September 22, 2009 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..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now