Sign in to follow this  
Followers 0
Wooltown

WinActivate doesn't work in Child Windows

5 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

this works on mine

While 1
    
    Sleep(2000)
    WinActivate("Microsoft Excel")
    
    
    Sleep(2000)
    Send("!W1")
    
    Sleep(2000)
    Send("!W2")
WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I will, thanks !

/Sven

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  
Followers 0