﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3780	WinSetTitle reverts to default upon window focus on Notepad.exe >= Windows 19H1	AndyS19a@…	Jpm	"I have a function that opens Notepad and sets its window title.  However, the title reverts to whatever its default was when the Notepad window gets focus.  To reproduce, run the WinSetTitle.au3 in the Examples folder, then move the cursor before the timeout expires.
{{{
Example()

Func Example()
	; Run Notepad
	Run(""notepad.exe"")

	; Wait 10 seconds for the Notepad window to appear.
	Local $hWnd = WinWait(""[CLASS:Notepad]"", """", 10)

	; Set the title of the Notepad window using the handle returned by WinWait.
	WinSetTitle($hWnd, """", ""New Notepad Title - AutoIt"")

	; Wait for 2 seconds to display the Notepad window and the new title.
	Sleep(2000)

	; Close the Notepad window using the handle returned by WinWait.
	WinClose($hWnd)
EndFunc   ;==>Example
}}}"	Bug	closed	3.3.15.4	AutoIt	3.3.14.5	None	Completed	WinSetTitle	
