Jump to content
Sign in to follow this  
AutoitMike

Cant verify IE 10 is running

Recommended Posts

AutoitMike

Using the following:

MsgBox(0,"",WinGetState("[CLASS:IEFrame]", ""))

With IE running and maximized, I get 39, which is "Enabled",  "Exists" "Visible" and "Maximized"

With IE not running , I get 5  which is "Exists" and "Enabled"

How can this be????

My goal is to know if IE is running

Thanks for any help

Share this post


Link to post
Share on other sites
Chimp

hi AutoitMike

there's probably some instance of iexplore.exe running and not visible.
try this to see if any iexplore.exe is still running

Local $list = ProcessList("iexplore.exe")
MsgBox(0,"",$list[0][0] & " iexplore.exe still running")

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
Edano

and i do this to kill them all from time to time

.

While ProcessExists("iexplore.exe")
        ProcessClose("iexplore.exe")
    WEnd

.

E


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
AutoitMike

I get syntax error ("Illegal Character")

underneath the first line

Share this post


Link to post
Share on other sites
AutoitMike

OK, Looks like you fixed it.

If I close IE, the above code shows zero instances , if I open IE , it always shows 2 instances even though I have opened only one instance.

It seems that IE has one more instance than the number of tabs opened.

This takes care of my issues.

Thanks

Edited by AutoitMike

Share this post


Link to post
Share on other sites
Edano

yes, i can confirm this. there is always an additional hidden ie instance.

firefox, on the other hand, always has only one instance, no matter how many windows you open.


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

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  

×