Page 1 of 1

How to Pause Script

Posted: Jul 12th, ’19, 21:48
by pwncpa
Hi - I am trying to write a script to run some keystrokes in Excel and I need there to be a pause in the execution of the script. How do I insert some kind of 5 second pause? Thanks!

Re: How to Pause Script

Posted: Jul 12th, ’19, 22:06
by Marko
More.../Macros/Pause
:?:

Re: How to Pause Script

Posted: Jul 12th, ’19, 22:54
by pwncpa
That is greyed out for me when I have "Type" set to command. Isn't that the type I should have when writing a script like this?

Thanks btw!

Re: How to Pause Script

Posted: Jul 13th, ’19, 05:59
by Marko

Code: Select all

Sleep 5000
https://www.autohotkey.com/docs/commands/Sleep.htm

Post your command example to give you further recommendations.