Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 750 Bytes

File metadata and controls

27 lines (18 loc) · 750 Bytes

Str

Constructor for function that, when invoked, outputs literal strings as key presses with minimal interpretation.

Usage

Str(custom_string)

custom_string - String to be inserted verbatum

Returns - Function that does the string insertion when called

The purpose of Str appears to be a way to output data directly with minimal interpretation. It converts -, +, \n and \t to their word equivalents and doesn't assume the input text is separated by spaces. This feature will primarily be used in custom helper functions where processing of the input data is done manually.

Obtain

from talon.voice import Str

Examples

Str('1234')(None)

Presses 1, 2, 3, 4 immediately, in sequence.