AHK源代码加密器 v2.2

许多实用脚本和封装函数, 可以让您编写脚本更加便捷高效
AHKStudent
Posts: 287
Joined: 05 May 2018, 12:23

Re: AHK源代码加密器 v2.0

07 Jun 2018, 17:59

feiyue wrote:@AHKStudent, I fixed this problem, and now it can package the AHK main program into a separate program.


Tested and it works :thumbup: :thumbup:
alware
Posts: 8
Joined: 01 Jun 2018, 02:25

Re: AHK源代码加密器 v2.1

08 Jun 2018, 13:59

i put this code at the beginning of my code but still doesn't work

SetWorkingDir %A_WorkingDir% ; Ensures a consistent starting directory.
feiyue
Posts: 100
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.1

08 Jun 2018, 14:31

@alware, You need to re-encrypt the script ! :wave:
The initial working directory of the encrypted script (or compiled program) is the directory where the file is located.
For example, your script is in the D:\ directory, and your picture is in the same directory D:\001.jpg.
When you search for pictures, you can use the relative script path: "001.jpg".
I suggest that you use dir:=A_WorkingDir to save the script's working directory at the beginning of the script,
then you can use the absolute path of the picture: dir . "\001.jpg".
alware
Posts: 8
Joined: 01 Jun 2018, 02:25

Re: AHK源代码加密器 v2.0

08 Jun 2018, 21:58

feiyue wrote:@alware, Because script runs through named pipes, A_ScriptDir is useless.
You should use dir:=A_WorkingDir to get the used directory of the compiled program.


works perfectly!!! Thank you so much! your code rocks!!!!!!!!!!!!!!!!!

reload() doesn't work ! any idea?
feiyue
Posts: 100
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.1

08 Jun 2018, 22:38

@alware, You can test a simple script encryption.

Code: [Select all] [Download] GeSHi © Codebox Plus

Msgbox, OK !
Esc::Reload()
FluffyMrKitty
Posts: 14
Joined: 24 May 2018, 19:43

Re: AHK源代码加密器 v2.1

09 Jun 2018, 15:09

Is there any way to have the encrypted script run without a tray icon?
feiyue
Posts: 100
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.1

09 Jun 2018, 17:38

FluffyMrKitty wrote:Is there any way to have the encrypted script run without a tray icon?

add #NoTrayIcon
FluffyMrKitty
Posts: 14
Joined: 24 May 2018, 19:43

Re: AHK源代码加密器 v2.1

09 Jun 2018, 17:57

You're right. I just now noticed my stupid mistake. Sorry about that.
FluffyMrKitty
Posts: 14
Joined: 24 May 2018, 19:43

Re: AHK源代码加密器 v2.1

12 Jun 2018, 14:04

Would you be interested in figuring out why your encryption messes with this script's encryption/decryption? Frankly your work is beyond my current comprehension and I barely have a grasp on Laszlo's work.

Basically if I encrypt Laszlo's SW protection script with your script, I only get two unique fingerprints as opposed to a unique fingerprint for every machine.
feiyue
Posts: 100
Joined: 08 Aug 2014, 04:08

Re: AHK源代码加密器 v2.1

17 Jun 2018, 15:16

FluffyMrKitty wrote:Would you be interested in figuring out why your encryption messes with this script's encryption/decryption? Frankly your work is beyond my current comprehension and I barely have a grasp on Laszlo's work.

Basically if I encrypt Laszlo's SW protection script with your script, I only get two unique fingerprints as opposed to a unique fingerprint for every machine.


@FluffyMrKitty, You have found a good script, and I like it very much. :bravo:
I changed my script a little bit, upgraded to v2.2 version.
Deleted the #NoEnv statement (attached to the user script). :dance:

I suggest that you adjust the following code when you use Laszlo's script :

Code: [Select all] [Download] GeSHi © Codebox Plus

dir:=A_WorkingDir
IniFile = %dir%\SafeSW.ini


AHKtreasureland
Posts: 9
Joined: 12 Mar 2018, 10:30

Re: AHK源代码加密器 v2.2

23 Jun 2018, 15:16

thank you Fei, this is great stuff! Would it also work with AHK_H? would be great if it does. Thank you again!
FastLearner

Re: AHK源代码加密器 v2.2

07 Aug 2018, 19:20

as usual perfect scripts, fan of your "FindText" script :thumbup: :clap:

I'm also using the great laszlo's protection script so I need to hide any relevance on how this script/program was made or with what language.

Is there any way to not include the autohotkey master program when opening the compiled script?

or a way to hide ahk.exe icon and maybe encrypt it to hide it was made by which program?

Thank you very much :salute:

Return to “脚本函数”

Who is online

Users browsing this forum: No registered users and 2 guests