Method: AutoItX3::TreeView#text_at
- Defined in:
- lib/AutoItX3/control.rb
#text_at(item) ⇒ Object Also known as: []
call-seq:
text_at( item ) ==> aString
[ item ] ==> aString
Returns the text of item.
Parameters
item-
The item to retrieve the text from.
Return value
The text at the specified position.
Raises
- Au3Error
-
Control or window not found.
Example
p ctrl.text_at("#0|#3|#0|#10|#1|#0") #=> "ControlClick"
Remarks
See #selected for an easy way of how to get the text of the currently selected item.
966 967 968 |
# File 'lib/AutoItX3/control.rb', line 966 def text_at(item) send_command_to_tree_view("GetText", item) end |