Documentation
¶
Overview ¶
macro syntax is that 1. starts with TokenSeparator, 2. "e" after TokenSeparator such as "\e" skips any wait() command. 3. "n[number]" after TokenSeparator such as "\n100" represents inputting number 100.
Thus, valid macro "\e\n100" means 1. skip any wait until input required, 2. then input number 100.
Index ¶
Constants ¶
View Source
const ( // represents token separator. e.g. "\Token1\Token2" TokenSeparator = `\` // represents skip any wait(). TokenSkipWait = "e" // represents input number e.g. "n100" means 100. TokenNumberPrefix = "n" )
Variables ¶
View Source
var ErrorEmptyToken = errors.New("empry token")
error Token is empty
View Source
var ErrorNotMacro = errors.New("command is not macro")
the error indicates that command is not macro.
Functions ¶
func LoadDefault ¶
Types ¶
type Macro ¶
type Macro struct {
Tokens []Token
}
Macro is command sequence. Each command is represented as token.
Click to show internal directories.
Click to hide internal directories.