Jump to content
Sign in to follow this  
dvcz38

how to identify a delphi treelist control in au3

Recommended Posts

dvcz38

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

Share this post


Link to post
Share on other sites
dvcz38

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

Share this post


Link to post
Share on other sites
dvcz38

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

Share this post


Link to post
Share on other sites
dvcz38

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

Share this post


Link to post
Share on other sites
Bert

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.

Share this post


Link to post
Share on other sites
Zedna

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

Share this post


Link to post
Share on other sites
dvcz38

- 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

Share this post


Link to post
Share on other sites
dvcz38

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.

Share this post


Link to post
Share on other sites
Zedna

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 by Zedna

Share this post


Link to post
Share on other sites
dvcz38

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?

Share this post


Link to post
Share on other sites
Zedna

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 by Zedna

Share this post


Link to post
Share on other sites
dvcz38

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.