Replace Multi Button

Discuss and share scripts and script files...
Post Reply
edyyus
Posts: 48
Joined: 16 May 2014 11:14

Replace Multi Button

Post 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
To see the attached files, you need to log into the forum.
Last edited by edyyus on 09 Apr 2016 17:05, edited 6 times in total.

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: Replace Multi Button

Post 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

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

Re: Replace Multi Button

Post 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!

edyyus
Posts: 48
Joined: 16 May 2014 11:14

Re: Update Replace Multi Button V3.0

Post 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
To see the attached files, you need to log into the forum.

edyyus
Posts: 48
Joined: 16 May 2014 11:14

Re: All XYplorer Button Code

Post 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
To see the attached files, you need to log into the forum.

edyyus
Posts: 48
Joined: 16 May 2014 11:14

Re: Replace Multi Button v3.3

Post 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............
To see the attached files, you need to log into the forum.

edyyus
Posts: 48
Joined: 16 May 2014 11:14

Re: Replace Multi Button v3.3

Post 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
Last edited by edyyus on 15 Jul 2015 16:58, edited 2 times in total.

Post Reply