Page 1 of 1

Default Hotkey to last used script.

Posted: 28 Nov 2008 21:50
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?

Re: Default Hotkey to last used script.

Posted: 29 Nov 2008 00:49
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?

Re: Default Hotkey to last used script.

Posted: 29 Nov 2008 00:53
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.

Re: Default Hotkey to last used script.

Posted: 29 Nov 2008 02:31
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.

Re: Default Hotkey to last used script.

Posted: 29 Nov 2008 11:46
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.