dvcz38 Posted May 6, 2009 Share Posted May 6, 2009 (edited) I used ControlTreeView () method to identify TreeList control, but it didnot work at all The operation I would like to do is to click "A1 | | -- B1 " items ,which is inside the treelist control . in a word, i want to click "# A1 | # B1" items inside the treelist control. ControlTreeView () method can only identify the TreeView control ,but not the dxTreeList control . btw: Treelist Control class: TdxTreeList (This is a delphi control) anyone who can help me? Edited May 6, 2009 by dvcz38 Link to comment Share on other sites More sharing options...
dvcz38 Posted May 6, 2009 Author Share Posted May 6, 2009 i`m a newcomer in au3 I used ControlTreeView () method to identify TreeList control, but it didnot work at all The operation I would like to do is to click A1 item ,which is inside the treelist control . "A | | -- A1 " in a word, i want to click "# A | # A1" item inside the treelist control. by the way, treelist is a control that used in delphi software, i hope someone could help me to solve this problem. thx Link to comment Share on other sites More sharing options...
Zedna Posted May 6, 2009 Share Posted May 6, 2009 (edited) - post information/screenshot from Au3Info tool showing details about your target window/treeview control- post simple reproducing script or what you haveThis might help you to start: http://www.autoitscript.com/forum/index.ph...st&p=673359EDIT: typo Edited May 6, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
dvcz38 Posted May 6, 2009 Author Share Posted May 6, 2009 thx for Zedna`s suggestion! but the example in http://www.autoitscript.com/forum/index.ph...;p=673359,still can not solve my problem,coz function like _GUICtrlTreeView_FindItem($htree, "Plac_11"),the return value is always false. MY CODE: AutoIt#include <GuiTreeView.au3>$in1="Form1"$htree = ControlGetHandle($in1, "", "TdxTreeList1")$node = _GUICtrlTreeView_FindItem($htree, "Q")If $node Then _GUICtrlTreeView_Expand($htree, $node) $node_child = _GUICtrlTreeView_GetFirstChild($htree, $node) _GUICtrlTreeView_SelectItem($htree, $node_child)Else MsgBox(0,'Error', 'Item not found in treeview',1)EndIf Link to comment Share on other sites More sharing options...
dvcz38 Posted May 6, 2009 Author Share Posted May 6, 2009 - post information/screenshot from Au3Info tool showing details about your target window/treeview control - post simple reproducing script or what you have this migjt help you to start: http://www.autoitscript.com/forum/index.ph...st&p=673359 treelist control is different from treeview control,and _GUICtrlTreeView_FindItem() function doesnot work to treelist control. [treelist control,a produce of DevExpress Co., is used in delphi ] Link to comment Share on other sites More sharing options...
Bert Posted May 6, 2009 Share Posted May 6, 2009 I'm posting this here so you get this. DO NOT MESSAGE ME. Put all your support questions here. Any further attempts to contact me privatly will result in you being possibly banned by a moderator. I do not do PM or messanger support for users. If you have an issue, post in the help and support forum an another member may help you. Do not keep bumping your thread every few minutes. This will also upset a moderator. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Zedna Posted May 6, 2009 Share Posted May 6, 2009 (edited) treelist control is different from treeview control,and _GUICtrlTreeView_FindItem() function doesnot work to treelist control. [treelist control,a produce of DevExpress Co., is used in delphi ] - post information/screenshot from Au3Info tool showing details about your target window/treeview control "C:\Program Files\AutoIt3\au3info.exe" The most important is ClasNameNN. Also show us screenshot of that "TreeList" control. Edited May 6, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
dvcz38 Posted May 7, 2009 Author Share Posted May 7, 2009 - post information/screenshot from Au3Info tool showing details about your target window/treeview control"C:\Program Files\AutoIt3\au3info.exe" The most important is ClasNameNN.Also show us screenshot of that "TreeList" control.MY CODE: AutoIt#include <GuiTreeView.au3>$in1="Form1"$htree = ControlGetHandle($in1, "", "TdxTreeList1")$node = _GUICtrlTreeView_FindItem($htree, "Q")If $node Then_GUICtrlTreeView_Expand($htree, $node)$node_child = _GUICtrlTreeView_GetFirstChild($htree, $node)_GUICtrlTreeView_SelectItem($htree, $node_child)ElseMsgBox(0,'Error', 'Item not found in treeview',1)EndIfThe screenshot of treelist controlcould u give me your msn or any other so that i would show u the problem in detaili think treelist control is not a standard control,and most of functions do not take effect on treelist control Link to comment Share on other sites More sharing options...
dvcz38 Posted May 7, 2009 Author Share Posted May 7, 2009 I'm posting this here so you get this.DO NOT MESSAGE ME. Put all your support questions here. Any further attempts to contact me privatly will result in you being possibly banned by a moderator. I do not do PM or messanger support for users. If you have an issue, post in the help and support forum an another member may help you. Do not keep bumping your thread every few minutes. This will also upset a moderator.I`m so sorry to disturb u for my careless action.i`m glad that u point out my mistakes. thx..i do eager to handle the issuse.but it really hard to me to solve this problem by myself. Link to comment Share on other sites More sharing options...
Zedna Posted May 7, 2009 Share Posted May 7, 2009 (edited) It looks like non-standard control. In this case you can't automate it by AutoIt in any simple way. Complicated solutions may be: - OCR - memory reading - ?maybe some messages sent to this control? So here is point where my help ends up. Don't send me more PMs. Edited May 7, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
dvcz38 Posted May 7, 2009 Author Share Posted May 7, 2009 It looks like non-standard control.In this case you can't automate it by AutoIt in any simple way.Complicated solutions may be:- OCR- memory reading- ?maybe some messages sent to this control?So here is point where my help ends up.Don't send me more PMs.I`m still confuse about that,could u show me the examples with memory reading? Link to comment Share on other sites More sharing options...
Zedna Posted May 7, 2009 Share Posted May 7, 2009 (edited) I`m still confuse about that,could u show me the examples with memory reading?Search forum for Memory UDF.EDIT: also look at "C:\Program Files\AutoIt3\Include\memory.au3" Edited May 7, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Bert Posted May 7, 2009 Share Posted May 7, 2009 Understand, we are not the support staff for AutoIt. We are members, just like you. The AutoIt forum is completely volunteer. We do this for we enjoy what we do. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
dvcz38 Posted May 8, 2009 Author Share Posted May 8, 2009 (edited) Search forum for Memory UDF.EDIT: also look at "C:\Program Files\AutoIt3\Include\memory.au3"Thk so much !zedna. I`ll try and give feeback later Edited May 8, 2009 by dvcz38 Link to comment Share on other sites More sharing options...
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