Script not compatible with compression / encryption

Ask for help, how to use AHK_H, etc.
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

Script not compatible with compression / encryption

29 Nov 2019, 02:50

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
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

Re: Script not compatible with compression / encryption

29 Nov 2019, 05:32

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.
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

Re: Script not compatible with compression / encryption

29 Nov 2019, 06:06

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

Image

4. Launch Ahk2Exe_Compressed.exe and see if it runs. If not, recompile with "use compression" unticked.
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

Re: Script not compatible with compression / encryption

29 Nov 2019, 06:19

Also does not run on my Win7 machine, but gives this error

Image

Works fine without compression.
pneumatic
Posts: 299
Joined: 05 Dec 2016, 01:51

Re: Script not compatible with compression / encryption

29 Nov 2019, 22:29

HotKeyIt wrote:
29 Nov 2019, 20:44
This has been fixed now.
Thanks, fixed on my systems too :thumbup:

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 7 guests