2017-10-21 229 views
1

试图使用AutoHotkey关闭此提示,因为它出现, 我关闭基于标题的窗口,这意味着任何其他Windows凭据请求也会自动关闭,有没有我可以识别Outlook2016生成此弹出提示的方式,只有脚本可以关闭窗口?自动关闭Windows凭据提示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 

回答

1

这应该工作:

WinClose Windows Security ahk_exe outlook.exe