bladem2003 Posted April 27, 2020 Share Posted April 27, 2020 hello if i right click in the gui, the context menu pops up. how can i check if a context menu is visible? GUICreate("My GUI Context Menu", 300, 200) Local $idContextmenu = GUICtrlCreateContextMenu() Local $idNewsubmenu = GUICtrlCreateMenu("new", $idContextmenu) Local $idNewsubmenuText = GUICtrlCreateMenuItem("text", $idNewsubmenu) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idNewsubmenuText MsgBox(0, "SubMenu Selected", 'Text') EndSwitch WEnd Link to comment Share on other sites More sharing options...
TheXman Posted April 27, 2020 Share Posted April 27, 2020 (edited) 1 hour ago, bladem2003 said: how can i check if a context menu is visible? Maybe the Help file can shed some light... (Hint: Look for the bold letters) https://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetState.htm Edited April 27, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
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