Repeat request now a plea

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

Re: Repeat request now a plea

Post by admin »

jacky wrote:
admin wrote:How did you make the disabled items?
Anything (not called "Cancel") without a script is disabled:

Code: Select all

"Enabled" msg 'here';
"Disabled"
"Cancel"
:lol: Uaaah, I guess it's time for a holiday again. :mrgreen:

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

Re: Repeat request now a plea

Post by Stefan »

admin wrote:How did you make the disabled items?

Code: Select all

"- - - Scripts - - - - - - - - - - - - -"
":: XY INI direct edit"
 Load EditXYini;
":: XY Backup"
 Load XyplorerBackup;
":: XYplorer Automatic Updater"
 Load XYplorer Automatic Updater;
"- - - mySettings - - - - - - - - - - - -"
"mySettings"
 run "<xypath>\own\mySettings.txt";
"Hints"
 run "<xypath>\own\hints.txt";
"- - - Help - - - - - - - - - - - - - - -"
run """<xypath>\own\xy-cheat-keyboardshortcuts v8.pdf""";
run """<xypath>\own\xy-cheat-mousetricks v8.pdf""";
run """<xypath>\own\Keyboard shortcuts - XYwiki.htm""";
run """<xypath>\own\xyplorer standard shortcuts.txt""";
run """<xypath>\own\XYplorerHelp.pdf""";
" "
run """<xypath>\XYplorer.ini""";
run """<xypath>\own\History.txt""";
"- - - Online - - - - - - - - - - - - - -"
run """http://www.xyplorer.com/xyfc/search.php?search_id=newposts""";
run """http://88.191.26.34/XYwiki/index.php/Introduction""";
run """http://88.191.26.34/XYscripts/""";
run """http://88.191.26.34/computers_are_fun/2008/09/07/xyplorer-scripting-for-each-selected-item/""";
I wanted before to go to suggest "disabled items" ____ like my ("!- - - mySettings - - - - - - - - - - - -")
as like rule: "any string behind an minus is treaded as comment/caption and do nothing".

But WHY? ... i mean it looks like disabled .. but could also be used to do smtg useful, i guess, as showing here:

Code: Select all

"- - - mySettings - - - - - - - - - - - -"
 run "<xypath>\own\mySettings.txt";
Tip:
i also want to have an empty line, so i use "Alt+255" now for that. (in my pic i have still used an dot from my testing)

Wish:
could there be an tool-tips for those lines in my pic _ they are not full visible? But only after some seconds, please (maybe 3sec?)

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

Re: Repeat request now a plea

Post by admin »

Stefan wrote:Wish:
could there be an tool-tips for those lines in my pic _ they are not full visible? But only after some seconds, please (maybe 3sec?)
No. :)

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

Re: Repeat request now a plea

Post by Muroph »

concerning the new CTB right-click menu, is it possible to load the menu items directly from a script file?
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...

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Repeat request now a plea

Post by zer0 »

Muroph wrote:concerning the new CTB right-click menu, is it possible to load the menu items directly from a script file?
Not from your CTB script file, you'd need another one to take care of the menu. Eventually, I hope it'd be possible to get 2 for the price of 1 :lol:
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Repeat request now a plea

Post by jacky »

Yeah, the one thing missing from the current implementation of CTB's context-menu is a way to have said menu/multi-line script contained in a file. Maybe if the script consist of only one single command load then XY could "pre-execute" it to see if there's a menu to load? (That or allow to enter not a script but the filename of a script file? But obviously using load has advantages, such as specifying labels to load...)
Proud XYplorer Fanatic

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

Re: Repeat request now a plea

Post by admin »

jacky wrote:Yeah, the one thing missing from the current implementation of CTB's context-menu is a way to have said menu/multi-line script contained in a file. Maybe if the script consist of only one single command load then XY could "pre-execute" it to see if there's a menu to load? (That or allow to enter not a script but the filename of a script file? But obviously using load has advantages, such as specifying labels to load...)
Combining load with a merged menu would be too much work for now, but I'm working on a special syntax to read a file before creating menu. Something like file:XYplorer Automatic Updater.

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

Re: Repeat request now a plea

Post by jacky »

admin wrote:Combining load with a merged menu would be too much work for now, but I'm working on a special syntax to read a file before creating menu. Something like file:XYplorer Automatic Updater.
Nicely done. :)

