关于托盘图标菜单udf_ModernMenuRaw[已解决]
本帖最后由 lin6051 于 2017-7-24 17:30 编辑用论坛的 udf ModernMenuRaw 创建的带图标的托盘菜单
重启一下 explorer.exe进程 托盘它就退出了
各位大侠能修复下么?
难道要 双进程 守护下?
win7 64
---------结果
下了个新版也这样,托盘不见了 进程还在
把显示菜单那项_TrayIconSetState() 放入 while 1里面了,初略看了下资源占用情况,正常 本帖最后由 yamakawa 于 2017-7-24 18:15 编辑
;example script shows how WM_TASKBARCREATED message is received
;Author: rover
;if explorer closed or crashed, WM_TASKBARCREATED message received by window after Explorer is re-created
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <guiconstantsex.au3>
#include <windowsconstants.au3>
Opt('MustDeclareVars', 1)
Global $WM_TASKBARCREATED
Global $aRet = DllCall("User32.dll", "int", "RegisterWindowMessageW", "wstr", "TaskbarCreated")
If @error Or UBound($aRet) <> 2 Then Exit
$WM_TASKBARCREATED = $aRet
ConsoleWrite('+$WM_TASKBARCREATED = ' & Hex($WM_TASKBARCREATED) & @CRLF)
_Main()
Func _Main()
GUICreate("WM_TASKBARCREATED", 400, 200)
GUIRegisterMsg($WM_TASKBARCREATED, "WM_TASKBARCREATED")
GUISetState()
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc;==>_Main
Func WM_TASKBARCREATED($hWnd, $iMsg, $iwParam, $ilParam)
#forceref $hWnd, $iMsg, $iwParam, $ilParam
ConsoleWrite('!WM_TASKBARCREATED = ' & $iMsg & @CRLF)
Beep(1000, 5)
Return $GUI_RUNDEFMSG
EndFunc;==>WM_TASKBARCREATED来自官网未测试 厉害了,哥。。。。 相当好。。。。。。。。。。。。。
页:
[1]