vbscript - 如何使vbscript弹出消息始终在最上面?

标签 vbscript

有人知道如何使 vbscript 弹出消息/框“生成”在所有内容之上而不是在后台......?

这是我的脚本::)

Set objShell = WScript.CreateObject("WScript.Shell")
Const wshYes = 6 
Const wshNo = 7 
Const wshYesNoDialog = 4 
Const wshQuestionMark = 32 
intReturn = objShell.Popup("Vil du annulere shutdown?", _
    20, "Shutdown om 5 minutter!", wshYesNoDialog + wshQuestionMark) 
If intReturn = wshYes Then 
    Wscript.Echo "Shutdown annuleret." 
    objShell.Run "C:\ProgramData\AutoShutdown\Annuler.bat" 
End If 

非常不擅长vbscript,我只是在我的批处理程序中使用这个小部分。任何帮助表示赞赏!

最佳答案

只需添加vbSystemModal

    120, "Shutdown om 5 minutter!", wshYesNoDialog + vbSystemModal + wshQuestionMark)

关于vbscript - 如何使vbscript弹出消息始终在最上面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30515121/

相关文章:

json - 如何使用 VBS 发布漂亮的 JSON

asp-classic - 或 vbscript 中的运算符

database - 如何使用 VBScript 和 UFT 连接到 oracle 数据库?

web-services - Request.ServerVariables ("REMOTE_ADDR")与 Request.ServerVariables ("HTTP_X_FORWARDED_FOR"的安全隐患)

windows - schtasks 命令在从 CMD 运行时有效,但在 VBScript 中无效

javascript - 用于获取用户输入并将其传递给批处理文件的 GUI

arrays - 如何在 ASP classic 中初始化类中的数组属性?

mysql - 经典 ASP 和 MySQL 的嵌套注释

http - 如何从 vbscript 获取电报机器人 getUpdates json 并阅读它

vbscript - CDO.消息 - "The transport failed to connect to the server."