Sign in to follow this  
Followers 0
pmneve

AutoItX3 ControlTreeView GetText returns blank

2 posts in this topic

#1 ·  Posted (edited)

Am using AutoItX3.dll in Windows XP SP3 in Ruby scripts. Have been trying to capture the text from SysTreeView32 objects in an application without much luck. I've tried against a Windows Explorer instance and can get the text just fine.

@ai.ControlTreeView('Deal List', '', "[CLASS:SysTreeView32\; INSTANCE:1]", 'GetText', '', '') => ""

Unfortunately I haven't found any others that have the same problem.

I suspect some creative coding on the part of the authors of the application and wonder if there is any other avenue I can explore to get at the text of these tree view items.

The other relevant ControlTreeView commands work (Select, GetSelected, etc.) Just the GetText fails.

Here, at least, is the AutoItInfo tool output for the naughty window:

Basic Window Info

Title: Deal List By Name

Class: #32770

Basic Control Info

Class: SysTreeView32

Instance: 1

>>>> Window <<<<

Title: Deal List By Name

Class: #32770

Position: 335, 108

Size: 701, 504

Style: 0x96C80000

ExStyle: 0x00100100

Handle: 0x000E08EC

>>>> Control <<<<

Class: SysTreeView32

Instance: 1

ClassnameNN: SysTreeView321

Name:

Advanced (Class): [CLASS:SysTreeView32; INSTANCE:1]

ID: 1181960

Text:

Position: 20, 82

Size: 656, 255

ControlClick Coords: 166, 73

Style: 0x5621D0B5

ExStyle: 0x00100000

Handle: 0x00120908

>>>> Mouse <<<<

Position: 524, 292

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

A

&OK

Cancel

>>>> Hidden Text <<<<

Finder Tool

post-58049-0-20837200-1354583703_thumb.p

Edited by pmneve

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  
Followers 0