找回密码
 加入
搜索
查看: 1711|回复: 1

[AU3基础] $TRAY_EVENT_MOUSEOUT是指鼠标从托盘上移开吗?

[复制链接]
发表于 2011-12-3 22:21:53 | 显示全部楼层 |阅读模式

#AutoIt3Wrapper_Run_Debug_Mode= y     
#include <Constants.au3>
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 1)

TrayCreateItem("退出")
TrayItemSetOnEvent(-1, "ExitEvent")

TraySetOnEvent($TRAY_EVENT_MOUSEOVER, "Showtip")
TraySetOnEvent($TRAY_EVENT_MOUSEOUT, "Hidetip")

TraySetState()
TraySetClick(8)

While 1
        Sleep(10)
WEnd

Func Showtip()
        TrayTip("显示Tip","消息提示", 2)
EndFunc

Func Hidetip()
        TrayTip("", "", 1)
EndFunc

Func ExitEvent()
        Exit
EndFunc   ;==>ExitEvent

写的这段代码鼠标从托盘移开没有效果啊~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 20:31 , Processed in 0.209382 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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