Pause with one key, but use a different key to unpause. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rx65m
Posts: 19
Joined: 16 Mar 2018, 17:29

Pause with one key, but use a different key to unpause.

Post by rx65m » 29 Jul 2022, 03:44

I need to pause my script with the space key, but unpause it with the y key.

I've been searching for a while without any success, not even at the old forum.
I've tried different combinations, but I never get any of them to work properly.

Is there any simple way to do this?

rx65m
Posts: 19
Joined: 16 Mar 2018, 17:29

Re: Pause with one key, but use a different key to unpause.  Topic is solved

Post by rx65m » 29 Jul 2022, 04:56

Got it:

Code: Select all

Space::
Pause, On
 return

y::
Pause, Off
 return

Post Reply

Return to “Ask for Help (v1)”