hendrikhe Posted March 16, 2021 Share Posted March 16, 2021 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", "") #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: Link to comment Share on other sites More sharing options...
Nine Posted March 17, 2021 Share Posted March 17, 2021 (edited) Try with TaskKill : Local $iRet = RunWait('TaskKill /IM "' & $YourExe & '" /F') or Local $iRet = RunWait('TaskKill /FI "WINDOWTITLE eq ' & $YourTitle & '" /F') Edited March 17, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Earthshine Posted March 17, 2021 Share Posted March 17, 2021 (edited) 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 March 17, 2021 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now