Input.SetSelection

Input.SetSelection (

string ObjectName,

number Start,

number End )

Description

Selects a range of text in an input object. This is just like highlighting the text with the mouse.

Parameters

ObjectName

(string) The name of the input object.

Start

(number) The index in the input string to start selecting from. The first character in an input object is considered to have an index of 1.

Tip: You can use a start index of -1 to deselect all of the text in the object.

End

(number) The index in the string to stop selecting at. An index of -1 can be used to select all of the text to the end of the input object.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions