Opened 2 years ago

Last modified 2 years ago

#3900 closed Bug

REGEXPTITLE fails to match — at Initial Version

Reported by: meanarbez@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.16.0 Severity: None
Keywords: Cc:

Description

; 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

Change History (0)

Note: See TracTickets for help on using tickets.