Method: AutoItX3::ListView#selected
- Defined in:
- lib/AutoItX3/control.rb
#selected ⇒ Object
Returns the inices of the selected items.
Return value
An array containg the indices of the selected items which is empty if none is selected.
Raises
- Au3Error
-
Control or window not found.
Example
p ctrl.selected #=> [3, 4, 5]
703 704 705 |
# File 'lib/AutoItX3/control.rb', line 703 def selected send_command_to_list_view("GetSelected", 1).split("|").map(&:to_i) end |