Not sure why but I get the
using v1.1.33.09
A simple script without any includes compiles just fine, but scripts with any includes result in error. It seems it is trying to make the script directory to path of the library and then appending the predefined library path to the back ... so 2 paths.. a bug?
---------------------------
Ahk2Exe Error
---------------------------
#include file cannot be opened.
Specifically:
Path of source file Path of library
---------------------------
OK
---------------------------
I set my library to this using include
#Include "C:\Users\%A_UserName%\OneDrive\AHKv2\Lib" ; set the dir of library
can't compile with ahk2exe_h but works fine with normal
Re: can't compile with ahk2exe_h but works fine with normal
Code: Select all
#Include "C:\Users\%A_UserName%\OneDrive\AHKv2\Lib" ; set the dir of library
Re: can't compile with ahk2exe_h but works fine with normal
Sorry I don't think I understand @justme
I have no problem compiling my same source with the normal v2 ahk2exe though only _h has this issue
I have no problem compiling my same source with the normal v2 ahk2exe though only _h has this issue
Re: can't compile with ahk2exe_h but works fine with normal
You should post this question in the AutoHotkey_H section of the forums.
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: can't compile with ahk2exe_h but works fine with normal
Moved from the main part of the forum to the _H section.
Re: can't compile with ahk2exe_h but works fine with normal
You may need to update ahk2exe.
download/file.php?id=25410
download/file.php?id=25410
Re: can't compile with ahk2exe_h but works fine with normal
Thank you for the new version now there's a new error
```
---------------------------
Ahk2Exe Error
---------------------------
Error: The script contains syntax errors.
Namely:
C:\Users\abcde\OneDrive\AHK Scripts\v2\Lib\JSON.ahk (9) : ==> This class declaration conflicts with an existing JSON.
Specifically: JSON
---------------------------
OK
---------------------------
```
seems can't double include. some of the include classes make use of JSON
```
---------------------------
Ahk2Exe Error
---------------------------
Error: The script contains syntax errors.
Namely:
C:\Users\abcde\OneDrive\AHK Scripts\v2\Lib\JSON.ahk (9) : ==> This class declaration conflicts with an existing JSON.
Specifically: JSON
---------------------------
OK
---------------------------
```
seems can't double include. some of the include classes make use of JSON
Re: can't compile with ahk2exe_h but works fine with normal
The library you are trying to include conflicts with the built-in JSON class in ahk_h. If there are no special requirements, the JSON library can be removed.
Re: can't compile with ahk2exe_h but works fine with normal
A little troublesome to replace them just for compile unless I make ahk_h also my interpreter in vscode would you suggest that?
Still not ideal cos it might mean individually removing from other libraries also that use it
Still not ideal cos it might mean individually removing from other libraries also that use it
Re: can't compile with ahk2exe_h but works fine with normal
Why compile with ahk_h when you have been using ahk_l all along?
Re: can't compile with ahk2exe_h but works fine with normal
Trying to encrypt the compiled version. So I followed the steps to set the password in C++ with Visual Studio
Re: can't compile with ahk2exe_h but works fine with normal
ahk_h has additional classes and class methods, and in this respect conflicts with some ahk_l scripts, which is unavoidable.
Re: can't compile with ahk2exe_h but works fine with normal
I guess you are right and I will have to slowly rewrite quite a bit of the code to get them to work with _h
Thanks for the help!
Thanks for the help!
Re: can't compile with ahk2exe_h but works fine with normal
There are only a handful of conflicts, and I don't think a lot of code needs to be rewritten.
Re: can't compile with ahk2exe_h but works fine with normal
Rather than trying to convert your scripts to AutoHotkey_H so as to allow encryption of your source, you could instead try ScriptGuard which also encrypts compiled scripts and works with regular AutoHotkey.
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: can't compile with ahk2exe_h but works fine with normal
@TAC109
In my tests, ScriptGuard2 also works for ahk_h.
In my tests, ScriptGuard2 also works for ahk_h.
Re: can't compile with ahk2exe_h but works fine with normal
Well, I didn’t know that! Thanks for letting me know.
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
Who is online
Users browsing this forum: No registered users and 11 guests