Opened on Feb 8, 2023 at 8:41:50 AM
#3940 closed Bug (Fixed)
_GUICtrlTab_GetItemText does not work in V3.3.16.1
| Reported by: | anonymous | Owned by: | Jpm |
|---|---|---|---|
| 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:2 by , on Feb 8, 2023 at 8:57:59 AM
#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 , on Feb 9, 2023 at 7:53:02 AM
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:4 by , on Feb 9, 2023 at 1:57:22 PM
when i use the tabs of properties from a file, i get the same results.
comment:5 by , on Feb 9, 2023 at 2:53:04 PM
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 , on Dec 16, 2023 at 2:30:57 PM
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:8 by , on Dec 17, 2023 at 12:29:52 AM
| 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