Documentation ¶
Index ¶
- func NewButtonPresser(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command
- func NewButtonReleaser(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command
- func NewMouseInformer(mouse *mouse.Mouse) *cobra.Command
- func NewMouseMover(mouse *mouse.Mouse, screen *mouse.Screen) *cobra.Command
- func NewMouseRestorer(mouse *mouse.Mouse, screen *mouse.Screen) *cobra.Command
- func NewMouseSensor(mouse *mouse.Mouse) *cobra.Command
- func NewMouseWheelScroller(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command
- type Prompter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewButtonPresser ¶
NewButtonPresser create a new cobra command that creates an imitation of a mouse button press.
func NewButtonReleaser ¶
NewButtonReleaser create a new cobra command that creates an imitation of a mouse button release.
func NewMouseInformer ¶
NewMouseInformer create a new cobra command that displays information about the state of the mouse.
func NewMouseMover ¶
NewMouseMover create a new cobra command that moves the mouse cursor to the coordinates specified from the console.
func NewMouseRestorer ¶
NewMouseRestorer create a new cobra command which returns to the initial state of mouse.
func NewMouseSensor ¶
NewMouseSensor create a new cobra command which sets the mouse sensitivity value according to the value entered from the console.
Types ¶
type Prompter ¶
type Prompter struct {
// contains filtered or unexported fields
}
Prompter performs the actions of an interactive menu.
func NewPrompter ¶
NewPrompter create a new prompter. Parameter "command" indicates the command that will be consider the root.
func (*Prompter) SelectMenu ¶
SelectMenu displays all possible commands for this program.