Page 4 of 6

Re: Repeat request now a plea

Posted: 17 Sep 2009 10:40
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:

Re: Repeat request now a plea

Posted: 17 Sep 2009 11:18
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?)

Re: Repeat request now a plea

Posted: 17 Sep 2009 11:23
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. :)

Re: Repeat request now a plea

Posted: 17 Sep 2009 12:49
by Muroph
concerning the new CTB right-click menu, is it possible to load the menu items directly from a script file?

Re: Repeat request now a plea

Posted: 17 Sep 2009 12:58
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:

Re: Repeat request now a plea

Posted: 17 Sep 2009 13:17
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...)

Re: Repeat request now a plea

Posted: 17 Sep 2009 14:51
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.

Re: Repeat request now a plea

Posted: 17 Sep 2009 16:28
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.

Re: Repeat request now a plea

Posted: 17 Sep 2009 20:02
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

Re: Repeat request now a plea

Posted: 17 Sep 2009 20:25
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. :)

Re: Repeat request now a plea

Posted: 17 Sep 2009 20:40
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.

Re: Repeat request now a plea

Posted: 17 Sep 2009 20:58
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?

Re: Repeat request now a plea

Posted: 17 Sep 2009 21:23
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:\"

Re: Repeat request now a plea

Posted: 17 Sep 2009 21:34
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!

Re: Repeat request now a plea

Posted: 17 Sep 2009 21:58
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?