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!
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!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, helps me a lot!:)
glad i could help, thanks for the grade ;)
Did you try sending Escape key to your app?
sendkeys "{ESC}"