Modify

Opened 4 years ago

Closed 4 years ago

#3900 closed Bug (Fixed)

REGEXPTITLE fails to match

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

Description (last modified by J-Paul Mesnage)

; 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

Attachments (0)

Change History (4)

comment:2 by J-Paul Mesnage, 4 years ago

Description: modified (diff)

comment:3 by J-Paul Mesnage, 4 years ago

I don't have access to an english version of Windows
but with a french one

$hwnd = WinGetHandle( "[REGEXPTITLE:(?i)propriétés de : autoIt3\.exe]" )

works perfect
you can use Au3info an pickup the exact title perhaps the space is not a basic space but a non breaking space

comment:4 by anonymous, 4 years ago

Actually, problem is present in 3.3.16.0 version, but it is already fixed in
beta version 3.3.16.1-rc2 as it is pointed out to me by pixelsearch in the forum.
Thanx everyone.

comment:5 by J-Paul Mesnage, 4 years ago

Resolution: Fixed
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.