Jump to content

Send CTRL+S to the active window?


Recommended Posts

Hey!

Working on a restarter, and I've fixed so it starts and quits the program. But now I need a way to send CTRL+S to the application when it starts (the active window!!)

Tried:

Send("{CTRL down}")

Send("{S}")

Send("{CTRL up}")

But it didn't work. Neihter did:

Send("{^s}")

Link to comment
Share on other sites

Hey!

Working on a restarter, and I've fixed so it starts and quits the program. But now I need a way to send CTRL+S to the application when it starts (the active window!!)

Tried:

Send("{CTRL down}")

Send("{S}")

Send("{CTRL up}")

But it didn't work. Neihter did:

Send("{^s}")

Your sends are faulty, it should be

Send("^s")

to send Ctrl s. Some applications need to have the Case correct so try "^s" and "^S".

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Thanks!

Worked now :)

That's ok.

Glad it's working.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

  • 1 year later...

I know ... but it's time consuming... I'm already full time on other stuff

and since I only need a CTRL+S every 10min, I though someone could have helped me by giving me the code.

(like I help people in my Adobe forum/board)

/sorry for the bad english

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