AHK - parallel installation of versions

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

AHK - parallel installation of versions

Post by SkyFrontier »

Hi there!

1. is it safe to install AHK flavors like 1.0, 1.1 and H on parallel?
1.1 how to make one of them the default? Is it suffice to change system file association with .ahk from one ahk exe to another? How context menu "compile script" will react to this?

2. is there a compiler which doesn't trigger antivirus protection either for compiling as well as for executing compiled exes? Which one?

Thanks in advance.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

binocular222
Posts: 1420
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: AHK - parallel instalation of versions

Post by binocular222 »

Since AHK is portable in nature, the only thing AHK-installer does is associating .ahk to autohotkey.exe
So, you can use multiple portable ahk in diff versions, just make sure to choose correct default program to open .ahk
about antivirus, I don't use any. Maybe a post in AHK forum is better
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: AHK - parallel instalation of versions

Post by highend »

Mind to share the code for a file (and the name of the scanner + version) that triggers the scanner on compiling / executing?

Are you using upx to compact them?
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: AHK - parallel installation of versions

Post by SkyFrontier »

No problem. Attached.

This is a custom code I worked on to obtain a magnifier (I doubt XY can do this... lol).
It does almost everything I want, except inverting colors/emulating high contrast - any ideas on how to do it? (tickbox-based, real time toggle)

No upx that I'm aware of - trying to disable buit in compacter resulted in a same-sized .exe.

avast! v2014.9.0.2021 vs latest AHK_L

edit: just saw you message, binocular: thanks, I'll try the other flavors later. I have read some posts with similar issue, but the general consensus there seem to be "exclude and forget", which is impractical when it comes to compiling.
Attachments
AHK_smooth_v2_bySF_AHK.ahk.xys
(2.63 KiB) Downloaded 167 times
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: AHK - parallel installation of versions

Post by highend »

Compiling the .ahk file (with a build script for Sublime Text 3) doesn't trigger Avast Antivirus (Free) 2014.9.0.2021

Code: Select all

{
	"cmd": ["Ahk2Exe.exe", "/in", "$file", "/icon", "$file_path/$file_base_name.ico"],
	"path": "D:\\Tools\\AutoHotkey_L\\Compiler",
	"selector": "source.ahk"
}
Starting the .exe for the first time invokes the DeepScreen protection part of Avast (which finds no problem) but it isn't recognized as a virus / malware / rootkit / whatever...
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: AHK - parallel installation of versions

Post by SkyFrontier »

What happens when you compile the attached file, highend?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: AHK - parallel installation of versions

Post by highend »

What happens when you compile the attached file, highend?
Compiling the .ahk file (with a build script for Sublime Text 3) doesn't trigger Avast Antivirus (Free) 2014.9.0.2021
:)
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: AHK - parallel installation of versions

Post by SkyFrontier »

I thought you referred your code, not mine.

That's really, really weird.

Thanks for the test!

Would you mind compiling it and attaching it here so I can check how Avast reacts here?
Which version of AHK are you using?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: AHK - parallel installation of versions

Post by highend »

v1.1.15.04 from http://ahkscript.org/
x86 version (unicode)
AHK_smooth_v2_bySF_AHK.zip
(378.79 KiB) Downloaded 135 times
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: AHK - parallel installation of versions

Post by SkyFrontier »

...cool! Basically, the same code compiled in MY machine gets rejected by Avast, while yours not.
File sizes differ but that may be due to custom icons involved.

As file sizes differ, one last attempt would be producing another version with AHK default icon, highend. Would you mind, please?
Is there a way to decompile resulting exes, preserving all codes involved (even for exe envelop) so I could pinpoint what is being injected on my side, if any?

With this last piece of information I can contact AHK guys and tell them an informed complaint. Now and them I see some ahk codes being refused here (one of autocart's AHK MiniTree come to mind; Marco's XY Updater, too), which were being tolerated as I had no control over certain variables.

Time to react.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: AHK - parallel installation of versions

Post by highend »

AHK_smooth_v2_bySF_AHK_default_icon.zip
(382.23 KiB) Downloaded 131 times
Iirc there was Exe2Ahk but I think it stopped working with AutoHotkey_L...

What does virustotal.com display for your .exe version?

Mine is absolutely clean:

SHA256: c1e9203435d9a5f47411eaf122ef9fa953c24e3e4be744de56f1b9b2f5e6fec2
Dateiname: AHK_smooth_v2_bySF_AHK.exe
Erkennungsrate: 0 / 52
Analyse-Datum: 2014-08-20 19:18:30 UTC ( vor 1 Minute )
One of my scripts helped you out? Please donate via Paypal

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: AHK - parallel installation of versions

Post by SkyFrontier »

highend wrote:
AHK_smooth_v2_bySF_AHK_default_icon.zip
Iirc there was Exe2Ahk but I think it stopped working with AutoHotkey_L...

What does virustotal.com display for your .exe version?

Mine is absolutely clean:

SHA256: c1e9203435d9a5f47411eaf122ef9fa953c24e3e4be744de56f1b9b2f5e6fec2
Dateiname: AHK_smooth_v2_bySF_AHK.exe
Erkennungsrate: 0 / 52
Analyse-Datum: 2014-08-20 19:18:30 UTC ( vor 1 Minute )
..and it just gets better! Now I am being prevented (AV, sure!) of downloading the no-icon version, which is annoying! Busy with stuff as of now, I'll shut Avast down for 10 minutes any time soon, do some tests, check versions against VT...
thanks for your cooperation!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply