app

package
v0.0.0-...-8f6bda2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickCfg

type ClickCfg struct {
	Coordinate []*Coordinate //点击坐标点切片
	StartWait  int           //任务开始前等待时间(秒s)
	ClickWait  int           //多个坐标点点击间隔时间(毫秒ms),1000ms = 1s
	Loops      int           //任务执行循环次数
	Mouse      bool          //是否模拟鼠标移动过程(true/false)
}

点击器配置

func NewApp

func NewApp(cfg string) (app *ClickCfg)

根据配置文件实例应用

func (*ClickCfg) Run

func (app *ClickCfg) Run()

运行

type Coordinate

type Coordinate struct {
	X       int    //X坐标点
	Y       int    //Y坐标点
	Click   string //点击鼠标按键 => left/center/right
	Dbclick bool   //是否双击
	Nums    int    //点击次数
}

Jump to

Keyboard shortcuts

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