Jump to content

What is a good way of creating a right-click-menu?


Recommended Posts

Hello fellows,

I am working on a little project and wanted to implement a right click menu ala windows. Since I did not find anything premade in autoit (it does have a nice right click on tray icon menu option though) I decided to make my own.

Now my idea ís to having a while loop constantly listening to the users right mouse button. once it is clicked a little GUI is created at mouse coordinates with little buttons on it. Since this menu will only pop up if the right click is performed within the main GUI I do not have to block the windows context menu.

What do you think? Is this the best way of doing it? I doubt it. Do not see a better option right now though. Please give me a hint :)

Thank you,

Zephir

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...