Jump to content

Scripting to window without focus?


dmarnel
 Share

Recommended Posts

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!

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...