Closed sudo-MellowFellow closed 1 month ago
The problem is that you do not have AutoHotKey added to your path variables. I'd recommend adding it to your path.
You could also edit ahk = AHK()
in helper.py line 20 to ahk = AHK(executable_path="C:\\Path\\To\\AutoHotkey.exe")
.
Traceback (most recent call last): File "C:\Users\orsin\Desktop\AutoBTD6-main\replay.py", line 1, in
from helper import *
File "C:\Users\orsin\Desktop\AutoBTD6-main\helper.py", line 20, in
ahk = AHK()
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\engine.py", line 138, in init
transport = TransportClass(executable_path=executable_path, directives=directives)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 662, in init
super().init(executable_path=executable_path, directives=directives)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 325, in init
self._executable_path: str = _resolve_executable_path(executable_path=executable_path)
File "C:\Users\orsin\AppData\Roaming\Python\Python310\site-packages\ahk_sync\transport.py", line 291, in _resolve_executable_path
raise AhkExecutableNotFoundError(
ahk._sync.transport.AhkExecutableNotFoundError: Could not find AutoHotkey.exe on PATH. Provide the absolute path with the
executable_path
keyword argument or in the AHK_PATH environment variable. You may be able to resolve this error by installing the binary extra: pip install "ahk[binary]"I installed ahk[binary] too but it didn't fix anything