-1

I want to create a batch file, where I automatically press CTRL+s every few minutes. until now I have

set /a i=0
:start
if /I %i% GEQ 10 goto :next
%SendKeys% "{^}"
%SendKeys% "{s}"
ping 1.1.1.1 -n 1 -w 300000 > nul
goto :start
:next

How can I send them together?

2
  • 1
    Does %SendKeys% refer to the script from stackoverflow.com/questions/17038282/…? Commented Jan 12, 2015 at 11:56
  • Yes! I had the Idea, so I googled for it, and found it there. But this doesn't send both keys at at once, like the shortcut for saving files! Commented Jan 12, 2015 at 12:32

1 Answer 1

3
%SendKeys% "^s"

Look at http://msdn.microsoft.com/en-us/library/8c6yea83%28v=vs.84%29.aspx for the complete list of keys and modifiers for WshShell.SendKeys.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.