AHK Portable Installer v1.10

Post your working scripts, libraries and tools
User avatar
TheArkive
Posts: 345
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: AHK Portable Installer v1.8

29 Jun 2020, 10:09

vvhitevvizard wrote:
29 Jun 2020, 09:59
In other words, ur tool requires a user to re-edit scripts. I'm talking of ur script to analyze a script to be run a bit deeper: u might even start parsing some commands to get an idea whether it requires AHK v2 or v1.
That's not the point of this script.
User avatar
vvhitevvizard
Posts: 405
Joined: 25 Nov 2018, 10:15
Location: Russia

Re: AHK Portable Installer v1.8

29 Jun 2020, 10:09

U could use all the methods together. Search for commented first line keywords, search for #requires,
and just to give u a glimpse of my idea, searching with this regex "s):=gui\.new\(" would ensure u r having a deal with exactly AHK v2-112+ script.
TheArkive wrote:
29 Jun 2020, 10:05
@vvhitevvizard
I think you may be confused about how this script functions.
To be honest I didn't run ur scripts yet. I got ur script function idea by reading this
AHK Launcher. This lets you run multiple versions of AHK side-by-side. Just modify your scripts as follows:
- insert ; AHK v# as line 1 in your script
- specify the exact match or regex match in the Extras tab
- specify an EXE to run the script for each match entry
And it came into my head "it might be a hassle of having all the other ppl scripts I was about to test to be rdy for this feature". On the other hand, what stops us from starting to analyze scripts to run more deeply? :) I, for one, had had some issues recently switching between v2-103, v2-108, v2-112 script versions trying to convert them, fall back, etc. Slightly different AHK interpreter version and scripts fail to run... And due to human factor nature, at some point I messed up with labels indicating required AHK versions inside my scripts.
Last edited by vvhitevvizard on 29 Jun 2020, 10:30, edited 3 times in total.
User avatar
TheArkive
Posts: 345
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: AHK Portable Installer v1.8

29 Jun 2020, 10:20

:headwall: :headwall: :headwall: :headwall: :headwall: :headwall:
Dude, I appreciate your feedback, but again, I think you are missing the point of this script/program. Your proposed solution is actually more complex and restrictive than what my script does. Have you tried this script yet? If you do, please run it compiled. I won't support issues with this program as a script.
User avatar
vvhitevvizard
Posts: 405
Joined: 25 Nov 2018, 10:15
Location: Russia

Re: AHK Portable Installer v1.8

29 Jun 2020, 10:26

Sorry for distraction. I proposed side notes. Not concerning ur designated fixed idea.
User avatar
TheArkive
Posts: 345
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: AHK Portable Installer v1.8

29 Jun 2020, 10:41

@vvhitevvizard
No problem. A little background on this script:

At any given time I have 8+ active versions of AHK available to the system. I tell the program what "first-line comment" to expect. On match, the specified match triggers an associated EXE. All of this is configurable in the GUI. It can be as broad or specific as the user wants. The number of versions the user can add is only limited by system memory, and hard drive space. If i wanted to specify a specific sub-version of AHK i could, in this first line comment, though that isn't something I would normally do in my case.

I'm not trying to "guess" what version a script is. And if a user implements #requires, again, it won't affect how this script works. To me, adding such a first line comment is trivial, given the payoff, that is I can run as many parallel versions of AHK as I want for testing, and the changes needed to be made for each script are very minor (just this first-line comment... that's all).

I actually have a planned update, since right now all regex matches are case sensitive. The next update will fix a few minor AHK v2 updates, and automatically add i) for regex matches for convenience.
User avatar
TheArkive
Posts: 345
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: AHK Portable Installer v1.9

16 Oct 2020, 15:49

Updates 2020/10/16:
  • RegEx matches in EXE list (Extras Tab) are now case insensitive.
  • Added checkboxes for toggling the showing of context menu elements
  • Improved registry interaction, should properly function when "Run as Administrator" is selected.
  • If window was moved out of bounds of the "active monitor", now the previous coordinates will be overwritten to ensure the window is properly displayed in-bounds on the current monitor. This is most necessary when working on a multi-monitor setup, and then switching to a single monitor.
  • Scaled back "Ahk2Exe Handler". AutoHotkey_H v1 compiler behaves significantly different than expected and doesn't seem to integrate as well with the context menu. Currently using the "Ahk2Exe Handler" will simply open Ahk2Exe and auto-fill the script to be compiled.
User avatar
TheArkive
Posts: 345
Joined: 05 Aug 2016, 08:06
GitHub: TheArkive

Re: AHK Portable Installer v1.10

17 Oct 2020, 18:37

Update 2020/10/18
  • Rewrote registry handling to be as fast as it was in v1.8
  • Reorganized some GUI controls and labeled some things better.
  • Updated docs.
  • Updated OP with a more concise list of features.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 22 guests