Opened 16 years ago

Closed 16 years ago

#108 closed Bug (Fixed)

IE.AU3 _IEAttach windowtitle using not existing registry entry

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


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 = $ 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 = $
	If StringInStr($o_window.document.title & " - " & $s_tmp, $s_string) > 0 Then
		Return $o_window

Attachments (0)

Change History (9)

comment:1 follow-up: Changed 16 years ago by Dale Hohm <DaleHohm@…>

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.


comment:2 Changed 16 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

Closing due to lack of activity.

comment:3 in reply to: ↑ 1 Changed 16 years ago by anonymous

  • Resolution No Bug deleted
  • Status changed from closed to reopened

Replying to Dale Hohm <>:
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 Changed 16 years ago by DaleHohm

Thanks for the version information.

I found a Microsoft KB on this:

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.


comment:5 Changed 16 years ago by Valik

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 follow-up: Changed 16 years ago by Valik

  • Severity set to Blocking

comment:7 in reply to: ↑ 6 ; follow-up: Changed 16 years ago by DaleHohm@…

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.


comment:8 in reply to: ↑ 7 Changed 16 years ago by Dale.Hohm@…

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


comment:9 Changed 16 years ago by Gary

  • Milestone set to
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed in version:

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

Modify Ticket

as closed The owner will remain Gary.

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

Note: See TracTickets for help on using tickets.