﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3900	REGEXPTITLE fails to match	meanarbez@…		"
; Open the standard file properties for AutoIt3.exe upfront,
; it's window title is ""AutoIt3.exe Properties""

{{{
#include <MsgBoxConstants.au3>
Local $hwnd

; use of REGEXPTITLE in any function receiving ""title"" parameter
; has following problem:

; these WORK (tested in 3.3.16):
; $hwnd = WinGetHandle( ""[TITLE:AutoIt3.exe Properties]"" )
; $hwnd = WinGetHandle( ""[REGEXPTITLE:utoIt3\.exe Properties]"" )
; $hwnd = WinGetHandle( ""[REGEXPTITLE:(?i)utoit3\.exe properties]"" )
; $hwnd = WinGetHandle( ""[REGEXPTITLE:^.utoIt3\.exe Properties$]"" )

; these DOES NOT WORK but it should (tested in 3.3.16):
; $hwnd = WinGetHandle( ""[REGEXPTITLE:AutoIt3\.exe Properties]"" )
$hwnd = WinGetHandle( ""[REGEXPTITLE:(?i)autoit3\.exe properties]"" )

MsgBox( $MB_SYSTEMMODAL, """", ""$result: "" & $hwnd )

; so, it seems that REGEXPTITLE processing is 1 character off
; from the beginning of title string or first character of title
; string buffer gets corrupted somehow
}}}
"	Bug	closed		AutoIt	3.3.16.0	None	Fixed		
