

'"')Ī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" "'. So which is better and for what reasons Thanks 2 8 8 comments Top Add a Comment anonymous1184 1 yr. They produce a file that's pretty much exactly the same size. path = "C:/Users/JWesley/Desktop/test.anime" I'm trying to compress an EXE with Ahk2Exe and the two options are as above: MPRESS and UPX. 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)

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.
