Amtsknecht 0 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 Share this post Link to post Share on other sites
Zedna 279 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 Share this post Link to post Share on other sites
Amtsknecht 0 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 Share this post Link to post Share on other sites