Try Script: no F1 works, and 'open Editor' missed

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

Try Script: no F1 works, and 'open Editor' missed

Post by Stefan »

Just my thought while testing scripts:

I use Scripting > Try Script...

I get "Enter Script to Run"-dialog,
here i can't open the help file, this must be opened before.
Maybe it would be fine if 'F1' would work or we could have an button to open the help?


Then i get "Stepping through a Script"-dialog,
here i think an option (button or context menu)
to [cancel and go back] to "Enter Script to Run"-dialog would be fine.

(XYplorer 7.80.0025_(24-nov-2008) BETA)

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Try Script: no F1 works, and 'open Editor' missed

Post by admin »

I added the F1 thing, good idea!

Not sure about returning the the Try Script dialog. It might be even okay to always return to it after the tried script has been executed. But then some users (including) might use the Try Script not to "try" something but to quickly execute a multiline script via copy and paste.

An idea would be to add another command "Run Script" to the (still short :wink: ) Scripting menu:
Try Script = forced Step mode, returns to dialog when script is done
Run Script = just run the entered script

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

Re: Try Script: no F1 works, and 'open Editor' missed

Post by Stefan »

Why not in the "Stepping through a Script"-dialog ?

Often if an script went wrong and i had to cancel it... i just want go back to the "Enter Script to Run"-dialog

That's why i think an option (button or context menu) in the "Stepping through a Script"-dialog would be fine.


-

Maybe there is something i didn't know?
I do every time the cycle:
1) Scripting > Try Script...
2) "Enter Script to Run"-dialog
3) "Stepping through a Script"-dialog
4) [Cancel]
GoTo 1)

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Try Script: no F1 works, and 'open Editor' missed

Post by admin »

Stefan wrote:Why not in the "Stepping through a Script"-dialog ?

Often if an script went wrong and i had to cancel it... i just want go back to the "Enter Script to Run"-dialog

That's why i think an option (button or context menu) in the "Stepping through a Script"-dialog would be fine.
The "Stepping through a Script"-dialog is not only called when coming from Try Script. So often there's no sense in "going back".

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

Re: Try Script: no F1 works, and 'open Editor' missed

Post by Stefan »

admin wrote:
Stefan wrote:Why not in the "Stepping through a Script"-dialog ?

Often if an script went wrong and i had to cancel it... i just want go back to the "Enter Script to Run"-dialog

That's why i think an option (button or context menu) in the "Stepping through a Script"-dialog would be fine.
The "Stepping through a Script"-dialog is not only called when coming from Try Script. So often there's no sense in "going back".
OK... not "going back"

But we talking about
-------- open "Enter Script to Run"-dialog
---------from
-------- "Stepping through a Script"-dialog ? Isn't it?

So i mean an [Edit]-button like [Stop and go to "Enter Script to Run"-dialog]
in "Stepping through a Script"-dialog to open "Enter Script to Run"-dialog (here then used as 'Edit Script') would be nice.


-----------------
Admin wrote: Not sure about returning the the Try Script dialog.
It might be even okay to always return to it after the tried script has been executed.
But then some users (including) might use the Try Script not to "try" something but to quickly execute a multiline script via copy and paste.
I never meant an automatic "always return to it after" :roll:
I always talked about an option (button or context menu)
Admin wrote:An idea would be to add another command "Run Script" to the (still short :wink: ) Scripting menu:
Try Script = forced Step mode, returns to dialog when script is done
Run Script = just run the entered script
I think not that's an good way.

I would suggest to pimp the "Enter Script to Run"-dialog by adding buttons [Step through Dialog] + [Just Run&Exit]+ [Cancel] + [Open] + [Save as...]

And BTW please add &-accelerators to the buttons :-D

-

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Try Script: no F1 works, and 'open Editor' missed

Post by Muroph »

admin wrote:An idea would be to add another command "Run Script" to the (still short :wink: ) Scripting menu:
Try Script = forced Step mode, returns to dialog when script is done
Run Script = just run the entered script
right now holding ctrl and clicking continue in the step dialog will disable stepping for the rest of the script.
the same could be implemented in the "try script" dialog.
holding ctrl while clicking "OK" would run the script without stepping.

i also like the idea of an "edit script" button on the step dialog (kinda like "edit pattern" in the rename preview).
however, this is a minor wish, since it only takes 2 KS's to do that.
i use Esc (Cancel) then Ctrl+T (Try script).
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 66305
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Try Script: no F1 works, and 'open Editor' missed

Post by admin »

Muroph wrote:
admin wrote:An idea would be to add another command "Run Script" to the (still short :wink: ) Scripting menu:
Try Script = forced Step mode, returns to dialog when script is done
Run Script = just run the entered script
right now holding ctrl and clicking continue in the step dialog will disable stepping for the rest of the script.
the same could be implemented in the "try script" dialog.
holding ctrl while clicking "OK" would run the script without stepping.

i also like the idea of an "edit script" button on the step dialog (kinda like "edit pattern" in the rename preview).
however, this is a minor wish, since it only takes 2 KS's to do that.
i use Esc (Cancel) then Ctrl+T (Try script).
Scripts can call other scripts, but this Edit button would always have to go back to the top script, so it would often not "edit" what you'd like to edit. I'm not planning to add the wonderful Edit+Continue feature of some lDEs.

I think the Try Script dialog is not the script editor of choice anyway. Better use some good text editor and work on XYS files.

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

Re: Try Script: no F1 works, and 'open Editor' missed

Post by Stefan »

Ah i see :D

Post Reply