Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
Execute() // Execute executes the command.
}
Command defines the Execute function which any command must implement.
type ExecCommand ¶
ExecCommand executes a system command.
func NewExecCommand ¶
func NewExecCommand(options map[string]interface{}) (*ExecCommand, error)
NewExecCommand creates a new ExecCommand from an options map.
type KeyPressCommand ¶
type KeyPressCommand struct { Key string // https://github.com/go-vgo/robotgo/blob/master/docs/keys.md Mods []string }
KeyPressCommand presses a key.
func NewKeyPressCommand ¶
func NewKeyPressCommand(options map[string]interface{}) (*KeyPressCommand, error)
NewKeyPressCommand creates a new KeyPressCommand from an options map.
type MouseClickCommand ¶
type MouseClickCommand struct {
Button string // "left", "center", or "right".
}
MouseClickCommand clicks the mouse.
func NewMouseClickCommand ¶
func NewMouseClickCommand(options map[string]interface{}) (*MouseClickCommand, error)
NewMouseClickCommand creates a new MouseClickCommand from an options map.
func (*MouseClickCommand) Execute ¶
func (c *MouseClickCommand) Execute()
Execute executes the command.
type MouseMoveCommand ¶
MouseMoveCommand moves the mouse.
func NewMouseMoveCommand ¶
func NewMouseMoveCommand(options map[string]interface{}) (*MouseMoveCommand, error)
NewMouseMoveCommand creates a new MouseMoveCommand from an options map.
func (*MouseMoveCommand) Execute ¶
func (c *MouseMoveCommand) Execute()
Execute executes the command.
type Script ¶
type Script struct {
Commands []Command
}
Script is a sequence of commands to execute.
type SleepCommand ¶
type SleepCommand struct {
Seconds int
}
SleepCommand does nothing for some amount of time.
func NewSleepCommand ¶
func NewSleepCommand(options map[string]interface{}) (*SleepCommand, error)
NewSleepCommand creates a new SleepCommand from an options map.
type TypeCommand ¶
type TypeCommand struct {
Text string
}
TypeCommand types some text.
func NewTypeCommand ¶
func NewTypeCommand(options map[string]interface{}) (*TypeCommand, error)
NewTypeCommand creates a new TypeCommand from an options map.