Jump to content

Close context menu


dantay9
 Share

Recommended Posts

I am still creating my own menu items and I am on the final stretch.

In a normal menu bar, you click on a menu and a list of menu items comes up.

Then, if you move your mouse over a different menu, that menu automatically shows up.

I am trying to replicate this, but I can't seem to manually hide the context menu and show the next one. I have tried sending the escape key and also using the EndMenu dllcall. Both of these methods hide the context menu, but then I can't show the next context menu until I click with the mouse.

I have two messages registered to see if and what menu is open.

Am I missing a dllcall or is there a workaround I am unaware of?

The GUICtrlSetOnHover_UDF.au3 file can be found here.

FileMenu.au3

Edited by dantay9
Link to comment
Share on other sites

I also tried _SendMessage($GUI, $WM_CANCELMODE). This hides the menu my other tries, but I still can't show the next menu until I click with the mouse. Then I tried mouseclick to simulate the clicking of the mouse to exit the menu with the same result.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...