Rawox Posted May 19, 2010 Posted May 19, 2010 (edited) 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 //EDIT: Nevermind, I found a solution I created an invisible GUI using @SW_HIDE, added a button and added a ContextMenu using GUICtrlCreateContextMenu() 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" ) EndFunc Other ideas are still welcome! Edited May 19, 2010 by Rawox
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now