超时Msgbox弹出窗口

Gav*_*vin 2 vbscript autohotkey msgbox

我有一个小脚本运行(基本上触发一个msgbox告诉人们他们的帐户密码即将过期).

我希望它在说30分钟后关闭自己,但无法正确理解它,任何人都可以帮忙吗?

下面是调用msgbox的部分

if (daysLeft < warningDays) and (daysLeft > -1) then

Msgbox "Your Password Expires in " & daysLeft & " day(s)" & " at " & whenPasswordExpires & chr(13) & chr(13) & "Please ensure that you change your password before" & chr(13) & "its expiry time to prevent any disruption of service.", 4144, "PASSWORD EXPIRATION WARNING!"

End if
Run Code Online (Sandbox Code Playgroud)

-

加文.

Bon*_*ond 9

对象的Popup()方法WShell可以在指定的秒数后超时.这是一个应该在30分钟后消失的例子.

CreateObject("WScript.Shell").Popup "Hello!", 1800, "Title"
Run Code Online (Sandbox Code Playgroud)