User Buttons to execute Menu Commands

Discuss and share scripts and script files...
Post Reply
kavusha
Posts: 26
Joined: 29 Jun 2014 08:21

User Buttons to execute Menu Commands

Post by kavusha »

Hi

Can somebody tell me how do i create User Buttons on the toolbar which would execute simple Menu Commands
for example, swap Locations or say switch to the Horizontal Panes View?

Thank you for any help.

Kavi.
XYplorer 28.10, Windows 11, Screen Scaling 125%

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: User Buttons to execute Menu Commands

Post by highend »

Ctrl + Shift + F9
Select a "User Button #1" on the left, click "Add ->"
Click "OK"

Right click on the new button on your toolbar, choose "Edit..."

Choose a name, evtl. an icon.
Enter this "On left click"

Code: Select all

#811;
or

Code: Select all

#801;
Swap Locations = #811
Horizontal Panes View = #801
One of my scripts helped you out? Please donate via Paypal

kavusha
Posts: 26
Joined: 29 Jun 2014 08:21

Re: User Buttons to execute Menu Commands

Post by kavusha »

Thank you very much for your quick reply!
Great!

Regards.

Kavi
XYplorer 28.10, Windows 11, Screen Scaling 125%

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

Re: User Buttons to execute Menu Commands

Post by admin »

This might help in the process:

Code: Select all

    + Menu Help: Added toggle "Command IDs on Menu". Tick it to show the command 
      IDs in the main menu (and, where they are featured, in context menus).
      FYI, all commands that can be assigned a keyboard shortcut have an 
      internal command ID which can be used in scripting to refer to the 
      command.

kavusha
Posts: 26
Joined: 29 Jun 2014 08:21

Re: User Buttons to execute Menu Commands

Post by kavusha »

Thanks a lot for your help!
...and wow...I am really impressed by the XYplorer's versatility and the level of customization.

Great job!

Regards

Kavi
XYplorer 28.10, Windows 11, Screen Scaling 125%

Post Reply