Sign in to follow this  
Followers 0
Zephir

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

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Step 1: Download the latest stable version of AutoIt (3.2.10.0 at the time of this posting)

Step 2: Search the helpfile for GuiCtrlCreateContextMenu

Step 3: Profit

Edited by exodius

Share this post


Link to post
Share on other sites

sweet :)

they always implement the things when i need them ;)

thank you exodius

Share this post


Link to post
Share on other sites

No prob, it snuck in there on me too, I just stumbled on it one day.

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