mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
update godoc
This commit is contained in:
parent
3d4f723800
commit
9d92e0f852
10
robotgo.go
10
robotgo.go
@ -1256,6 +1256,10 @@ func End() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AddEvents add global event hook
|
// AddEvents add global event hook
|
||||||
|
//
|
||||||
|
// robotgo.AddEvents("q")
|
||||||
|
// robotgo.AddEvents("q", "ctrl")
|
||||||
|
// robotgo.AddEvents("q", "ctrl", "shift")
|
||||||
func AddEvents(key string, arr ...string) bool {
|
func AddEvents(key string, arr ...string) bool {
|
||||||
s := hook.Start()
|
s := hook.Start()
|
||||||
// defer hook.End()
|
// defer hook.End()
|
||||||
@ -1299,6 +1303,12 @@ func AddEvents(key string, arr ...string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AddMouse add mouse event hook
|
// AddMouse add mouse event hook
|
||||||
|
//
|
||||||
|
// mouse arguments: left, center, right, wheelDown, wheelUp,
|
||||||
|
// wheelLeft, wheelRight.
|
||||||
|
//
|
||||||
|
// robotgo.AddMouse("left")
|
||||||
|
// robotgo.AddMouse("left", 100, 100)
|
||||||
func AddMouse(btn string, x ...int16) bool {
|
func AddMouse(btn string, x ...int16) bool {
|
||||||
s := hook.Start()
|
s := hook.Start()
|
||||||
ukey := mouseMap[btn]
|
ukey := mouseMap[btn]
|
||||||
|
Loading…
Reference in New Issue
Block a user