I am using the default Unicode 64-bit .bin file, v1.1.32.0 (current version).
If I make a simple MsgBox Hello World script, it compiles with compression and encryption enabled (password=AutoHotkey) and runs just fine.
If I try the same with my large 40,000 line script, it compiles successfully, I launch the exe, but nothing happens for a couple seconds, then its process shuts down. Even if I put a MsgBox at the very first line of the script, it doesn't display and process shuts down after a couple seconds.
If I untick compression in the compiler, it runs fine.
So it seems that my script is somehow incompatible with compression (which is required for encryption).
Any ideas why this is happening?
In the meantime I'll try to find the culprit by removing large chunks of code until it runs.
Thanks
Script not compatible with compression / encryption
Re: Script not compatible with compression / encryption
I've whittled it down to 50 lines, where I can modify a few of the lines and then it runs, but there's no logic to it. For example I can either change a multiline DllCall into one line, and it will run. But if I add another IF block after it, then it fails again.
Re: Script not compatible with compression / encryption
I don't think it's my script which is the problem, as I've found some other scripts won't run either.
For example try compiling Ahk2Exe - with compression it doesn't run either.
Could someone please test this so I can rule out my system as the cause.
Procedure:
1. Download latest AHK_H from here: https://github.com/HotKeyIt/ahkdll-v1-release/archive/master.zip
2. Copy /x64w/AutoHotkey.exe to /Compiler , and rename it as Ahk2Exe.exe
3. Launch Ahk2Exe.exe and fill it out like this
4. Launch Ahk2Exe_Compressed.exe and see if it runs. If not, recompile with "use compression" unticked.
For example try compiling Ahk2Exe - with compression it doesn't run either.
Could someone please test this so I can rule out my system as the cause.
Procedure:
1. Download latest AHK_H from here: https://github.com/HotKeyIt/ahkdll-v1-release/archive/master.zip
2. Copy /x64w/AutoHotkey.exe to /Compiler , and rename it as Ahk2Exe.exe
3. Launch Ahk2Exe.exe and fill it out like this
4. Launch Ahk2Exe_Compressed.exe and see if it runs. If not, recompile with "use compression" unticked.
Re: Script not compatible with compression / encryption
Also does not run on my Win7 machine, but gives this error
Works fine without compression.
Works fine without compression.
Re: Script not compatible with compression / encryption
This has been fixed now.
Who is online
Users browsing this forum: No registered users and 61 guests