Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Send CTRL+S to the active window?


  • Please log in to reply
6 replies to this topic

#1 qwee

qwee

    Seeker

  • Active Members
  • 39 posts

Posted 31 May 2009 - 03:15 PM

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







#2 martin

martin

    ~~\o/~~~/0\=¬''~~~

  • MVPs
  • 7,313 posts

Posted 31 May 2009 - 03:24 PM

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.

#3 qwee

qwee

    Seeker

  • Active Members
  • 39 posts

Posted 31 May 2009 - 03:40 PM

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 :)

#4 martin

martin

    ~~\o/~~~/0\=¬''~~~

  • MVPs
  • 7,313 posts

Posted 31 May 2009 - 04:04 PM

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.

#5 Asuranii

Asuranii

    Seeker

  • New Members
  • 2 posts

Posted 23 April 2011 - 12:55 AM

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 ?

#6 somdcomputerguy

somdcomputerguy

  • Active Members
  • PipPipPipPipPipPip
  • 2,807 posts

Posted 23 April 2011 - 01:24 PM

@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 /*somdcomputerguy */  If you change the way you look at things, the things you look at change.


#7 Asuranii

Asuranii

    Seeker

  • New Members
  • 2 posts

Posted 26 April 2011 - 08:17 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users