This work draws heavily on PaulIA's Auto3Lib - his library needs to be installed on your PC to use this UDF.
Apart from that, it turned out to be quite complicated to manage the popup menus in a generic way ...
Here's a small code snippet to demonstrate the UDF:
#include "ScB_TrayIcons.au3" Opt("WinTitleMatchMode", 4) opt("TrayIconHide", 1) $bResult = ClickTaskbarMenuItem("Windows Live Messenger", "status", "online") $bResult = ClickTaskbarMenuItem("Jabber Messenger", "status", 11, "secondary", 600, 3); Optional parms - last one provides a trace ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $bResult = ' & $bResult & @crlf & '>Error code: ' & @error & @crlf);### Debug Console
Would appreciate any and all feedback!
EDIT: so that people can find this example when searching: edit click systray menu
Edited by MisterBates, 11 June 2007 - 07:49 AM.