From 5c7cf62d54c7c36c6561824dc4707cf695181c79 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sat, 9 Mar 2019 08:58:54 -0400 Subject: [PATCH] add AddMousePos example code --- examples/event/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/event/main.go b/examples/event/main.go index 93069a7..14108b9 100644 --- a/examples/event/main.go +++ b/examples/event/main.go @@ -52,6 +52,12 @@ func addMouse() { if ok { fmt.Println("add mouse and move to 100,100 ...") } + + fmt.Println("--- Please move mosue to 100,100 ---") + ok = robotgo.AddMousePos(100, 100) + if ok { + fmt.Println(" move mouse to 100,100 ...") + } } func add() {