

'"')Īnd got this message in the prompt: The filename, directory name, or volume label syntax is incorrect. I've tried using os.execute('pause') so that I have a chance to read any command prompt messages, but the first one still closes before the paused one opens.ĮDIT: Okay, I got this to leave the prompt open: os.execute("cmd.exe /k".'"C:\\Users\\JWesley\\Desktop\\AutoHotkey\\AutoHotkeyU64.exe" "C:\\Users\\JWesley\\Files\\AS\\Anime Studio Pro\\scripts\\utility\\ReopenAS.ahk" "'. path = "C:/Users/JWesley/Desktop/test.anime" I've tried setting the AHK compiled exe to Run As Administrator, but that didn't help. I'm passing the variable "path" from Lua to the AHK script (%1%). Os.execute("\""."C:/Users/JWesley/Files/AS/Anime Studio Pro/scripts/utility/ReopenAS64.exe"."\""." ".path) Ans: Ahk2Exe.exe /in ahk /out dir 'D:\work\ahk\testcompile' /b menu.ahk menuconfig.ahk 'C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe' /in 'D:\work\ahk\testcompile\menu.ahk' /out menu.exe Q: Include Ans: menu.ahk menuconfig.ahk Include menu.

Os.execute("C:/Users/JWesley/Desktop/AutoHotkey/AutoHotkeyU64.exe "."\""."C:/Users/JWesley/Files/AS/Anime Studio Pro/scripts/utility/ReopenAS.ahk"."\""." ".path) WinGet, PID, PID, Anime Studio ahk_class LM_WndĪnd here's how I'm running it, from a Lua script (double-quotes are for spaces in actual paths): -to uncompiled AHK (working code) Here's the AHK script: SetTitleMatchMode, 2

I have written a AutoHotkey script that works well uncompiled, but no matter which Base File (.bin) I use to compile the exe in Ahk2Exe, it fails for some unknown reason.
