<https://www.autoitscript.com/forum/topic/193572-traymenu-dllcall/>
<http://schema.org/text>
"&#13;\n#include &lt;Constants.au3&gt;&#13;\n&#13;\n\tOpt(\"TrayMenuMode\", 3) &#13;\n    Opt(\"TrayOnEventMode\", 1) &#13;\n\tOpt(\"WinTitleMatchMode\", 4)&#13;\n&#13;\nGlobal Const $WM_USER           = 0x0400&#13;\nGlobal Const $MY_WM_NOTIFYICON  = $WM_USER + 1&#13;\nGlobal Const $WM_LBUTTONDOWN    = 0x0201&#13;\n&#13;\n$aboutItem  = TrayCreateItem(\"About\")&#13;\nTrayCreateItem(\"\")&#13;\n$exitItem   = TrayCreateItem(\"Exit\")&#13;\n&#13;\nHotKeySet(\"t\", \"ShowTrayMenu\") ; Ctrl + Alt + t&#13;\n&#13;\nWhile 1&#13;\n    $Msg = TrayGetMsg()&#13;\n    Switch $Msg&#13;\n        Case $exitItem&#13;\n            Exit&#13;\n        Case $aboutItem&#13;\n            Msgbox(0, \"Info\", \"Just for fun...\")&#13;\n    EndSwitch&#13;\nWEnd&#13;\n&#13;\nFunc ShowTrayMenu()&#13;\n    DllCall(\"user32.dll\", \"int\", \"SendMessage\", \"hwnd\", WinGetHandle(\"classname=AutoIt v3\"), \"int\", $MY_WM_NOTIFYICON, \"int\", 0, \"int\", $WM_LBUTTONDOWN)&#13;\nEndFunc\n\n\n\t \n \n\n\n\tI have this code that will show the traymenu near the mouse when you click \"t\". (compile it and run it and click t).\n \n\n\n\tNow the thing is, if i have another compiled autoit script running, it will no longer show the traymenu, instead it will show:\n \n\n\n\t \n \n\n\n\t \n\n\n\t \n \n\n\n\tI thought I would solve the issue if I changed the classname \"AutoIt v3 GUI\", but that didn't solve it:\n \n\n\n\thttps://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_RegisterClassEx.htm\n "
<https://www.autoitscript.com/forum/topic/193572-traymenu-dllcall/?tab=comments#comment-1388832>