Com 使用AHK(而不是Outlook)搜索Exchange邮箱中每个消息的TXT

Com 使用AHK(而不是Outlook)搜索Exchange邮箱中每个消息的TXT,com,exchange-server,autohotkey,Com,Exchange Server,Autohotkey,我从AHK论坛上得到了这段o’代码片段,我希望我只是错过了一行成功的代码。我希望在INPUTBOX中的字符串中有一个用户类型。然后我想循环一个特定邮箱中的所有电子邮件,比如“Deliveries”,当它找到包含该字符串的txt时,在继续循环中的下一个消息之前采取某些操作 帮忙 因为我没有运行Outlook(假设它是电子邮件客户端),所以我创建了一些伪代码进行尝试。不确定这是否能正常运行。我添加了Alt+F12来启动它 !F12:: InputBox, MySearchString, Search

我从AHK论坛上得到了这段o’代码片段,我希望我只是错过了一行成功的代码。我希望在INPUTBOX中的字符串中有一个用户类型。然后我想循环一个特定邮箱中的所有电子邮件,比如“Deliveries”,当它找到包含该字符串的txt时,在继续循环中的下一个消息之前采取某些操作

帮忙


因为我没有运行Outlook(假设它是电子邮件客户端),所以我创建了一些伪代码进行尝试。不确定这是否能正常运行。我添加了Alt+F12来启动它

!F12::
InputBox, MySearchString, Search, Please enter a search string.
Loop, 10 ; Loop through the MailItems in the Deliveries Folder
{
    MailItems := Folders.item("Deliveries").Items
    Loop, % MailItems.Count
    {
        EmailText = MailItems.Body
        EmailSubject = MailItems.Subject
        IfInString, EmailText, %MySearchString%
        {
            MsgBox, The string: %MySearchString% was found in message: %EmailSubject% .
            return
        }
    }
}

唯一的问题是:我不知道循环是什么,10代表什么。我刚从另一篇文章中复制了那部分。但无论如何,我都迫不及待地想开始工作并尝试你的版本!谢谢哦,b.t.w.你试过了望吗。有些人喜欢这个插件。几年前我试过,不喜欢,但那是我的口味。谢谢。该网站向我推荐lookeen,它可能也有价值。请提供一些建议解决方案的反馈,如果答案有用,请单击白色复选标记将其变为绿色,以“接受”该答案。非常感谢。
!F12::
InputBox, MySearchString, Search, Please enter a search string.
Loop, 10 ; Loop through the MailItems in the Deliveries Folder
{
    MailItems := Folders.item("Deliveries").Items
    Loop, % MailItems.Count
    {
        EmailText = MailItems.Body
        EmailSubject = MailItems.Subject
        IfInString, EmailText, %MySearchString%
        {
            MsgBox, The string: %MySearchString% was found in message: %EmailSubject% .
            return
        }
    }
}