我在一个带有custom tray icon的脚本中有一些热键。
Menu Tray, Icon, my_hotkeys.ico
其中一个显示带有“确定”按钮和问号图标的message box。
MsgBox, 32, My Hotkeys, Hey, here's some info...
但是,它在Windows任务栏中具有默认的绿色H AutoHotkey图像。我查看了所有菜单选项。并且GUI命令声称它使用菜单图标(如果已设置)。但我找不到任何特定于MsgBox的东西。有没有办法将MsgBox图标更改为我在系统托盘中使用的相同自定义图标?
答案 0 :(得分:4)
有几种可能的解决方案:
+OwnDialogs
的Gui。+ OwnDialogs示例:
Menu Tray, Icon, shell32.dll, 5 ; Folder icon
Gui +OwnDialogs
Gui Show ; Since it has zero dimensions, it should be invisible.
MsgBox Testing...
ExitApp