Jump to content

Find and click on text in a TTree control


Dana
 Share

Recommended Posts

I'm working on a script to automate adding items to a document management system (Dassault SmarTeam).  SmarTeam displays a list of items in a TTree control; I need to click on a line to highlight it before proceeding.  However, the actual text inside the control doesn't seem to be accessible in any way, it's not in "Visible text" or "hidden text".  Here the highlighted line (A.00 Tester Transfer....) was selected manually, but I need Autoit to find and select one of the lines below according to the displayed text (e.g. 120660-221) so it can do further work on that entry.  Any ideas?

image.png.d86e9afcacf616dfa90d3d274f1fdb99.png

 

 

 

Edited by Dana
Link to comment
Share on other sites

  • 3 weeks later...

Turns out SmarTeam has a text search function which can search the displayed tree and leave the highlight on the search result; I was able to use that after sending a couple of up arrows to make sure the cursor is above the desired entry so it's the first result.

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...