Modify

#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@…>, on Feb 12, 2008 at 5:12:39 AM

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, on Mar 2, 2008 at 4:58:58 AM

Resolution: No Bug
Status: newclosed

Closing due to lack of activity.

in reply to:  1 comment:3 by anonymous, on Mar 24, 2008 at 10:36:40 PM

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, on Apr 4, 2008 at 12:26:56 AM

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, on Apr 4, 2008 at 12:58:44 AM

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, on Apr 19, 2008 at 9:17:46 PM

Severity: Blocking

in reply to:  6 ; comment:7 by DaleHohm@…, on Apr 27, 2008 at 4:32:06 AM

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@…, on May 2, 2008 at 4:32:20 AM

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

Dale

comment:9 by Gary, on May 3, 2008 at 3:47:07 PM

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.