WScript.Shell.Popup的“始终保持在最前面”

时间:2018-08-23 19:02:27

标签: vbscript popup

我有一个Windows Shell弹出窗口,我需要始终保持在其他程序的顶部。但是,我还需要在其上使用OKCancel按钮。如果我使用如下所示的4096方法,则无法使用我的Cancel按钮。

intResult = WshShell.Popup(strMessage, intTimeout, strTitle, 4096)

如果使用以下内容,则可以使用OKCancel按钮,但是我无法将弹出式窗口“始终放在顶部”。

intResult = WshShell.Popup(strMessage, intTimeout, strTitle, 1)

有人知道我如何拥有OkCancel按钮,并始终将弹出窗口置于其他程序之上吗?

1 个答案:

答案 0 :(得分:0)

这可以完成工作:

intResult = WshShell.Popup(strMessage, intTimeout, strTitle, 1 + 4096)
相关问题