Modify

Opened 18 years ago

Closed 18 years ago

#108 closed Bug (Fixed)

IE.AU3 _IEAttach windowtitle using not existing registry entry

Reported by: junkew@… Owned by: Gary
Milestone: 3.2.11.11 Component: Standard UDFs
Version: 3.2.10.0 Severity: Blocking
Keywords: Cc:

Description

within _IEAttach when searching on windowtitle a registry entry is read which by default does not exist and as such $s_tmp is empty

$s_tmp = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\", "Window Title")

Whereas actually after - in windows title is Windows Internet Explorer

$s_tmp = $o_window.name is a better match for whats needed

code becomes

Case "windowtitle"
;$s_tmp = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\", "Window Title")
	$s_tmp = $o_window.name
	If StringInStr($o_window.document.title & " - " & $s_tmp, $s_string) > 0 Then
		SetError($_IEStatus_Success)
		Return $o_window
	EndIf

Attachments (0)

Change History (9)

comment:1 by Dale Hohm <DaleHohm@…>, 18 years ago

I need more information please.

What version of Windows and IE are you running?

.name is certainly NOT a valid way to approach this issue. the name attribute is used to name frames and windows (as in <a href="url" target="name">

The value I retrieve from the registry is a suffix that IE appends to the document title to construct the window title.

I can see how I ought not to be adding " - " to the document title if that registry value is missing or blank, but perhaps you can tell me what your window title looks like and the associated document title it represents.

Dale

comment:2 by Valik, 18 years ago

Resolution: No Bug
Status: newclosed

Closing due to lack of activity.

in reply to:  1 comment:3 by anonymous, 18 years ago

Resolution: No Bug
Status: closedreopened

Replying to Dale Hohm <DaleHohm@msn.com>:
Dutch Windows 2000 version
Internet Explorer version 7 (7.0.5730.11)

Title shown when I read this issue
#108 (IE.AU3 _IEAttach windowtitle using not existing registry entry) – AutoIt – Trac - Windows Internet Explorer

comment:4 by DaleHohm, 18 years ago

Thanks for the version information.

I found a Microsoft KB on this: http://support.microsoft.com/kb/176497

When the registry key is missing, the default value is documented to be "Microsoft Internet Explorer". In fact, that the KB is incorrect and it is "Microsoft Internet Explorer" with some versions of IE/Windows and "Windows Internet Explorer" with others.

Some more researched required.

Dale

comment:5 by Valik, 18 years ago

This is trivial to solve. Just look for the registry key and use that data if it's found. If it's not found, use the following regular expression:
"(?:Microsoft)|(?:Windows) Internet Explorer"
That will match either "Microsoft Internet Explorer" or "Windows Internet Explorer". No complex OS/IE version complications.

comment:6 by Valik, 18 years ago

Severity: Blocking

in reply to:  6 ; comment:7 by DaleHohm@…, 18 years ago

Replying to Valik:
I like the suggestion Valik. I was tooling around figuring out under exactly what version combinations of OS and IE the label changes. Sidestepping the issue is smarter.

Fix TBS shortly.

Dale

in reply to:  7 comment:8 by Dale.Hohm@…, 18 years ago

Fix submitted to Gary in IE.au3 V2.4-1

Dale

comment:9 by Gary, 18 years ago

Milestone: 3.2.11.11
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.2.11.11

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


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