Jump to content

Recommended Posts

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


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.

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.


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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...