【问题标题】:Auto Closing Windows Credential Prompt for Outlook2016Outlook 2016 的自动关闭 Windows 凭据提示
【发布时间】: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


    【解决方案1】:

    这应该可行:

    WinClose Windows Security ahk_exe outlook.exe
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-14
      • 2019-02-17
      相关资源
      最近更新 更多