wa

package module
v0.0.0-...-0fcf9f1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

wa

$ go get github.com/yanbocn/wa

demo.go

    package main
    
    import "github.com/yanbocn/wa"
    
    func main() {
        wa.MouseClickPos(50, 50)
        wa.Sleep(1)
        wa.InputStr("ahahaha")
    }

package wa // import "github.com/yanbocn/wa"

	func GetMousePos() (int32, int32)
	func InputKey(s string, args ...string)
	func InputStr(str string)
	func MouseClick(args ...string)
	func MouseClickPos(x, y int32)
	func SetMousePos(x, y int32)
	func Sleep(t int)
	func GetPixelColor(x, y int32) uint32
	func MouseClickMovePos(x, y int32)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMousePos

func GetMousePos() (int32, int32)

GetMousePos mouse pos

func GetPixelColor

func GetPixelColor(x, y int32) uint32

GetPixelColor get color

func InputKey

func InputKey(s string, args ...string)

InputKey key

func InputStr

func InputStr(str string)

InputStr ("XX")

func MouseClick

func MouseClick(args ...string)

MouseClick click

func MouseClickMovePos

func MouseClickMovePos(x, y int32)

MouseClickMovePos move

func MouseClickPos

func MouseClickPos(x, y int32)

MouseClickPos x, y click

func SetKeyCode

func SetKeyCode(press bool, keyCode uint16)

func SetMouseKey

func SetMouseKey(button int, press bool)
 button :
	0 Left;  1 Middle; 2 Right

func SetMousePos

func SetMousePos(x, y int32)

SetMousePos mouse pos

func Sleep

func Sleep(t int)

Sleep time.Sleep t second

Types

This section is empty.

Jump to

Keyboard shortcuts

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