Is it possible to execute an altered include but with the main exe already compiled? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
patrickwreis
Posts: 2
Joined: 28 Jan 2015, 12:11

Is it possible to execute an altered include but with the main exe already compiled?

26 Jun 2018, 14:40

Sorry for English. It's not my first language.
I have a folder with the following structure

|Engine
> |main.exe
> |pieces.ahk
> |vars.ahk
> |config.ini
|logs
|prints

Main is like a "Framework" in ahk. I want it to be compiled and users do not have access to the code. And as long as the order of directories is obeyed, anyone can alter pieces.ahk (Contains subs and is included within main). But when running Main, main be re-included with changes made in pieces.ahk

Is there any way to do that?
User avatar
TheDewd
Posts: 1190
Joined: 19 Dec 2013, 11:16
Location: USA

Re: Is it possible to execute an altered include but with the main exe already compiled?

29 Jun 2018, 12:55

#IncludeAgain FileOrDirName
https://autohotkey.com/docs/commands/_Include.htm

Would this work?
Image Bulldozer - Sokoban inspired game from 1994 recreated in AutoHotkey.
tmplinshi
Posts: 1306
Joined: 01 Oct 2013, 14:57

Re: Is it possible to execute an altered include but with the main exe already compiled?  Topic is solved

30 Jun 2018, 01:42

You can use Enigma Virtual Box to embed main.ahk (or any other files) into AutoHotkey.exe, it will produce a single executable (e.g. main.exe).
The output executable has even more protection than the compiled script by autohotkey, it cannot be decompiled by AHK_L Decompiler.
evb.png
evb.png (20.18 KiB) Viewed 210 times

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], MannyKSoSo, SOTE and 174 guests