Link to home
Start Free TrialLog in
Avatar of majala
majala

asked on

Canceling PopupMenu

In my application user gets menu when presses right button of the mouse above one grid. Now it's not possible to press right button of the mouse in any other place in that form because code is stuck in that previous popupmenu. User has to press left mouse button somewhere or choose something from that popupmenu before it disappears.

So how can I cancel popupmenu so that user can make new right button click to some other place without that extra left button click?

Thanks in advance!
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Strange of how popup menu is implemented.
Did you try sending Escape key to your app?
sendkeys "{ESC}"
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of majala
majala

ASKER

Thanks, helps me a lot!:)
glad i could help, thanks for the grade ;)