#NoTrayIcon
#include <GuiToolbar.au3>
#include <_SysTray.au3>
$aProcess = _SysTrayIconProcesses(1)
$Titles = _SysTrayIconTitles()
$Index = 100
For $i = 0 To UBound($aProcess) - 1
If $aProcess[$i] = 'процесс.exe' Then $Index = $i ; процесс
Next
If $Index <> 100 then
$hWnd = ControlGetHandle('[Class:Shell_TrayWnd]', '', '[Class:ToolbarWindow32;Instance:1]')
$iCommandID = _GUICtrlToolbar_IndexToCommand($hWnd, number($Index))
$aRect = _GUICtrlToolbar_GetButtonRect ($hWnd, $iCommandID)
ControlClick($hWnd, '', '','right',1,$aRect[0],$aRect[1]); клик правой кнопкой
EndIf