Jump to content

Recommended Posts

Posted

Hi

In an Internet Explorer 8 browser, I have 3 instances of the same Google URL http://www.google.es/

I need to know if instance 2 is the active one, so I use WinActive as described in AutoIt Help, but this is not working (always returns 0)

WinActive("[TITLE:Google; INSTANCE:2]", "")

Have you experienced the same problem?

Regards,

Remarks:

I have this script to avoid interferences with other windows

-------------------------------------------------------

HotKeySet("!{F1}", "Rutina1") ;Alt+F1

;open 3 instances of http://www.google.es/

;select instance 2

;and key Alt+F1

While 1

Sleep(1000)

WEnd

Func Rutina1()

$result= WinActive("[TITLE:Google; INSTANCE:2]", "")

msgbox(0,"Active",$result)

EndFunc

-------------------------------------------------------

Posted

isn't this pretty much the same as

In both you want to interact with the 2nd instance of google...

Yep, but I think this is more clear in this example

Any clue?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...