Sign in to follow this  
Followers 0
Jordban

Sending keys to a minimized window

4 posts in this topic

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

Share this post


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

Share this post


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

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