lmstearn wrote:
Hmmm, with the Logitech M185, the middle click on an AHK script brought up Window Spy for AHK V2! Yay.
However, subsequent clicks produce nothing.
Restarting PI or running elevated didn't help. How odd. Is there any chance of putting the items on the right-click menu? Or even CTRL- left click or something else?
So..., in Fully Portable mode, you selected a script in an explorer window, or on the desktop, then middle-clicked, and it opened right?
Then replicating this process didn't work? That is odd, I'll have to try and replicate that. Please let me know if I got that right.
lmstearn wrote:
Also unsure how to run the scripts in V2, though.
Check out the
AHK Launcher tab in Settings. Delete all the versions in this list you won't use. Then double click on each of the remaining versions to select the proper EXE for the program to use. You will want to do this for all AHK v1 and AHK v2 entries in the list that you intend to use.
After this is done, insert this into the first line of your script(s):
; AHK v#, where
# is the AHK version you want to use. This is the
first line version comment. It is used to identify what EXE to use for launching the script, and relates directly to the
AHK Launcher tab.
If you are using AHK 32-bit, then the
first line version comment should be
; AHK v# 32-bit. This is according to the default regex match criteria I included with the script. You can change this to be whatever you like in the
AHK Launcher tab. After making those changes, then change the
first line version comment in your scripts so they can be properly identified, and then the proper EXE will be used to launch them.
If using non-portable mode, close the program for these settings to take effect.
lmstearn wrote:
Would using Reload be an alternative to a manual restart?
The restart is only necessary in non-portable mode. After you check "Fully Portable" mode, there is no need to restart the script. The idea is that in non-portable mode, there is no need to keep this script running in the background. The settings the OS will use are written to disk on program exit. I suppose I could squeeze in a "Save" button, but this isn't really "more intuitive".
In non-portable mode, this script is an installer, and doesn't need to run in the background. So close it to save settings.
In Fully Portable mode, this script needs to run in the background, and no restarts are necessary; all settings take effect immediately.
lmstearn wrote:
Also, a thought, a multi-instance check of PI is better if only one instance is preferred.
The
#SingleInstance check is absolutely necessary in non-portable mode. If we get this working as intended, just try commenting out that directive, and then try running a script. You'll see why it's necessary, particularly when running a script with this program/script running at the same time.
I hope this isn't wearing you out, and thanks for the feedback, an update will be coming soon.
Now that the main list is populating, are you able to check non-portable mode? If you just use the context menu to run the script EXE as admin, then "activate" your chosen AHK v1 version from the main list and make sure your AHK v1 scripts work as intended. If this works, and if UAC works as expected then we are mostly done. Getting AHK v2 to work is then only a matter of configuring the
AHK Launcher list in settings.
EDIT: What kinds of scripts do you guys normally run? There are
known issues with running AHK when UAC is enabled. The one major advantage that a legit install of AHK offers is "Run with UI Access". I may be able to implement this, but it will take me a lot more time. At the moment I'm just working on a
second line admin comment. In the update, if the 2nd line of a script is
; admin then the script will automatically be launched as elevated, but not with UI Access.
EDIT2:
lmstearn wrote:
Usually run scripts for N++ using the Run Me ShelL Execute.
If you configure the
AHK Launcher and add an appropriate
first line version comment to your scripts as mentioned above, you can easily launch AHK v1 and v2 scripts the same way, side-by-side without the need to do any switching.