rexx Posted September 6, 2009 Share Posted September 6, 2009 I have a popup menu and I use _GUICtrlMenu_TrackPopupMenu() to show it, with $iButtons = 1 to enable right click on menu item. My question is, when an item is clicked, how to know it's right or left clicked? Link to comment Share on other sites More sharing options...
Hawkwing Posted September 6, 2009 Share Posted September 6, 2009 GUIGetCursorInfo might work. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
rexx Posted September 7, 2009 Author Share Posted September 7, 2009 GUIGetCursorInfo might work.Thanks, but it checks the mouse button info after the mouse click, so the rbutton is already up.But I found I can useGUISetOnEvent($GUI_EVENT_SECONDARYDOWN, "MenuSecondaryDown", $hGUI)And set a flag in MenuSecondaryDown()then I can know whether it's right clicked or not. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now