Opened 3 years ago
Closed 2 years ago
#3940 closed Bug (Fixed)
_GUICtrlTab_GetItemText does not work in V3.3.16.1
| Reported by: | anonymous | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.3.17.0 | Component: | AutoIt |
| Version: | 3.3.16.1 | Severity: | None |
| Keywords: | Cc: |
Description
Can't get Tabtext
Select tabs by id works, but not by name
Attachments (0)
Change History (8)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
#include <Array.au3>
#include <GuiTab.au3>
Example()
Func Example()
; Retrieve a list of window handles using a regular expression.
Local $aWinList = WinList("[REGEXPTITLE:(?i)(.*Eigenschaften von*)]")
_ArrayDisplay($aWinList)
If (UBound($aWinList) = 2) Then
;MsgBox(0x0, "Total", $aWinList[1][0])
$title = $aWinList[1][0]
WinActivate($title)
$tab = ControlGetHandle($title, "", "[CLASS:SysTabControl32; INSTANCE:1]")
$tabid = _GUICtrlTab_FindTab ($tab, "Objekt", True,0)
ConsoleWrite("Info: " & _GUICtrlTab_GetItemText ( $tab, 9 ))
If $tabid = -1 Then
MsgBox(0, 'ERROR', 'Cannot Find Tab')
Else
_GUICtrlTab_SetCurFocus ( $tab, $tabid )
ConsoleWrite("Info: " & _GUICtrlTab_GetItemText ( $tab, $tabid ))
EndIf
Else
MsgBox(0x0, "Fehler", "To many windows or none :)")
EndIf
EndFunc
It is a Active Directory User Window, where the Tab Object must be selected.
The Code apply to a German language of active directory tab.
The Result of GetItemText is is ever -1 no matter which tabname i choose.
many thanks.
comment:3 by , 3 years ago
Thanks,
But I have not the environment to replicate (no Active directory on my side)
could you find the same ith noa active directory
Cheers
comment:5 by , 3 years ago
hi,
I have new findings.
When i add the x86 and x64 part of this comment i can access the text of the tab of a file property, but sadly not of the active directory window.
i continue my research
comment:7 by , 2 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:8 by , 2 years ago
| Milestone: | → 3.3.17.0 |
|---|---|
| Resolution: | → Fixed |
| Status: | assigned → closed |
Fixed by revision [13020] in version: 3.3.17.0

Please provide a replication script
Just follow the way a ticket must be written
Thanks