Funny thing about this context menu, when using a command load. Try this (as "context script") :

Code: Select all

"foo" msg 'bar';
"menu" load *;
Clicking on "menu" the command load shows the menu again, and the Click/Edit/Customize TB items are still there.
Proud XYplorer Fanatic

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

Re: Repeat request now a plea

Post by Muroph »

admin wrote:Combining load with a merged menu would be too much work for now, but I'm working on a special syntax to read a file before creating menu. Something like file:XYplorer Automatic Updater.
this doesn't work with one of my scripts (specifically, the comments script), nor does pasting the whole script in the CTB "right-click" field.
that script generates the menu using variables, so it MUST execute some commands BEFORE displaying the menu (using a load command).
all i get on the context menu is one item with the main subscript's caption.
clicking on that item will load the real menu.
i believe this would also happen with any script that tries to use the new checked and disabled flags, since they, too, have to be applied by the script before the menu is loaded.

it works well with "normal" scripts, tho.
thanks! :D
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: 64886
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Repeat request now a plea

Post by admin »

jacky wrote:
admin wrote:Combining load with a merged menu would be too much work for now, but I'm working on a special syntax to read a file before creating menu. Something like file:XYplorer Automatic Updater.
Nicely done. :)

Funny thing about this context menu, when using a command load. Try this (as "context script") :

Code: Select all

"foo" msg 'bar';
"menu" load *;
Clicking on "menu" the command load shows the menu again, and the Click/Edit/Customize TB items are still there.
Indeed. That's because of the way I patch the original script to get a merged menu (I guess you have noted in Step mode that I introduced two new SCs to make it work... :wink: ). One day this will be optimized. :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Repeat request now a plea

Post by serendipity »

The current Syntax:

Code: Select all

"Caption|Icon|State : Label" Script
doesn't work for hidden scripts (_Label). I like to hide my scripts but still need the menu.

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

Re: Repeat request now a plea

Post by admin »

serendipity wrote:The current Syntax:

Code: Select all

"Caption|Icon|State : Label" Script
doesn't work for hidden scripts (_Label). I like to hide my scripts but still need the menu.
Example?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Repeat request now a plea

Post by serendipity »

admin wrote:
serendipity wrote:The current Syntax:

Code: Select all

"Caption|Icon|State : Label" Script
doesn't work for hidden scripts (_Label). I like to hide my scripts but still need the menu.
Example?
This works:

Code: Select all

//test1
 
"&Open IE|iexplore|1 : ie"
  run "iexplore"

"Goto C:|C:|4 : c"
  goto "C:\"
This doesn't

Code: Select all

//test2
  load *, "_ie;_c";

"&Open IE|iexplore|1 : _ie"
  run "iexplore"

"Goto C:|C:|4 : _c"
  goto "C:\"

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

Re: Repeat request now a plea

Post by admin »

serendipity wrote:
admin wrote:
serendipity wrote:The current Syntax:

Code: Select all

"Caption|Icon|State : Label" Script
doesn't work for hidden scripts (_Label). I like to hide my scripts but still need the menu.
Example?
This works:

Code: Select all

//test1
 
"&Open IE|iexplore|1 : ie"
  run "iexplore"

"Goto C:|C:|4 : c"
  goto "C:\"
This doesn't

Code: Select all

//test2
  load *, "_ie;_c";

"&Open IE|iexplore|1 : _ie"
  run "iexplore"

"Goto C:|C:|4 : _c"
  goto "C:\"
Yep, right. Thanks!

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

Re: Repeat request now a plea

Post by Stefan »

1)
> (where, by the way, the caption
"Run" was changed to "Click").

Shouldn't this caption named at least "Left-Click"
to be associated with the Left-Click box in the edit dialog?


2)
just an note from an test,
This didn't work for me, the MSG shows just '$Icon' and not the path to the icl
and so the icon assignment didn't work too:

Code: Select all

 $Icon = "E:\a\xyplorer\Tools\ICONS\bird.icl"; 
"show icl path" msg $Icon;
"Go C:|"$Icon" /3"|1" goto "C:\";  //shown bold
"Go D:|"$Icon" /8"|2" goto "D:\";  //shown checked
"Go E:|"$Icon" /23"|3" goto "E:\";  //shown bold and checked
This works in AB:
::$Icon = "E:\a\xyplorer\Tools\ICONS\bird.icl"; msg $Icon;

Maybe it's by design?

Post Reply