Input.GetSelection

table Input.GetSelection ( 

string ObjectName )

Description

Returns the start and end positions of text that is selected in an input object.

Parameters

ObjectName

(string) The name of the input object.

Returns

(table) A table containing two numeric indexes. The first index stores where the selection started, and the second stores where the selection ended in the input object. You can access these values using the table keys "Start" and "End." If no text is selected or an error occurs, a value of nil will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

Availability

Standard

Pro

 

See also:  Related Actions