When I start the following script with py -m ahkpy hello-world.py the hotkey [Ctrl+Shift+H] works as expected but both hotstrings don't. When typing hw followed by a space the space is ommited but nothing else happens. When typing wtf followed by a space the space is replaced by Hello World which results in wtfHello World.
hello-world.py:
import ahkpy
CTRL = '^'
SHIFT = '+'
WIN = '#'
ALT = '!'
print('Ready...')
ahkpy.hotstring("hw", "Hello World")
@ahkpy.hotstring("wtf")
def hello1():
ahkpy.send("Hello World")
@ahkpy.hotkey(CTRL+SHIFT+"H")
def hello2():
ahkpy.send("Hello World")
I'm using Autohotkey 1.1.33.10 and Python 3.11.1 on Windows 10.