【发布时间】:2017-11-08 01:56:22
【问题描述】:
尝试使用 AutoHotkey 关闭此提示,因为它出现, 我正在根据标题关闭窗口,这意味着任何其他窗口凭据请求也将自动关闭,有什么方法可以识别此弹出提示是由 Outlook2016 生成的,然后脚本才能关闭窗口?
操作系统:Windows 10
脚本:
#NoEnv
#Persistent
SetTimer, ClosePopup, 250
return
ClosePopup:
WinClose, Windows Security
return
我也试过VBS,但有2个问题,我也不能确定这个提示来自outlook,第二个是脚本不会循环
Set wshShell = CreateObject("WScript.Shell")
Do
ret = wshShell.AppActivate("Windows Security")
If ret = True Then
wshShell.SendKeys "%{F4}" 'ALT F4
Exit Do
End If
WScript.Sleep 500
Loop
【问题讨论】:
标签: vbscript outlook autohotkey