Modify

Opened 18 months ago

Closed 7 months ago

#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:1 Changed 18 months ago by Jpm

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

comment:2 Changed 18 months ago by anonymous

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

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 Changed 18 months ago by anonymous

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

comment:5 Changed 18 months ago by anonymous

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

I still need a replicating script
Thanks

comment:7 Changed 7 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

comment:8 Changed 7 months ago by Jpm

  • Milestone set to 3.3.17.0
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [13020] in version: 3.3.17.0

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.