Vbscript Outlook 2016自动关闭Windows凭据提示
试图在提示出现时使用自动热键关闭该提示, 我正在根据标题关闭窗口,这意味着任何其他windows凭据请求也将自动关闭,是否有任何方法可以确定此弹出提示是由Outlook2016生成的,只有在该脚本可以关闭窗口时 操作系统:Windows 10 脚本:Vbscript Outlook 2016自动关闭Windows凭据提示,vbscript,outlook,autohotkey,Vbscript,Outlook,Autohotkey,试图在提示出现时使用自动热键关闭该提示, 我正在根据标题关闭窗口,这意味着任何其他windows凭据请求也将自动关闭,是否有任何方法可以确定此弹出提示是由Outlook2016生成的,只有在该脚本可以关闭窗口时 操作系统:Windows 10 脚本: #NoEnv #Persistent SetTimer, ClosePopup, 250 return ClosePopup: WinClose, Windows Security return 我也尝试了VBS,但有2个问题,我也不能确定这
#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
这应该起作用:
WinClose Windows Security ahk_exe outlook.exe