I am using "&" as per 'Menu' instructions, the & suppose to underline a character and turn it into a shortcut.
Code: Select all
::ad#:: Menu, MyMenu, Add, &additional, MenuAction Menu, MyMenu, Add, a&ddress, MenuAction Menu, MyMenu, Show return MenuAction: SendInput %A_ThisMenuItem% Menu, MyMenu, DeleteAll Return
This is the output:
ad# -> press 'a' -> &additional
ad# -> press 'd' -> a&ddress
I also tried to use RegExReplace(%A_ThisMenuItem%, "\W") to take out the ampersand but RegExReplace throws an error complaining about %A_ThisMenuItem% containing an illegal character.
Any idea how I can get around this?