Modify

Opened 3 years ago

Closed 3 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 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 (4)

comment:2 Changed 3 years ago by Jpm

  • Description modified (diff)

comment:3 Changed 3 years ago by Jpm

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 Changed 3 years ago by anonymous

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 Changed 3 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.