【发布时间】:2020-04-02 22:44:47
【问题描述】:
我有一个 Autohotkey 脚本,它显示一个 msgbox 并且始终位于顶部(拥有这个非常重要)。我希望仅在以下两种情况下关闭 msgbox:
- 我自己手动关闭它。
- 当特定窗口关闭时,关闭消息框。
这是我目前拥有的代码的主要部分:
msgbox,262144,TimesheetBlah,% list "`n" "`n" list2
clipboard := listCopy
WinActivate,Manage: Time Entry
WinShow, Manage: Time Entry
WinWait, Manage: Time Entry
WinWaitClose ; Wait for the exact window found by WinWait to be closed.
ControlClick, Button1, TimesheetBlah // This should close the msgbox, but it doesn't
if WinExist("*TimesheetBlah*"){
WinClose ; use the window found above // This doesn't close the msgbox either
我怎样才能做到这一点?
【问题讨论】:
标签: autohotkey