Page 1 of 1

AHK - parallel installation of versions

Posted: 19 Aug 2014 17:34
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.

Re: AHK - parallel instalation of versions

Posted: 19 Aug 2014 17:52
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

Re: AHK - parallel instalation of versions

Posted: 19 Aug 2014 19:08
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?

Re: AHK - parallel installation of versions

Posted: 19 Aug 2014 22:51
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.

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 00:07
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...

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 17:45
by SkyFrontier
What happens when you compile the attached file, highend?

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 18:26
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
:)

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 19:04
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?

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 20:12
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

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 20:52
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.

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 21:20
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 )

Re: AHK - parallel installation of versions

Posted: 20 Aug 2014 21:42
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!