PostMessage value - show tray menu?
If I am understanding your question correctly, try to look at thecommand that is in AutoHotkey.
Menu, MenuName, Cmd [, P3, P4, P5]
Definitely not understanding my question.
To pause a separate script, you can send it a postmessage:
PostMessage, 0x111, 65305,,, Script's File Name.ahk
How about telling it to show its tray menu?
might search for and download Winspector Spy's
So far, I have this, but it's not working:
No luck with winspector spy yet.
#NoEnv SetTitleMatchMode 2 Name = ztest.ahk p:: ; WM_EnterMenuLoop SendMessage, 0x0211, 0x00000001,0x00000000,,%Name% ; WM_INITMENU SendMessage, 0x0116, 0x00f2050f,0x00000000,,%Name% ; WM_INITMENUPOPUP SendMessage, 0x0117, 0x00f2050f,0x00000000,,%Name% ; 0x00000093 SendMessage, 0x00000093, 0x00000000, 0x0088fab8,,%Name% returnAnother problem is getting the wparam, as it changes per script and (I think) per run.
Menu, Tray, Add, So you know it's real, DoNothing DetectHiddenWindows, on WinExist( "AHK_Pid " DllCall("GetCurrentProcessId") ) ; make this script's main window the last found window WinActivate ; even though it's hidden, the target script's main window must be active for the menu to open SendMessage, 0x404, 0, 0x205 ; AHK_NOTIFYICON = 0x404, WM_RBUTTONUP = 0x205 exitapp DoNothing:And before you ask, the menu will only appear at the cursor position.
P.S. _L or basic source code? Which .cpp file? Or was it in one of the headers?
Menu, Tray, Add, So you know it's real, DoNothing DetectHiddenWindows, on SendMessage, 0x404, 0, 0x205,,%A_ScriptFullPath% ; AHK_NOTIFYICON = 0x404, WM_RBUTTONUP = 0x205 ;The title of the hidden window starts with the script's full path DoNothing:This seems to work without the DllCall or the WinActivate