Edmonds Posted November 30, 2012 Posted November 30, 2012 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
jdelaney Posted November 30, 2012 Posted November 30, 2012 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.
Edmonds Posted December 3, 2012 Author Posted December 3, 2012 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
Blue_Drache Posted December 3, 2012 Posted December 3, 2012 ControlCommand() ControlClick() Control*() Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
jdelaney Posted December 3, 2012 Posted December 3, 2012 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now