divya Posted July 17, 2014 Posted July 17, 2014 Hi all, In a tree view, i am sending cursor to move down two steps (send("{DOWN 2}")) .How can i know whether it points to the exact item or not. Can we retrieve the text where the cursor currently pointing to. I used Control get text, and control command(get selected).. But it was not working fine. Actually in a context menu, i am sending the above comman and there in context menu, i can get only the class name as #32768 in basic window info and not the control info.. So, may be i cant use Control get text or control command(get selected) as these functions need control information. Could anyone please let me know if there is any other function. Thank you.
junkew Posted July 17, 2014 Posted July 17, 2014 See example forum about iuiautomation FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
jguinch Posted July 17, 2014 Posted July 17, 2014 (edited) For the treeview, you can use ControlTreeView or _GUICtrlTreeView_XXXXX functions (see help file). Instead of using Send, you can do the same thing properly with these functions (if the control is recognized as a treeview, of course) Some functions can have a strange behavior when using a x86 script with x64 windows. Edited July 17, 2014 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
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