AHK_X11 icon indicating copy to clipboard operation
AHK_X11 copied to clipboard

Hotstring(s) do not obey Suspend

Open yeroc03 opened this issue 10 months ago • 2 comments

I have made a script with a series of hotstrings and hotkeys to help with coding.

The hotstrings work as documented except they do not stop triggering despite the script being in Suspend Mode. Hotkeys do obey the Suspend directive however.

I am running AHK_X11 on Linux Mint 22.1 Cinnamon with X11

Here is a sample of the top of the code

#SingleInstance

#Hotstring EndChars `;
#Hotstring O

Menu, Tray, Icon, /home/yeroc03/Projects/autohotkey/coding-complete/code0.png

;In order to understand this section you have to realize that the + symbol is Shift. Allowing certain keys to be sent
;This is a bug/feature in AutohotkeyX11 where certain characters have to be accessed via Shift and the key that reside on.

#z::Suspend

::sq::
    Send, {Backspace}
    Send, {'}
    Return
::dq::
    Send, {Backspace}
    Send, +{'}
    Return

Hotstrings behave identically to hotkeys in the following ways: They are affected by the Suspend command. They obey #MaxThreads and [#MaxThreadsPerHotkey]>>(https://phil294.github.io/AHK_X11/#h_MaxThreadsPerHotkey.htm) (but not #MaxThreadsBuffer). Scripts containing hotstrings are automatically persistent. Non-auto-replace hotstrings will create a new thread when >launched. In addition, they will update the built-in hotkey variables such as A_ThisHotkey.

yeroc03 avatar Feb 26 '25 22:02 yeroc03

right, looks like a bug 🤔 probably an easy fix though.

phil294 avatar Feb 26 '25 22:02 phil294

Thank you for looking into it and I just wanted to say that this project is a godsend.

yeroc03 avatar Feb 27 '25 00:02 yeroc03