Power Opener [v3.40]   (formerly Power Launcher)

Discuss and share scripts and script files...
FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Power Launcher [v1.5 alpha4]

Post by FluxTorpedoe »

highend wrote:Any workaround available?
Yes, but not ideal IMO. :?
Not really because of the PFA catchall per se, but because of the use of PFA>Script.

@all
AFAIK, any PFA that runs a script raises two issues with:
1. The "Open" SC command
2. The "Open" function used in User>Manage Commands, and in Catalog

:arrow: Workarounds:
1. Replace your e.g. "open <curitem>" command in code with the following:
perm $EXTCLICK = "<curitem>"; load "PowerLauncher.xys"; unset $EXTCLICK;
2. Copy/Paste the exact line from "Open" items into "Open With" items. (should work with AutoHotkey example)

So you should have the possibility to have everything working, but it doesn't fell right though, since PFA>Script is kind of breaking the official "Open" tools...

If anyone has an idea, you're more than welcome!
A new <openitem> perhaps? Since there's already some parsing between Catalog/UserCommands and PFA...

klownboy
Posts: 4141
Joined: 28 Feb 2012 19:27

Re: Power Launcher [v1.5 alpha4]

Post by klownboy »

Hi highend,
I was just curious as to why you are using XY to start a AHK script instead of the other way around. I ask because I know, that you know, you could easily have AHK detect when XY is active and have any kind of AHK keyboard shortcuts to run XY commands/scripts/KSs. Do you want to avoid having AHK in Windows start-up or do you only use AHK associated with XYplorer? AHK is quite light resource wise.
Ken
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Power Launcher [v1.5 alpha4]

Post by FluxTorpedoe »

Update: For Multiple Application definitions, CommandLine applications were not detected. So this line must be further expanded. Now scripts are also detected instead of only "allowed" (& yep, I like brackets :) )

Code: Select all

	if ((exists($x_App)) || (exists(gettoken($x_App, 2, "|"))) || (exists("<xyscripts>\$x_App")) || (exists("<xyscripts>\".gettoken($x_App, 2, "|")))) {
So now, Multiple Applications work fine, for apps w/ or w/o CL, and scripts w/ or w/o CL.
Apps with CL have a warning icon, but that's the price to pay to see the command-line arguments...
I also updated the script with a better warning for app(s) defined but not found, but I'll upload it when things are a little out of "alpha" status.

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

Re: Power Launcher [v1.5 alpha4]

Post by highend »

Hi Ken,

It's just an entry for my personal convenience :) I usually compile my .au3 / .ahk scripts, but this one is under constant development, so I'm too lazy to compile it each time I've made a change. When this one is finished some day, I'll remove it from XY and put it in the autostart folder.

@FluxTorpedoe
2. Copy/Paste the exact line from "Open" items into "Open With" items. (should work with AutoHotkey example)
Works. Thanks a lot!
I also updated the script with a better warning for app(s) defined but not found, but I'll upload it when things are a little out of "alpha" status.
I'd call it at least "beta" :)
One of my scripts helped you out? Please donate via Paypal

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Power Launcher [v1.5 alpha4]

Post by FluxTorpedoe »

highend wrote:I'd call it at least "beta"
:) Well, as you noticed, code needs some make-up to cover its traces... ;)

Anyway, I'm still trying to wrap my head around the PFA > Script conundrum... :?
Can't find another way out than a new variable. Time for a new Wish then.

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Power Launcher [v1.5 alpha4]

Post by FluxTorpedoe »

Hi'
FluxTorpedoe wrote:I'm still trying to wrap my head around the PFA > Script conundrum
Well, Don solved it for me! :biggrin:

So here's a "private" version using the new var <pfaitem>.
I've everything opened by a PFA catchall:
*.*>::load "PowerLauncher.xys";
and it's now working great in all cases, whether via List, UDC, Catalog, etc... and of course still via PowerLauncher button itself. ;)

Power Launcher v1.6 beta 1 - :!: Requires XYplorer >= v12.30.0103
PowerLauncher.xys
(7.88 KiB) Downloaded 230 times
Note: This script still requires the use of its Definitions file found in the first post.

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Power Opener [v3.40] (formerly Power Launcher)

Post by FluxTorpedoe »

 
#####################
###  Power Opener v3.40  ###
#####################

(Formerly known as Power Launcher)

Hi everyone,

Here’s a new version with some major changes.
See full list in Changelog.

Important info for users who update:
— Both files must have the same name: PowerOpener.xys and PowerOpener.ini
— You must edit your definition file (PowerOpener.ini), which do not use *. for file types
   All info available in the new (blank) definition file below.

I apologize for the lack of clear instructions.
Unfortunately, I’m currently busy and will be offline for a few months. But I’ll check all messages when I return.

I hope it’s still of some use as it is.

Have a nice day, 8)

    Flux

———————————————————————————

• DOWNLOADS:   (previous versions available in Changelog)

› Script:
PowerOpener.xys
(16.47 KiB) Downloaded 75 times
› Definition file:
PowerOpener Definition (INI).zip
(1.83 KiB) Downloaded 74 times

———————————————————————————

• INSTALLATION » for first-time users:
 — Please refer to first post

• UPDATE » for all users:
 — Copy "PowerOpener.xys" and its unzipped definition file "PowerOpener.ini" to your scripts folder
 — Copy your old settings into the definition file

Post Reply