I'm back to Windows after many years (new PC, fresh install), remembered AHK, installed it and can't do a simple compile.
Then I found an old script that worked in my Windows backups, but that doesn't work either and I can't figure out what the problem is.
Sorry if this is a stupid question
Compile does not work
Re: Compile does not work
There is quite a difference in the syntax between v1 and v2 scripts. The line shown looks like it is from a v1 script and would be flagged as invalid by v2 AutoHotkey. To compile a v1 script it is necessary to have earlier installed v1 AutoHotkey and then select a v1 base file in the compile dialogue.
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: Compile does not work
Did you get the same error when you ran the script? Are you aware that AHK scripts are meant to run as .ahk files and that compiling the script isn’t actually compiling the code?
Re: Compile does not work
You have right, but I wasn't aware about the changes.TAC109 wrote: ↑02 Jun 2023, 03:40There is quite a difference in the syntax between v1 and v2 scripts. The line shown looks like it is from a v1 script and would be flagged as invalid by v2 AutoHotkey. To compile a v1 script it is necessary to have earlier installed v1 AutoHotkey and then select a v1 base file in the compile dialogue.
Cheers
I was looking for samples with google, which was obviously a bad idea.
While running the script the message appeared, that this need Autohotkey V1