Jump to content

WinActivate doesn't work in Child Windows


 Share

Recommended Posts

Opt("WinSearchChildren", 1)

WinActivate ("Microsoft Excel")
WinActivate ("Book2")
Sleep (2000)
Send ("aa")

In Excel, I have 2 Sheets, "Book1" and "Book2", Book 1 is on top, I can't get "Book2" activated, the script will write "aa" on "Book1".

Regards

Sven

Link to comment
Share on other sites

Opt("WinSearchChildren", 1)

WinActivate ("Microsoft Excel")
WinActivate ("Book2")
Sleep (2000)
Send ("aa")

In Excel, I have 2 Sheets, "Book1" and "Book2", Book 1 is on top, I can't get "Book2" activated, the script will write "aa" on "Book1".

Regards

Sven

I don't think Book2 is a window accessible with autoit. You can verify that "AutoIt info tool" does not return such window.

NO BUG

PS It is always good to start with the support forum before writing a BUG. Thanks

Link to comment
Share on other sites

Opt("WinSearchChildren", 1)

WinActivate ("Microsoft Excel")
WinActivate ("Book2")
Sleep (2000)
Send ("aa")

In Excel, I have 2 Sheets, "Book1" and "Book2", Book 1 is on top, I can't get "Book2" activated, the script will write "aa" on "Book1".

Regards

Sven

You might want to take a look at ExcelCom UDF it probably deals with what your wanting to do.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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