bills Posted June 26, 2007 Share Posted June 26, 2007 Hi everyone. Im wondering if theres a way to have my script count the existing internet explorer windows and i there are more that 3 display a warning message? One more thing i need help with is that i want my script to close the 3rd internet explorer window, but i wont know what it might be called, although i know the names of the windows not to be closed. they are "trafiksidan" and "bridge". Im also wondering if i can have the script show itself from hidden when i press the taskbar icon. Thanks for all your time and help //Bill Link to comment Share on other sites More sharing options...
Leighwyn Posted June 26, 2007 Share Posted June 26, 2007 (edited) Hi everyone. Im wondering if theres a way to have my script count the existing internet explorer windows and i there are more that 3 display a warning message? One more thing i need help with is that i want my script to close the 3rd internet explorer window, but i wont know what it might be called, although i know the names of the windows not to be closed. they are "trafiksidan" and "bridge". Im also wondering if i can have the script show itself from hidden when i press the taskbar icon. Thanks for all your time and help //Bill To find out how many internet explorers you had open, one method would be to do the following: AutoItSetOption ( "WinTitleMatchMode", 4 ) $var = WinList("[CLASS:IEFrame]") $numIE = Ubound($var,1)-1 If $numIE > 3 Then msgbox(0, "UH OH", "NOOO TOO MANY IE OPEN!!!!!") EndIf Can't help you on the closing part, but I'm sure many people here could. Edited June 26, 2007 by Leighwyn Link to comment Share on other sites More sharing options...
bills Posted June 26, 2007 Author Share Posted June 26, 2007 Okay, thanks Anyone who has an answer for the other 2 questions? //Bill Link to comment Share on other sites More sharing options...
bills Posted June 26, 2007 Author Share Posted June 26, 2007 No one? Ive solved the taskbar-click part as well. so the only thing remaining is the ie-closing part. Link to comment Share on other sites More sharing options...
J0ker Posted June 27, 2007 Share Posted June 27, 2007 (edited) This should work While 1 If ProcessExists ("iexplore.exe") Then ProcessClose("iexplore.exe") Else ExitLoop EndIf Wend EDIT: Sorry this will close all IEexplorer window and anyway how can it detect the 3rd window? You mean the 3rd IE windows that was open by the user? Edited June 27, 2007 by J0ker Link to comment Share on other sites More sharing options...
bills Posted June 27, 2007 Author Share Posted June 27, 2007 Yeah that wont work. I want the script to close all IE windows except the ones named "Trafiksidan" and "Bridge". Link to comment Share on other sites More sharing options...
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