| || |
Clicking on a Treeview indexed item.
User Thurgood, Mark (email@example.com) posted:
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
I'm trying to click on the first item listed below a specific node in a
Treeview. I don't necessarily know what the name of it is, but I do know
that it's a filename with a '.lib' extension. Does anyone know how to
Example: I'm trying to Right_Click on the <lib1> item below.
I'm attempting to do the following in SQABasic, but it's not working.
Any help is appreciated! Thanks!
name="Mark Thurgood (E-mail).vcf"
filename="Mark Thurgood (E-mail).vcf"
FN:Mark Thurgood (E-mail)
ORG:Texas Instruments Canada Ltd.
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;150 John St.=0D=0ASuite 801;Toronto;ON.;M5V 3E3;Canada
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:150 John St.=0D=0ASuite 801=0D=0AToronto, ON. M5V 3E3=0D=0ACanada
Content-Type: text/plain; charset="us-ascii"
Re: Clicking on a Treeview indexed item.
User (firstname.lastname@example.org) posted:
My guess is that the tree node path you are specifying is not valid. One
good possibility is that one or more of the node paths contain characters
that you can't see (e.g., spaces). Put Robot in record mode and do the
operation manually. Then look at the recorded code to see what the node
path looks like.
If that's not it, see what Properties Robot used to identify the TreeView
control. You may need to change the recognition order for TreeView to get
it to use ItemText property.
Is the TreeView control a Visual Basic control? If so, is it a standard
control, or a third-party control? If not, Robot may not fully support
Here is some example code. Note that the node path (not including new
node) is stored in a variable:
'Add an item to treeview by clicking on node and doing a menuselect:
TreeView Click, "Name=treList;\;ItemText=" & ProductTree, ""
MenuSelect "File->Add Product"
'Add an item to treeview by right-clicking on node and selecting an
'action from Context menu:
TreeView Right_Click, "Name=treList;\;ItemText=" & ProductTree, _
PopupMenuSelect "Add Product"