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

My video tutorials : HERE ( In construction ) 

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

Spoiler

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

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  

×