Jump to content
Sign in to follow this  

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

Recommended Posts

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

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

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

My video tutorials : HERE ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote


 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki

ADO - Wiki


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...