Sign in to follow this  
Followers 0

Send CTRL+S to the active window?

7 posts in this topic

#1 ·  Posted

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}")

Share this post


Link to post
Share on other sites



#2 ·  Posted

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.

Share this post


Link to post
Share on other sites

#3 ·  Posted

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

Thanks!

Worked now :)

Share this post


Link to post
Share on other sites

#4 ·  Posted

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.

Share this post


Link to post
Share on other sites

#5 ·  Posted

i'm sorry to bring back this topic to life

but i really need to know how to make a script (an .exe ?) that do CTRL+S

I work in photoshop, and I want to CTRL+S every 10min

can someone help ?

Share this post


Link to post
Share on other sites

#6 ·  Posted

@Asuranii - you could put the Send and Sleep functions in a While..WEnd loop, or you could read thru the Help file and some tutorials and get yourself learnt! :unsure:


- Bruce [font="'Lucida Console';"]/*somdcomputerguy */  If you change the way you look at things, the things you look at change.[/font]

Share this post


Link to post
Share on other sites

#7 ·  Posted

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

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