找回密码
 加入
搜索
查看: 1666|回复: 0

[AU3基础] [已解决]求@TrayIconFlashing用法?

[复制链接]
发表于 2013-11-15 16:14:38 | 显示全部楼层 |阅读模式
本帖最后由 oceanwind 于 2014-1-15 12:34 编辑

想侦测到某托盘图闪动时作个响应,搜坛子上讲@TrayIconFlashing,不知道怎样用?
求个例子
谢谢先
用P版的代码搞定

#NoTrayIcon
#include <RTApiHook32.au3>

$iPid = ProcessExists("googletalk.exe")
$hProcess = _RTOpenProcess($iPid)

$pShell_NotifyIcon  = _RTGetProcAddress("Shell32.dll", "Shell_NotifyIcon")
$pShell_NotifyIconA = _RTGetProcAddress("Shell32.dll", "Shell_NotifyIconA")
$pShell_NotifyIconW = _RTGetProcAddress("Shell32.dll", "Shell_NotifyIconW")

While 1
        _Shell_NotifyIcon_CallBack($hProcess, $pCallInfo)
EndIf
Func _Shell_NotifyIcon_CallBack($hProcess, $pCallInfo)

        If (_RTApiHookReadParam($hProcess, $pCallInfo, 1, "dword") = 1) Then

                        MsgBox(0,"","ss")

        EndIf

EndFunc ;==>_Shell_NotifyIcon_CallBack
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-28 17:33 , Processed in 0.104813 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表