Page 1 of 1

Replace Multi Button

Posted: 01 Nov 2014 11:48
by edyyus
Image

Update : ReplaceMultiButtonL.xys V3.3 ( 15 July 2015 )
-Button opened Right from used ctb
- Versions 3.3 can replace all button in toolbar
Download :
Zxr-Icon.rar
Download :
ReplaceMultiButtonL.xys
Download :
ReplaceMultiButtonR.xys
Snippet for ReplaceMultiButtonL.xys

Code: Select all

Snip: CTB 1
  XYplorer 14.50.0204, 11.11.2014 08:51:37
Action
  NewUserButton
Name
  Replace Multi Button L
Icon
 
ScriptL
  Load "ReplaceMultiButtonL.xys";
ScriptR
  Load ("ReplaceMultiButtonL.xys",
      "_Zx00;_Zx01;_Zx02;_Zx03;_Zx04;_Zx05;_Zx06;_Zx07;_Zx08;_Zx09;_Zx10;
       _Zx11;_Zx12;_Zx13;_Zx14;_Zx15;_Zx16;_Zx17;_Zx18;_Zx19;_Zx20;_Zx21;
       _Zx22;_Zx23;_Zx24;_Zx25;_Zx26;_Zx27;_Zx28;_Zx29;-;_CloseZx8;_Zx80;
       _Zx81;_OnOff82;_OnOff83;_editZx84;_ConfZx;");
FireClick
  0
Update : ReplaceMultiButtonL.xys V3.3 (Right) ( 15 July 2015 )
- Button opened Left from used ctb
- Versions 3.3 can replace all button in toolbar

Snippet for ReplaceMultiButtonR.xys, Just change script name L to R

(1) Paste ::snippet; into the address bar and press ENTER. A text box will open to enter snippet.

(2) And here comes the copy+paste ready snippet. I will create a new button at the right end of your toolbar.

(3) CTB index: First, Must change the ctbindex = ?? in script > [KEY] for index of your used ctb (or auto create ctb from snippet)

[KEY]

ctbindex = 33




(4)After set ctbindex, for first run, not add icon in ctb, click 3 times for collect all showed button in toobar
to set at first menu (button 00 ) and make base to set other menu button (or you can do this manual in script)

(5) To make this script work accross sessions, please check box in Xyplorer Congfiguration:

'Remember Permanent Variables' from Menu : Tools > Configuration > General > Refresh, Icons, History

(6) See other intruction in script file.


Credit to:

"serendipity - ExpandDriveButton v2.4 & XYplorer_Collect v2.xys", "Enternal - SelectionStore.xys",
"totmad1 - My676.xys", "SammaySarkar - XYCollector.xys", "FluxTorpedoe - SessionManager.xys",

and other forumer scripts. "-" only edit, cut and paste to make ReplaceMultiButton.xys

I try to lern about scripts and I try to make this script user frienly

Feel free to use, edit and share this scripts.

Changelog:
V 3.3
1. Fixed other bug
2. Add other congfiguration menu, ie
- Rename menu
- Set button in menu
- Show/Hide other menu
- And Other............

My english not so god
I only want to share Replace Multi Button script
(edit ExpandDriveButton from serendipity)
Thanks serendipity

Re: Replace Multi Button

Posted: 02 Nov 2014 14:22
by klownboy
Thanks for the post edyyus. You could also consider doing complete toolbar swapping as well or in lieu of "CTB expanding". See this thread http://www.xyplorer.com/xyfc/viewtopic. ... 98#p107403 for LayCatTools script. The script itself is few posts down from where the pitcure is. It will load and save complete toolbars and the swapping occurs very fast. You can name the toolbar appropriately when saving a new one and load different toolbars whenever you like. In addition it saves and loads layouts, catalogs, and columns. In a few days I may be posting another modification of Serendipity's nice ExpandDriveButton script. I mention aspects of it on his thread. I've been using it for a long time but never posted the modified version. We can then compare notes. :)
Thanks,
Ken

Re: Replace Multi Button

Posted: 06 Nov 2014 17:57
by serendipity
Hi Ken and Edyyus,
Thanks for your interest in my ExpandDriveButton script. Feel free to use it completely or for whatever purpose you need.
Good luck!

Re: Update Replace Multi Button V3.0

Posted: 11 Nov 2014 10:47
by edyyus
Update : ReplaceMultiButtonL.xys V3.0 (Left) ( 11 November 2014 )
-Button opened Right from used ctb

Snippet for ReplaceMultiButtonL.xys

Code: Select all

Snip: CTB 1
  XYplorer 14.50.0204, 11.11.2014 08:51:37
Action
  NewUserButton
Name
  Replace Multi Button L
Icon
  Zxo30.ico
ScriptL
  Load "ReplaceMultiButtonL.xys";
ScriptR
  Load ("ReplaceMultiButtonL.xys",
      "_Zx00;_Zx01;_Zx02;_Zx03;_Zx04;_Zx05;_Zx06;_Zx07;_Zx08;_Zx09;_Zx10;
       _Zx11;_Zx12;_Zx13;_Zx14;_Zx15;_Zx16;_Zx17;_Zx18;_Zx19;_Zx20;_Zx21;
       _Zx22;_Zx23;_Zx24;_Zx25;_Zx26;_Zx27;_Zx28;_Zx29;-;
       _CloseZx;_editZx;_ResetButtZx;");
FireClick
  0



Update : ReplaceMultiButtonL.xys V3.0 (Right) ( 11 November 2014 )
-Button opened Left from used ctb

Snippet for ReplaceMultiButtonR.xys

Code: Select all

Snip: CTB 1
  XYplorer 14.50.0204, 11.11.2014 08:51:37
Action
  NewUserButton
Name
  Replace Multi Button R
Icon
  Zxr30.ico
ScriptL
  Load "ReplaceMultiButtonR.xys";
ScriptR
  Load ("ReplaceMultiButtonR.xys",
      "_Zx00;_Zx01;_Zx02;_Zx03;_Zx04;_Zx05;_Zx06;_Zx07;_Zx08;_Zx09;_Zx10;
       _Zx11;_Zx12;_Zx13;_Zx14;_Zx15;_Zx16;_Zx17;_Zx18;_Zx19;_Zx20;_Zx21;
       _Zx22;_Zx23;_Zx24;_Zx25;_Zx26;_Zx27;_Zx28;_Zx29;-;
       _CloseZx;_editZx;_ResetButtZx;");
FireClick
  0
(1) Paste ::snippet; into the address bar and press ENTER. A text box will open to enter snippet.

(2) And here comes the copy+paste ready snippet. I will create a new button at the right end of your toolbar.

(3) CTB index: change the ctbindex = ?? in script > [KEY] for index of your used ctb (or auto create ctb from snippet)
[KEY]

ctbindex = 33
(4) To make this script work accross sessions, please check box in Xyplorer Congfiguration:

'Remember Permanent Variables' from Menu : Tools > Configuration > General > Refresh, Icons, History

(5) See other intruction in script file.



Changelog:
V 3.0
1. Fixed many bug
2. Make Simple Script
3. Faster Loding Button
4. 30 Set Button

ps## How can i edit my first post, I can't see any button or link to edit my first post for update my script

Re: All XYplorer Button Code

Posted: 12 Nov 2014 11:45
by edyyus
All XYyplorer V 14.50 Button+ctb
AllXYButton.xys

Only CTB Button ctb1 to ctb64
AllXYButtonctb.xys


Simple script for easy to see all Xyplorer button with name and copy code.
For ctb, name and icon only show when ctbname and ctbicon not blank(any used ctb)

Thank klownboy for respon, and serendipity, you script give me inspiration to edit and make be ReplaceMultiButton

Thanks again

Re: Replace Multi Button v3.3

Posted: 16 Nov 2014 15:39
by edyyus
Update : ReplaceMultiButtonL.xys V3.3 (Left) ( 16 November 2014 )
-Button opened Right from used ctb
- Versions 3.3 can replace all button in toolbar

Snippet for ReplaceMultiButtonL.xys

Code: Select all

Snip: CTB 1
  XYplorer 14.50.0204, 11.11.2014 08:51:37
Action
  NewUserButton
Name
  Replace Multi Button L
Icon
  
ScriptL
  Load "ReplaceMultiButtonL.xys";
ScriptR
  Load ("ReplaceMultiButtonL.xys",
      "_Zx00;_Zx01;_Zx02;_Zx03;_Zx04;_Zx05;_Zx06;_Zx07;_Zx08;_Zx09;_Zx10;
       _Zx11;_Zx12;_Zx13;_Zx14;_Zx15;_Zx16;_Zx17;_Zx18;_Zx19;_Zx20;_Zx21;
       _Zx22;_Zx23;_Zx24;_Zx25;_Zx26;_Zx27;_Zx28;_Zx29;-;_CloseZx8;_Zx80;
       _Zx81;_OnOff82;_OnOff83;_editZx84;_ConfZx;");
FireClick
  0

Update : ReplaceMultiButtonL.xys V3.3 (Right) ( 16 November 2014 )
- Button opened Left from used ctb
- Versions 3.3 can replace all button in toolbar

Snippet for ReplaceMultiButtonR.xys, Just change script name L to R

(1) Paste ::snippet; into the address bar and press ENTER. A text box will open to enter snippet.

(2) And here comes the copy+paste ready snippet. I will create a new button at the right end of your toolbar.

(3) CTB index: First, Must change the ctbindex = ?? in script > [KEY] for index of your used ctb (or auto create ctb from snippet)
[KEY]

ctbindex = 33

(4)After set ctbindex, for first run, not add icon in ctb, click 3 times for collect all showed button in toobar
to set at first menu (button 00 ) and make base to set other menu button (or you can do this manual in script)


(5) To make this script work accross sessions, please check box in Xyplorer Congfiguration:

'Remember Permanent Variables' from Menu : Tools > Configuration > General > Refresh, Icons, History

(6) See other intruction in script file.


Credit to:

"serendipity - ExpandDriveButton v2.4 & XYplorer_Collect v2.xys", "Enternal - SelectionStore.xys",
"totmad1 - My676.xys", "SammaySarkar - XYCollector.xys", "FluxTorpedoe - SessionManager.xys",

and other forumer scripts. "-" only edit, cut and paste to make ReplaceMultiButton.xys

I try to lern about scripts and I try to make this script user frienly

Feel free to use, edit and share this scripts.

Changelog:
V 3.3
1. Fixed other bug
2. Add other congfiguration menu, ie
- Rename menu
- Set button in menu
- Show/Hide other menu
- And Other............

Re: Replace Multi Button v3.3

Posted: 20 Nov 2014 09:04
by edyyus
For Replace Multi Button v3.3
Note:
If you get some autocollapse bug from loding button in right click (sometimes)

1) find this code in script, Cut

Code: Select all

"_CollcekZx"
	   if($collapse=="of") {  unset $p_ctbindex, $toolbar; end(1==1); }
	   elseif($collapse=="on") {  sub _RunCollZx; }
	   else {   sub _RunWaitCollZx;  }}


and Paste(replace) code below

Code: Select all

"_CollcekZx"
           Global $collapse;
	   $collapse=getkey("Autocollapse", "SETING", self("file"));
	   if($collapse=="of") {  unset $p_ctbindex, $toolbar; end(1==1); }
	   elseif($collapse=="on") {  sub _RunCollZx; }
	   else {   sub _RunWaitCollZx;  }



2) find this code in script, add Global $collapse;

Code: Select all

"_RunWaitCollZx"
        $p_CurScript = self("file");
        $keyBx  = getkey("DefaultX", "SETING", self("file")); 
        if ($keyBx=="30") { run "cmd /c ping -n $collapse 127.0.0.1 >nul & cd /d <xypath> & xyplorer.exe /script=""::load '$p_CurScript','_WaitCollZx30'"" /flg=2 /hwnd=<hwnd>", , 0,0; }
        else { run "cmd /c ping -n $collapse 127.0.0.1 >nul & cd /d <xypath> & xyplorer.exe /script=""::load '$p_CurScript','_WaitCollZx'"" /flg=2 /hwnd=<hwnd>", , 0,0; }


and Paste(replace) code below

Code: Select all

"_RunWaitCollZx"
        Global $collapse;
        $p_CurScript = self("file");
        $keyBx  = getkey("DefaultX", "SETING", self("file")); 
        if ($keyBx=="30") { run "cmd /c ping -n $collapse 127.0.0.1 >nul & cd /d <xypath> & xyplorer.exe /script=""::load '$p_CurScript','_WaitCollZx30'"" /flg=2 /hwnd=<hwnd>", , 0,0; }
        else { run "cmd /c ping -n $collapse 127.0.0.1 >nul & cd /d <xypath> & xyplorer.exe /script=""::load '$p_CurScript','_WaitCollZx'"" /flg=2 /hwnd=<hwnd>", , 0,0; }
sorry for my mistake