Sign in to follow this  
Followers 0
Edmonds

Can you click a tree leaf?

5 posts in this topic

We have a tree control that activates an "Add to List" button when the desired leaf is clicked. AutoIT can be made to select that leaf, but the selection doesn't result in the "click" that activates the "Add to List" button and it stays gray. I can't use mouse click, because I'd have to know in advance where the tree leaf would show up on the screen. Is there any other way to simulate the "click" behavior right at the site of the selected leaf?

RE

Share this post


Link to post
Share on other sites



I'm guessing a tree control is a treeview...so try looking into functions starting with:

_GUICtrlTreeView


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

The "_GUICtrl" functions only work with controls we have created ourselves, right? This is an existing TreeView in an application I am attempting to control.

RE

Share this post


Link to post
Share on other sites

ControlCommand()

ControlClick()

Control*()


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Those functions still work in some applications. Depends on what the developers allow you access to. One way to find out.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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