Default Hotkey to last used script.

Features wanted...
Post Reply
Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Default Hotkey to last used script.

Post by Stefan »

Here an idea found with text editors:

Please add an default standard hotkey to execute the last used script.

F.ex. if i use an script not that often... then i didn't have to add an own dedicated hotkey,...

...but if i need this script right now a few times..... or f.ex. if i test a new script...
i could start this script from the second start on with an default-hotkey-for-last-used-script.

That way we didn't have to add an own dedicated hotkey to all scripts.

-
Maybe people want an per script setting too?
Like "AllowDefaultHotkey,1"
Don't know if this is needed.

-
What do you think?

RalphM
Posts: 2089
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Default Hotkey to last used script.

Post by RalphM »

Hi Stefan

Unless you are a strict keyboarder, there are so many ways to have your scripts at hand without the need for CKS.
Did you check out the catalog and the UDC menu already?
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Default Hotkey to last used script.

Post by j_c_hallgren »

Stefan wrote:Here an idea found with text editors:

Please add an default standard hotkey to execute the last used script.
I think having this function available from scripting CKS so that user could, if desired, assign it to a hotkey makes the most sense...and I do agree with the concept, BTW, as you have stated that one may need to execute script "aaa" a nbr of times, and then "zzz" a few times, etc..

Having this on scripting context menu might even be a valid idea for us who mouse/t-pad mostly.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Default Hotkey to last used script.

Post by jacky »

Well, I'm not exactly sure about that one, because there are so many ways to load a script... What action to load a script (script file?) should be having it put as "last one used" ?? Especially true when many places can use the same ways -- e.g. PFA, UDC, Catalog, Address Bar, Go To, etc can use a ::load "file"; and all can have just that one line, or it can be part of the script, thus making things potentially a lot more complicated.... no?

If that's only for scripts one doesn't use that often and, as such, doesn't have it on Catalog, UDC or anywhere else, you're maybe better off using a script to actually load such script files, e.g. show a predefined list of script files or list all XYS file on your Scripts folder or something so you can load whichever you want, all the while remembering any script loaded that way -- Then, simply assign a KS/UDC to a script that reloads the last script loaded that way and you're good to go.
Proud XYplorer Fanatic

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Default Hotkey to last used script.

Post by Stefan »

:D don't make it even more complicated only because you know all possible ways.
Think out of the box, think about novice user.
jacky wrote: What action to load a script (script file?) should be having it put as "last one used" ??
Just the "last one", no matter "where" is was called.
you're maybe better off using a script to actually load such script files, e
And here we go.... already do some work (modify an script to load other scripts) before you can use it.

Just make it simple :lol:

- if an script is called.....XY makes an ini entry "LastUsedScript="
- user can call this last used script with an hotkey.

That's simple.
No thinking "what must i do".
No prepare other things before.... like add an hotkey, or modify an other script first, or add an item to an list, only to remove it afterwards again.

And user have to remember one shortcut only for all scripts.
-- Just download an script for testing.
-- Call it once from "Load Script file..." .....and then use default hotkey to launch it again.

Post Reply