Jump to content
Sign in to follow this  
TheBlackGamer

How to Send "Ctrl + S" Control To inActive Window

Recommended Posts

TheBlackGamer

hey iam Trying to make A Silent AutoSaver Which Send "Ctrl + S" To  An inActive Window Is it Possible ... I tried ControlSend Function But it Needs The Window Active

Share this post


Link to post
Share on other sites
czardas

I don't believe it is impossible, but any solution (which I don't have unfortunately) is likely to vary from program to program. You could however block user input for the time it takes to activate a hidden window and send the message. It's not really a very elegant solution.

Tell us more about the application you want to send the save command to. If it is your own program, then there are likely to be several alternative ways to achieve what you want - it could be as simple as creating a log file.

Edited by czardas

Share this post


Link to post
Share on other sites
caramen

You can try something like

If _IsPressed ("11") and _IsPressed ("53") then

Wingetfocus ("windows tittle")

Send ("{CTRL}") and Send ("S")

and if you need to get back the focus in the preview windows send an ALT TAB

you should probably re-write this in a better way but maybe that logic can help yourself ...

Edited by caramen

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  

×