Jump to content

how to identify a delphi treelist control in au3


Recommended Posts

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 by dvcz38
Link to comment
Share on other sites

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

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

- 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

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.

Link to comment
Share on other sites

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 by Zedna
Link to comment
Share on other sites

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

Else

MsgBox(0,'Error', 'Item not found in treeview',1)

EndIf

The screenshot of treelist control

Posted Image

could u give me your msn or any other so that i would show u the problem in detail

i 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

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

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

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