Jump to content

Auto3Lib error using function '_Tab_GetItemText()'


Recommended Posts

Hi,

I am trying to read the text from a tab by using the function '_Tab_GetItemText($handle, 1)' from the Auto3Lib library. However, when executing my program I receive the next error message:

C:\PROGRA~1\AutoIt3\Include\A3LTabControl.au3 (457) : ==> Variable must be of type "Object".: 
$tItem.Mask = $TCIF_ALLDATA 
$tItem^ ERROR

The tabcontrol I want to read the tab from is located on a GUI NOT created with AutoIT, so maybe this may be a problem, but the strange thing is that other tab functions, like '_Tab_GetCount($handle)' are working for the same tabcontrol. Only the functions for which I have to specify an index do give problems.

Someone has an idea? Thanks!

Edited by Cavok
Link to comment
Share on other sites

Hi,

I am trying to read the text from a tab by using the function '_Tab_GetItemText($handle, 1)' from the Auto3Lib library. However, when executing my program I receive the next error message:

C:\PROGRA~1\AutoIt3\Include\A3LTabControl.au3 (457) : ==> Variable must be of type "Object".: 
$tItem.Mask = $TCIF_ALLDATA 
$tItem^ ERROR

The tabcontrol I want to read the tab from is located on a GUI NOT created with AutoIT, so maybe this may be a problem, but the strange thing is that other tab functions, like '_Tab_GetCount($handle)' are working for the same tabcontrol. Only the functions for which I have to specify an index do give problems.

Someone has an idea? Thanks!

You're not using the latest version of Auto3Lib.
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...