Jump to content

Sending keys to a minimized window


Recommended Posts

Hello,

I've tried google and the forum search with no prevail. Has anyone found a solution to sending a key to a minimized window. Basically I have a window called "X" and I would like for my script to send the "s" key ever two seconds. The only part of this that's confusing me is how to send something to a minimized window without opening it first.

I'm guessing this can't be done with auto-it alone, could we use some windows DLL or something?

Thanks,

Jordan

Link to comment
Share on other sites

I believe the answer you are looking for is controlsend(), though I might be wrong. I have not yet had an occasion where I needed to use this function.

Yes controlsend() works........ most of the time you will need a classID to get it to see the window you want to automate. If the window can't be automated because there isn't a classID then you can use WinActivate to send the text to that window.

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