From 6f5fe3f8f5b6890169083431c1c64d950f1a51e0 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 27 Dec 2018 19:09:14 -0400 Subject: [PATCH] add more mouse example --- examples/mouse/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/mouse/main.go b/examples/mouse/main.go index abe3a7b..27ac403 100644 --- a/examples/mouse/main.go +++ b/examples/mouse/main.go @@ -23,6 +23,9 @@ func move() { // move the mouse to 100, 200 robotgo.MoveMouse(100, 200) + robotgo.Drag(10, 10) + robotgo.Drag(20, 20, "right") + // smooth move the mouse to 100, 200 robotgo.MoveSmooth(100, 200) robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0) @@ -37,8 +40,10 @@ func click() { // click the left mouse button robotgo.Click() + // click the right mouse button robotgo.Click("right", false) + // double click the left mouse button robotgo.MouseClick("left", true) }