Code: Select all
#a:: ; Win a toggles autocorrect on/off
Suspend
ToolTip,% a_isSuspended?"Auto Off":"Auto On", 1790, 1520
Return
But I'm trying to find a way to ascertain whether the Autocorrect script is suspended using a DIFFERENT script (my main GUI script), without toggling the Autocorrect script. Specifically, my main GUI script is ALWAYS active, and I'd like to put a hotkey in that main GUI script to tell me whether or not the Autocorrect script is active or suspended. That way, I won't accidentally type a whole paragraph when I don't mean to use Autocorrect, and I won't type a bunch of stuff expecting Autocorrect to kick in if it's not active.
I've tried many different ways that people have given in the past, but none of them are working (E.g. https://stackoverflow.com/questions/14492650/check-if-script-is-suspended-in-autohotkey, https://www.autohotkey.com/board/topic/57245-how-can-i-find-if-other-script-is-pausedsuspended-4-pausing/, viewtopic.php?style=1&t=108887, https://www.autohotkey.com/board/topic/86757-how-to-check-if-another-script-is-currently-running/).
Any help greatly appreciated!