找回密码
 加入
搜索
查看: 1210|回复: 2

[GUI管理] [已解决]WIN10这种右下角弹出通知能实现吗

[复制链接]
发表于 2020-5-28 17:32:07 | 显示全部楼层 |阅读模式
本帖最后由 feelsky 于 2020-5-29 16:34 编辑

TrayTip在Win10中显示时长不准不受控制,希望脚本运行中一直实现这种提示效果,在WIN7下也能这样显示。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2020-5-29 08:54:48 | 显示全部楼层

TrayTip  这个我在WIN10中是可以显示出来的。但是WIN7中不会来。楼主知道WIN7中哪里可以开启的吗。。。至于楼主的这种效果。我也是很想学习。。有大神可以讲解一下的吗。
 楼主| 发表于 2020-5-29 16:31:10 | 显示全部楼层
用GUI随便整了个
#NoTrayIcon
#include <WindowsConstants.au3>

        $width = 350
        $hight = 80
        $hwnd = GUICreate("", $width, $hight, @DesktopWidth - $width -6, @DesktopHeight - 150, BitOR($WS_POPUP, $WS_DISABLED), $WS_EX_TOOLWINDOW)
        GUISetFont(11.5, 400, 0, "Microsoft YaHei")
        GUISetBkColor(0x000000)
    GUICtrlCreateicon(@ScriptDir & "\img.ico", -1, 20, 20, 40, 40)
        $Label1 = GUICtrlCreateLabel("正在备份注册表,请稍候…", 80,20, 250, 24)
        GUICtrlSetFont(-1, -1,800)
        GUICtrlSetColor(-1, 0xFFFFFF)
        $Label2 = GUICtrlCreateLabel("注册表备份工具",80, 45, 250, 24)
        GUICtrlSetFont(-1, 10)
        GUICtrlSetColor(-1, 0x9c9c9c)

        DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 200, "long", 0x00040002)
                sleep(5000)
        DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 300, "long", 0x00050001)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-5 03:40 , Processed in 0.074199 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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