Sign in to follow this  
Followers 0
Nepheus

Send command to a window without activate it?

3 posts in this topic

I want to send command to a button of a window by using ControlClick() without activate it. When i'm on a game at fullscreen setting, it's not a good sound that i must pause it for a while then the script done the job. The window mustbe activated for script to work. It's not so convenient. I'm on the AuLostConLogin for my bad internet connection program. It's easy to be dropped. Then autologin working underlayer is a best way.

Thanks for your help.

Share this post


Link to post
Share on other sites



Have you looked at ControlClick() at the help file? It's very clear. Look at ControlCommand() too. The window does not need to be activated, not even visible.

Share this post


Link to post
Share on other sites

I read it before post on, i pay attention at the remark:

Some controls will resist clicking unless they are the active window. Use the WinActivate() function to force the control's window to the top before using ControlClick().

Then the form needs to be activated before i send command. Without it, it's not work.

Is there any other way?

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