Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu shortcuts leaking into application
#1
I have created a few macros that work very nicely from a toolbar.
I'd like them to work from a popup menu as well
I was planning to trigger the menu with Ctrl-M
I've checked "Eat" in the trigger dialog.
The menu triggers with Ctrl-M but the m gets to the app anyway.
For instance one of the menu items is "Cl&ose Encounter". When type Ctrl-m o the macro runs but the o is stil pasted into the app.
Furthermore, the shortcut key for the menu gets to the app as well.
I've been able to get around the "m" problem by using the shortcut on the desktop trick.
The shortcut key from the menu is still getting to the app.

What am I missing?

Code:
Copy      Help
;/noicons
Fix &CC :mac "CC"
Fix &HPI :mac "HPI"
Fix &Progress Note :mac "Progress Note"
&LOS Menu :mac "Level Of Service"
Cl&ose Encounter :mac "Close Encounter"
#2
Here works well. m and o are not typed. Do they leak in all apps?
#3
No. It doesn't appear to leak in all apps. Wierd.

I'm calling another menu from a toolbar for this app. It doesn't leak in this app or others.
#4
Actually, I was wrong.
My other menu also leaks keys into the app I'm working with, I just hadn't noticed it because they get written over as a result of the macros other actions.

Any chance that this has to do with which window is the parent of the popup menu?
Could I solve this with the "PopUpMenu" function using the last parameter?

Thanks
#5
Okay. I got this problem to go away by activating another window before showing the menu.
#6
Probably that app uses some nonstandard way to retrieve keyboard messages. For example, hooks.


Forum Jump:


Users browsing this thread: 1 Guest(s)