Opened 10 months ago

Last modified 10 months ago

#3940 new Bug

_GUICtrlTab_GetItemText does not work in V3.3.16.1

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


Can't get Tabtext
Select tabs by id works, but not by name

Attachments (0)

Change History (5)

comment:1 Changed 10 months ago by Jpm

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

comment:2 Changed 10 months ago by anonymous

#include <Array.au3>
#include <GuiTab.au3>


Func Example()
        ; Retrieve a list of window handles using a regular expression.
        Local $aWinList = WinList("[REGEXPTITLE:(?i)(.*Eigenschaften von*)]")
		If (UBound($aWinList) = 2) Then
			;MsgBox(0x0, "Total", $aWinList[1][0])
			$title = $aWinList[1][0]
			$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')
				_GUICtrlTab_SetCurFocus ( $tab, $tabid )
				ConsoleWrite("Info: " & _GUICtrlTab_GetItemText ( $tab, $tabid ))

			MsgBox(0x0, "Fehler", "To many windows or none :)")

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 Changed 10 months ago by Jpm

But I have not the environment to replicate (no Active directory on my side)
could you find the same ith noa active directory

comment:4 Changed 10 months ago by anonymous

when i use the tabs of properties from a file, i get the same results.

comment:5 Changed 10 months ago by anonymous

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

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 new The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.