slupremmand Posted September 23, 2006 Posted September 23, 2006 I have been trying to make a script that fills out a username/password window when IE connects to a server. im having problems with closing the script if IE connects to a server with no logon. Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE') WinWait("Connect to server.xxx","") If Not WinActive("Connect to server.xxx","") Then WinActive("Connect to server.xxx","") WinWaitActive("Connect to server.xxx","") Send("username{CTRLDOWN}{ALTDOWN}<{CTRLUP}{ALTUP}username{TAB}pass{SHIFTDOWN}pass{SHIFTUP}{ENTER}") this script is abel to logon...
yutt Posted September 23, 2006 Posted September 23, 2006 I'm not really sure what you're trying to do, could you be more specific? Regardless, you might have better luck using some of the IE functions included with AutoIT. If you search for "IE" in the help file you should see a bunch. Good luck. It is a waste of energy to be angry with a man who behaves badly, just as it is to be angry with a car that won't go. - Bertrand Russell
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