What I have done was this :
I used the hotkey #4 to create a menu.
While the menu appears,then I pressed the "Lwin" and Click the menu,Now I can get three different actions though one Menu.
Code: Select all
#SingleInstance,force
#4::
Menu, MySubmenu, Add, Item1
Menu, MySubmenu,show
return
Item1:
if getkeystate("Lwin")
MsgBox you press Lwin!But the window's Menu will be activated!
else if getkeystate("Rwin")
MsgBox you press Rwin!But the window's Menu will be activated!
return
What I want is how to mask the windows Menu while I click the ahk's Menu?
And At the same time ,The Lwin and Rwin's function is normal without interupt?
Thanks very much for the help!