How can I suspend a specific script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
supplementfacts
Posts: 44
Joined: 15 Jul 2018, 16:29

How can I suspend a specific script?

Post by supplementfacts » 15 May 2024, 11:15

Sorry if this question is absurdly basic. I've read a lot of discussions and none of them seem to address it.

I'm running two scripts. I want a command in one script to suspend the other script. My guess was that it might go something like this:

#s::Suspend, C:\AHK\script2.ahk

But this returns an error. I can't find any way to use Suspend on a specific script. Any help would be appreciated. Thanks!



supplementfacts
Posts: 44
Joined: 15 Jul 2018, 16:29

Re: How can I suspend a specific script?

Post by supplementfacts » 15 May 2024, 15:32

I thought that would Pause a script rather than Suspend it.

supplementfacts
Posts: 44
Joined: 15 Jul 2018, 16:29

Re: How can I suspend a specific script?

Post by supplementfacts » 15 May 2024, 15:33

peter_ahk wrote:
15 May 2024, 12:18
see docs on the bottom

https://www.autohotkey.com/docs/v1/lib/Suspend.htm
Thank you. I thought the PostMessage command would only post a message rather than execute a command with respect to a specific script.

Post Reply

Return to “Ask for Help (v1)”