项目地址: https://github.com/Mluocheng/desktop-notice
支持参数:
--title 通知标题
--html html
--text 通知内容,对应type显示, 支持json字符串,支持style等标签支持的其他扩展属性, type 扩展 row 属性代表换行。 检测到已json时优先显示,type字段无效!!!
--type 通知类型,支持text,link,img
--icon 通知图标,支持default
--textAlign 通知内容对齐方式,支持textAlign 属性 start,center,end ...
--width 宽 默认336
--height 高 默认200
--autoCloseWindowTimer 自动关闭窗口的时间默认5000, 设置为-1 不自动关闭
--showClose 是否显示关闭按钮 默认 1 显示 0 不显示
使用:
desktop-notice.exe --title="标题" --text="放假" --type="text" --icon="default" --textAlign="center"
desktop-notice.exe --title="标题" --text="放假" --type="text" --width=536 --height=400 --autoCloseWindowTimer=-1
desktop-notice.exe --title="标题" --html="E:\ZHIXIN\automation_auto\DesktopNotice\test\index.html" --autoCloseWindowTimer=-1