autogo

package module
v0.0.0-...-84c1287 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

autogo

介绍

纯Golang写的自动鼠标键盘操作,使用w32库,目前只支持win

软件架构

纯Golang编写,使用github.com/gonutz/w32/v2库,暂时只支持win,实现了鼠标移动点击、键盘按键等功能

安装教程

go get gitee.com/yumisanxiang/autogo

使用说明
package main

import (
	"log"
	"time"

	"gitee.com/yumisanxiang/autogo"
)

func main() {
	time.Sleep(1 * time.Second)
	log.Println("start")
	autogo.MouseClick()
}

参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(Vk uint16, Flags uint32) (re uint32)

func Key2Click

func Key2Click(Vk1, Vk2 uint16)

一次按两个键,用于快捷键

func KeyClick

func KeyClick(Vk uint16)

func KeyCopy

func KeyCopy()

func KeyPaste

func KeyPaste()

func MatchImg

func MatchImg() (Dx int, Dy int)

todo 查找指定的图像所在的屏幕位置

func Mouse

func Mouse(Flags uint32) (re uint32)

func MouseClick

func MouseClick()

func MouseMove

func MouseMove(Dx int, Dy int)

func MouseMoveClick

func MouseMoveClick(Dx int, Dy int)

func MouseMoveImg

func MouseMoveImg()

鼠标移动到指定图片位置

func PrtSc

func PrtSc(isCurrent bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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