Update - 29 Mar 2023
/ScriptGuard2 file handling is now fully Unicode compatible.
ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
- JoeWinograd
- Posts: 2213
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Hi TAC,
Excellent enhancement! Really appreciate your ongoing effort to improve ScriptGuard. Cheers, Joe
Excellent enhancement! Really appreciate your ongoing effort to improve ScriptGuard. Cheers, Joe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Hi TAC,
same as JoeWinograd
same as JoeWinograd
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Thanks @ozzii! I’m glad you are finding ScriptGuard useful.
Cheers
Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@Peaceful
You can use UPX (or MPRESS) if you select an .exe as a Base file. The restriction only applies when a .bin is selected as a Base file.
Cheers
You can use UPX (or MPRESS) if you select an .exe as a Base file. The restriction only applies when a .bin is selected as a Base file.
Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Update - 02 Apr 2023
/ScriptGuard2 now has aligned mcode for faster processing.
/ScriptGuard2 now has aligned mcode for faster processing.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
- JoeWinograd
- Posts: 2213
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
A tip for my fellow forum members. When I saw announcements like these from TAC109, I had been updating BinMod (to get ScriptGuard2) by downloading from GitHub and manually copying it to the AHK installation folder. But then TAC109 explained that it can be done much more easily via the GUI compiler, i.e., simply click Help>Check for Updates... and you'll get this:
Tick whatever is not Up-to-date and click the Update? button, as I just did for BinMod 2023-04-02...easy peasy! As you can see in the dialog, it also works great for the compiler itself, as well as MPRESS and UPX. Thanks again to TAC109 for that tip, and for today's speed improvement to ScriptGuard2. Cheers, Joe
Tick whatever is not Up-to-date and click the Update? button, as I just did for BinMod 2023-04-02...easy peasy! As you can see in the dialog, it also works great for the compiler itself, as well as MPRESS and UPX. Thanks again to TAC109 for that tip, and for today's speed improvement to ScriptGuard2. Cheers, Joe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@JoeWinograd
Thanks for the helpful advice to users.
Cheers
Thanks for the helpful advice to users.
Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Update - 31 May 2023
Add new parameter /ScriptGuard2pss ('Permit /script switch').
Add new parameter /ScriptGuard2pss ('Permit /script switch').
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Update - 05 June 2023
Fix error message.
Fix error message.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Thank you for sharing your knowledge.
During compilation, the following error message occurs and the process does not proceed. Can you confirm what the problem is?
Error. Invalid directive: (D1)
Specifically:
%U_Bin% "1%U_au%2>AUTOHOTKEY.SCRIPT<.RANDOM"
"%U_au%AutoHotkeyGUI.RANDOM" /ScriptGuard2
During compilation, the following error message occurs and the process does not proceed. Can you confirm what the problem is?
Error. Invalid directive: (D1)
Specifically:
%U_Bin% "1%U_au%2>AUTOHOTKEY.SCRIPT<.RANDOM"
"%U_au%AutoHotkeyGUI.RANDOM" /ScriptGuard2
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@red12sin Can you check that you have copied and pasted the compiler directives correctly into your script.
If you past them here from your script I can double-check them as well.
Edit: It looks like the two ;@Ahk2Exe-Obey compiler directives further up weren’t executed properly. Could you check these as well.
Cheers
If you past them here from your script I can double-check them as well.
Edit: It looks like the two ;@Ahk2Exe-Obey compiler directives further up weren’t executed properly. Could you check these as well.
Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Hi All, I am new here.
@TAC109
How can i select base file. i could not understand. can you please elaborate?
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Oops... My mistake, Got it now. I just need to select Ahk2Exe.exe from Base file option in the compiler.
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@kaka2
If you want to compress the compiled program, you can select any appropriate .exe file as the base file; in other words, if a v1 .bin base file is selected it won’t run if compressed.
Cheers
If you want to compress the compiled program, you can select any appropriate .exe file as the base file; in other words, if a v1 .bin base file is selected it won’t run if compressed.
Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@TAC109
Thanks for your contribution on the ahk_h thread I'm going to continue using _L and give this a shot!
Thanks for your contribution on the ahk_h thread I'm going to continue using _L and give this a shot!
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Update 03 Apr 2024
Document that ScriptGuard can be used with AutoHotkey_H v2.
Document that ScriptGuard can be used with AutoHotkey_H v2.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
I'm compiling with v2.0.9 U64 AutoHotkey64.exe and MPRESS, script does not run. Without MPRESS works fine. Can help please?
- JoeWinograd
- Posts: 2213
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Hi jsong,jsong55 wrote:Can help please?
This is a common problem with MPRESS that I've had to deal with for many years. I'm pretty sure (but not certain) that it is related to the size of the executable. I say that because my work-around is to include or exclude some additional code (unused, of course) to make the executable work. Sometimes it works when the filler code is included; sometimes it works when the filler code is excluded. It is such a frequent problem for me that I created an #Include file called unused-code-for-MPRESS-size-problem.ahk. Sometimes I have to play with its contents to make the executable work, but here's the gist of it (I usually have 30 of those lines in it):
Code: Select all
; each line is 100 bytes
VarSizeProblemMPRESS:="
(
12345678901234567890123456789012345678901234567890123456789012345678901234567890012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890012345678901234567890
)"
Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
@JoeWinograd
Interesting. Maybe I'll try UPX then.
Interesting. Maybe I'll try UPX then.
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: gwarble and 103 guests