Jump to content
Sign in to follow this  

Create new context menu

Recommended Posts

Hi there,

Is it possible to create a context menu, not in a GUI but just somewhere on the screen...

With context menu I mean a menu that looks like the TrayMenu and Right Click menu's

Any idea??

Thanks in advance, Rawox


Nevermind, I found a solution :idea:

I created an invisible GUI using @SW_HIDE, added a button and added a ContextMenu using


GUICreate ( "Test", 200, 200 )
$but = GUICtrlCreateButton ( "test", 10, 10 )
$menu = GUICtrlCreateContextMenu ( $but )
$item = GUICtrlCreateMenuItem ( "lol", $menu )
GUISetState ( @SW_HIDE )

And then used ControlClick to open the ContextMenu with a Hotkey.

Func _showMenu()
    ControlClick ( "Test", "", $but, "menu" )

Other ideas are still welcome!

Edited by Rawox

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...