Jump to content

Recommended Posts

Hello Team,

I created a script which helps me to identify Outlook alerts better, because I was missing some important emails.

But my script doens´t stop because even closing the "New Mail Alerts" Windows it seems that it is still active in the background.

I am using the commands below to close it:

WinKill("New Mail Alerts", "")
WinClose("New Mail Alerts", "")

image.png.2a9881c3cdcf29a78fa626f65016df48.png

 

#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>
#include <Array.au3>
#include <Sound.au3>

WinKill("New Mail Alerts", "")
WinClose("New Mail Alerts", "")
$a = WinExists("New Mail Alerts", "")

MsgBox($MB_SYSTEMMODAL, "Is New Mail Alerts Window still active:", $a)

How can I close/kill this Window? No matter what I try the result is always 1:

image.png.96f1241714ba275a3b57e81b79b71600.png

Link to post
Share on other sites

Try with TaskKill :

Local $iRet = RunWait('TaskKill /IM "' & $YourExe & '" /F')

or

Local $iRet = RunWait('TaskKill /FI "WINDOWTITLE eq ' & $YourTitle & '" /F')

 

Edited by Nine
Link to post
Share on other sites

remember that if this is the new version of Outlook, it's comprised of WPF forms. You know, it's basically just a browser app.

 

straight win32 AutoIt probably won't cut it. Better off to look at UIAutomation UDFs

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...