joefiesta wrote:And, yes! the Ease of Access setting mentioned fixed the problem for me.
Glad to hear it!
joefiesta wrote:Some of my AHK macros already DID create context menu's with Shortcut Keys Underlined, with that option DISABLED.]
Well, I suppose it's possible with use of the ampersand in
Gui,Add,Text or the option in
Gui,Font,Underline, for example:
Code: Select all
Gui,Add,Text,,Make&LetterUnderlined
Gui,Font,Underline
Gui,Add,Text,,F
Gui,Font,Norm
Gui,Add,Text,yp xp+6,irstLetterUnderlined
Gui,Show
Return
GuiClose:
GuiEscape:
ExitApp
That code results in this:
- ahk underlined text.png (3.49 KiB) Viewed 528 times
But I haven't thought through how you would turn them into menu items, or even if that's possible. As far as I know, the normal ampersand usage on a menu item is not underlined unless the Windows option that we've been discussing is enabled. Because of that, I think the AHK V1 Help text on this is incomplete. It says this:
To underline one of the letters in a menu item's name, precede that letter with an ampersand (&). When the menu is displayed, such an item can be selected by pressing the corresponding key on the keyboard.
I think it should say something like this:
To underline one of the letters in a menu item's name, precede that letter with an ampersand (&). However, the underline will appear only if that option is enabled in Windows Ease of Access Center, which is disabled by default. When the menu is displayed, whether or not the underline appears, such an item can be selected by pressing the corresponding key on the keyboard.
joefiesta wrote:Where was this "Run ms-settings:easeofaccess-keyboard" discovered?
I don't know where or when or who. I have a note in my test files going back many years to this post at a different forum ("Asked 6 years, 10 months ago"):
https://superuser.com/questions/1168551/turn-on-off-bluetooth-radio-adapter-from-cmd-powershell-in-windows-10
That was for the Bluetooth setting. I have many others in my notes, although I can't say which ones I've tested:
Code: Select all
ms-settings:bluetooth
ms-settings:network-wifi
ms-settings:apps-volume
ms-settings:privacy-microphone
ms-settings:sound
ms-settings:sound-devices
ms-settings:privacy-webcam
ms-settings:batterysaver
ms-settings:batterysaver-usagedetails
ms-settings:batterysaver-settings
Regards, Joe