Sign in to follow this  
Followers 0
buzz44

GUICtrlCreateContextMenu()

5 posts in this topic

#1 ·  Posted (edited)

Is there a way I can change the context menu function so that it appears for a left click and not a right click?

Or is there a way I can make a menu appear anywhere on the screen with GUICtrlCreateMenu

I'm trying to get something like what WMP 10 has.

Posted Image

When you left click the control in the red rectangle the menu appears.

Edit: I sort of made a simple work around. If $msg = "control" then MouseClick("Right") easy. But the menu appears relative to the mouse co-ordinates and is almost certain to me in a different place each time. But as with the WMP 10 example above. The menu appears in the same place each time.

Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites



Seems to work but, the menu acts the same as a message box. As in it pauses the script until you have clicked else where and the menu has disappeared. Is this normal?


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

I'm tried to make context menu appear anywhere but with not luck. You can try to play with this.

Seems to work but, the menu acts the same as a message box. As in it pauses the script until you have clicked else where and the menu has disappeared. Is this normal?

Seems it's normal, at least in this Autoit implementation.

Share this post


Link to post
Share on other sites

I was poking around MSDN and found out that pressing Shift + F10 displays the shortcut menu. Try it on your desktop and each time you do it it always appears in the top left corner. Did any one else know this? or can it help in some way.


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
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
Sign in to follow this  
Followers 0