Amtsknecht Posted April 8, 2011 Share Posted April 8, 2011 Hello All, I need a solution for the following problem: Open a context menu by right click on a trayitem (tray in tray). The base problem is to seperate the mouseclick events. Any ideas ? Regards Additional info: The tray creation based on a privat udf like modernmenuraw.au3 Link to comment Share on other sites More sharing options...
Zedna Posted April 8, 2011 Share Posted April 8, 2011 (edited) Example from helpfile for TraySetClick(): #Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown. $settingsitem = TrayCreateMenu("Settings") $displayitem = TrayCreateItem("Display", $settingsitem) $printeritem = TrayCreateItem("Printer", $settingsitem) TrayCreateItem("") $aboutitem = TrayCreateItem("About") TrayCreateItem("") $exititem = TrayCreateItem("Exit") TraySetState() TraySetClick(16) While 1 $msg = TrayGetMsg() Select Case $msg = 0 ContinueLoop Case $msg = $aboutitem Msgbox(64,"about:","AutoIt3-Tray-sample") Case $msg = $exititem ExitLoop EndSelect WEnd Exit Edited April 8, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Amtsknecht Posted April 8, 2011 Author Share Posted April 8, 2011 (edited) Example from helpfile for TraySetClick():....First - thanks for the quikly reply.But this is not what I mean. I explain it on your example:1. Run the script2. Click on the tray with the right mouse button to open the tray3. Select the trayitem "About"4. Then I would like to click the right button again to open a new tray as a context menu (not as submenu) !!That's my problem.Regards Edited April 8, 2011 by Amtsknecht 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