cmd

package
v0.0.0-...-fab1f19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewButtonPresser

func NewButtonPresser(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command

NewButtonPresser create a new cobra command that creates an imitation of a mouse button press.

func NewButtonReleaser

func NewButtonReleaser(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command

NewButtonReleaser create a new cobra command that creates an imitation of a mouse button release.

func NewMouseInformer

func NewMouseInformer(mouse *mouse.Mouse) *cobra.Command

NewMouseInformer create a new cobra command that displays information about the state of the mouse.

func NewMouseMover

func NewMouseMover(mouse *mouse.Mouse, screen *mouse.Screen) *cobra.Command

NewMouseMover create a new cobra command that moves the mouse cursor to the coordinates specified from the console.

func NewMouseRestorer

func NewMouseRestorer(mouse *mouse.Mouse, screen *mouse.Screen) *cobra.Command

NewMouseRestorer create a new cobra command which returns to the initial state of mouse.

func NewMouseSensor

func NewMouseSensor(mouse *mouse.Mouse) *cobra.Command

NewMouseSensor create a new cobra command which sets the mouse sensitivity value according to the value entered from the console.

func NewMouseWheelScroller

func NewMouseWheelScroller(mouse *mouse.Mouse, prompter *Prompter) *cobra.Command

NewMouseWheelScroller create a new cobra command that creates an imitation of a mouse wheel scroll.

Types

type Prompter

type Prompter struct {
	// contains filtered or unexported fields
}

Prompter performs the actions of an interactive menu.

func NewPrompter

func NewPrompter(command *cobra.Command) *Prompter

NewPrompter create a new prompter. Parameter "command" indicates the command that will be consider the root.

func (*Prompter) SelectMenu

func (p *Prompter) SelectMenu() error

SelectMenu displays all possible commands for this program.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL