This works great. Here's the code snippet I used:
I use the USER32 decl file posted here so the syntax was adjusted to match (USER32 -> api).
The really nice part about this is that the menu still reveals the shortcut keys (underlines the single character in the menu entry) while the Alt key is depressed and correctly handles a shortcut (Such as Alt-F for file).
Now, can anyone explain what these two USER32 calls are actually doing (and what each parameter means)?
; Prevent ALT key from bringing up the menu when released If KeyHit(SC_RIGHT_ALT) Or KeyHit(SC_LEFT_ALT) Then api_keybd_event(255,0,0,0) api_keybd_event(255,0,KEYEVENTF_KEYUP,0) End If
I use the USER32 decl file posted here so the syntax was adjusted to match (USER32 -> api).
The really nice part about this is that the menu still reveals the shortcut keys (underlines the single character in the menu entry) while the Alt key is depressed and correctly handles a shortcut (Such as Alt-F for file).
Now, can anyone explain what these two USER32 calls are actually doing (and what each parameter means)?