Opened 18 years ago
Closed 18 years ago
#108 closed Bug (Fixed)
IE.AU3 _IEAttach windowtitle using not existing registry entry
| Reported by: | 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)
follow-up: 3 comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Closing due to lack of activity.
comment:3 by , 18 years ago
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
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 , 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 , 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.
follow-up: 7 comment:6 by , 18 years ago
| Severity: | → Blocking |
|---|
follow-up: 8 comment:7 by , 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
comment:9 by , 18 years ago
| Milestone: | → 3.2.11.11 |
|---|---|
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed in version: 3.2.11.11

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