Jump to content
Sign in to follow this  
dmarnel

Scripting to window without focus?

Recommended Posts

dmarnel

I've seen a lot of posts regarding sending script commands to a window that is minimized, but can't seem to find anything about scripting to a window that is not minimized but does not have the focus. The window in question is a game window that does not report any control IDs. What I would like to be able to do is run one copy of the game using script commands to automate player actions, while at the same time, running a second copy of the game that I would control.

I tried a test using ControlSend($hwnd,"","","{UP}") to the background copy of the game but nothing happens. I obtained the $hwnd from a call to WinGetHandle() with the title of the game window. Is what I am trying to do even possible?

Thanks in advance for any help!

Share this post


Link to post
Share on other sites
pacman1176

Is the game an external program, a web based game, full screen? Does it have built in support to prevent such automation?

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  

×