Hello,
I'm looking for a very quick and efficient way to turn on/off the following setting:
Tools->Config->Shell Integration->"XYplorer is the default file manager"
Is there a way to create a keyboard shortcut to toggle this on/off?
Quick toggle of certain setting
Re: Quick toggle of certain setting
Code: Select all
sendkeys "{PGDN}{UP}{TAB 3} {ENTER}";
#600;
One of my scripts helped you out? Please donate via Paypal
Re: Quick toggle of certain setting
This confused me a lot!
I know about sendkeys and that
#600 is the command ID to open the Configuration dialog. What I did not understand is why you send the keys first and then open the dialog. I tried it and it works, but I did not understand how.Eventually I found Microsoft: Application.SendKeys which says (emphasis mine)
I still do not understand how Windows works under the hood, but this quote does explain your ordering of the code.This method places keystrokes in a key buffer. In some cases, you must call this method before you call the method that will use the keystrokes. For example, to send a password to a dialog box, you must call the SendKeys method before you display the dialog box.
Re: Quick toggle of certain setting
For completeness, this depends on the "XYplorer in shell context menu" option being checked first, as otherwise the "XYplorer is default file manager" option is greyed out.
XYplorer Beta Club