Opened 2 years ago

Last modified 2 years ago

#3900 closed Bug

REGEXPTITLE fails to match — at Version 2

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

Description (last modified by Jpm)

; 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 (1)

comment:2 Changed 2 years ago by Jpm

  • Description modified (diff)
Note: See TracTickets for help on using tickets.