User Button Programming

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
AgentSmith007
Posts: 40
Joined: 06 Oct 2024 18:11
Location: Land of the free, home of the brave

User Button Programming

Post by AgentSmith007 »

User Button Programming

I added User Button to the tool bar. I searched forum, looked at the program help, but still don't know if script has to be used, or something else.

My goal is for that button to perform this action (as I would click menu):

File --> Settings Special --> Backup Application Data Folder...

Any help appreciated.
Rule #39: "There is no such thing as coincidences."

RalphM
Posts: 2042
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: User Button Programming

Post by RalphM »

If you switch on "Help / Command ID's On Menu" the menu ID numbers are displayed in every menu.
If you then show the file menu you'll see that the function you're after has the ID #196, so your script for that button would just be #196.

Edit: Corrected reference from Keyboard Shortcuts to Menu ID's
Last edited by RalphM on 13 Oct 2024 02:40, edited 1 time in total.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

AgentSmith007
Posts: 40
Joined: 06 Oct 2024 18:11
Location: Land of the free, home of the brave

Re: User Button Programming

Post by AgentSmith007 »

RalphM wrote: 13 Oct 2024 02:21 If you switch on "Help / Keyboard Shortcuts On Menu" the shortcut menu item numbers are displayed in every menu.
If you then show the file menu you'll see that the function you're after has the ID #196, so your script for that button would just be #196.
Thank you, Thank you!!

Learned something new today. It works.

The only thing that confused me was that I already had "Keyboard Shortcuts On Menu" switched on. But then I saw "Command IDs on Menu" right below it that was not checked. After I checked that I could see all codes.

This XYplorer is just freaking awesome!
Rule #39: "There is no such thing as coincidences."

Post Reply