自动关闭 Windows Outlook 2016 的凭据提示
Auto Closing Windows Credential Prompt for Outlook2016
尝试使用 AutoHotkey 关闭此提示,
我正在关闭基于标题的 window,这意味着任何其他 windows 凭据请求也将自动关闭,有什么方法可以确定此弹出提示是由 Outlook2016 生成的,然后才该脚本可以关闭 window?
OS: Windows 10
脚本:
#NoEnv
#Persistent
SetTimer, ClosePopup, 250
return
ClosePopup:
WinClose, Windows Security
return
我也试过 VBS,但是有两个问题,我也不能确定这个提示来自 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
这应该有效:
WinClose Windows Security ahk_exe outlook.exe
尝试使用 AutoHotkey 关闭此提示, 我正在关闭基于标题的 window,这意味着任何其他 windows 凭据请求也将自动关闭,有什么方法可以确定此弹出提示是由 Outlook2016 生成的,然后才该脚本可以关闭 window?
OS: Windows 10
脚本:
#NoEnv
#Persistent
SetTimer, ClosePopup, 250
return
ClosePopup:
WinClose, Windows Security
return
我也试过 VBS,但是有两个问题,我也不能确定这个提示来自 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
这应该有效:
WinClose Windows Security ahk_exe outlook.exe