﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
389	ProcessExists or ProcessWaitClose	anixon		"The following process fails to stop script execution when Outlook has previously been opened and closed by a user in Windows Vista.

#include <INet.au3>;Email Processor

$Address = ""anyone@anywhere.com""
$Subject = ""Application Number: ""
$Body = ""The detail is as follows: ""
$PID = (_INetMail($Address, $Subject, $Body))

ProcessWaitClose($Pid)
msgbox(0,"""",""I waited like the good script I am"")
Exit

The reason for this is that oulook.exe is still listed as a running process as reported by ""Task Manager - Processes"". 

If you 'End Process"" outlook.exe in Task Manager - Processes then when running the ""ProcessWaitClose' script it pauses execution whilst Outlook.exe has been launched by _INetMail.

To remedy this perhaps registry should be read HKCR\mailto\shell\open\command\""default value"" to determine the name of the default executable [outlook.exe or msmn.exe] Email client and close any running processes.

My guess is that the Windows mail client continues to run to manage desktop delivery processing"	Bug	closed		AutoIt	3.2.12.0	None	No Bug	Pause Script Execution	
