Commands without # shortcut

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mackem
Posts: 12
Joined: 20 Aug 2021 18:24

Commands without # shortcut

Post by mackem »

I want to create a shortcut button for a command that doesn't have a # code assigned to it. For example, I have a shortcut button for #630 (tools-list management-mini tree) that brings up a menu that has the option 'Clear list'. Is there a way to create a shortcut that operates 'Clear list' directly? I know that it's only substituting 1 click for 2, but it's my knowledge and understanding that I want to further as much as the shortcut.

Apologies in advance if it's really too obvious or simple (or not possible) - I've looked through the help files and this forum but can't see anything
Many thanks

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

Re: Commands without # shortcut

Post by klownboy »

I don't believe there is anything like that, but you could instead feed keys into that dialog box using the undocumented scripting command "sendkeys". https://www.xyplorer.com/xyfc/viewtopic ... 94#p119994

sendkeys "{tab 2}{down 2}{Enter 2}"; #630 ;
sendkeys "%c{Tab}~"; #630 ; Using the "alt" key as in Alt "C" %c to clear the list works, but the use of alt seems to affect using "Enter" afterwards to exit and save the changes.

You could use the same technique to clear other List Management items, like "History..." #618. sendkeys "{tab 2}{down 2}{Enter 2}"; #618 ;

mackem
Posts: 12
Joined: 20 Aug 2021 18:24

Re: Commands without # shortcut

Post by mackem »

Thanks so much for such a quick response - looking forward to experimenting ;)

Post Reply