Modify

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 J-Paul Mesnage, 3 years ago

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

comment:2 by anonymous, 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 J-Paul Mesnage, 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:4 by anonymous, 3 years ago

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

comment:5 by anonymous, 3 years ago

hi,
I have new findings.

https://www.autoitscript.com/forum/topic/208604-_guictrltab_getitem-fails-to-retrieve-item-text-since-autoit-version-33160/?do=findComment&comment=1505592

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:6 by J-Paul Mesnage, 2 years ago

I still need a replicating script
Thanks

comment:7 by J-Paul Mesnage, 2 years ago

Owner: set to J-Paul Mesnage
Status: newassigned

comment:8 by J-Paul Mesnage, 2 years ago

Milestone: 3.3.17.0
Resolution: Fixed
Status: assignedclosed

Fixed by revision [13020] in version: 3.3.17.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.