Jump to content
Sign in to follow this  
Cavok

Auto3Lib error using function '_Tab_GetItemText()'

Recommended Posts

Cavok

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

Share this post


Link to post
Share on other sites
PaulIA

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

Share this post


Link to post
Share on other sites
Cavok

You're not using the latest version of Auto3Lib.

Installing the latest AutoIT and Auto3Lib versions solved the problem, thanks!!

Share this post


Link to post
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
Sign in to follow this  

×