diff --git a/examples/bitmap-bytes/main.go b/examples/bitmap-bytes/main.go index e942599..cc012b9 100644 --- a/examples/bitmap-bytes/main.go +++ b/examples/bitmap-bytes/main.go @@ -30,6 +30,5 @@ func main() { } log.Println("bytes: ", b.Bytes()) - ioutil.WriteFile("out.jpg", b.Bytes(), 0666) } diff --git a/examples/mouse/main.go b/examples/mouse/main.go index c33c8f5..e4ecfb1 100644 --- a/examples/mouse/main.go +++ b/examples/mouse/main.go @@ -19,6 +19,7 @@ import ( func move() { robotgo.Move(100, 200) + robotgo.MoveRelative(10, -200) // move the mouse to 100, 200 robotgo.MoveMouse(100, 200) @@ -32,6 +33,7 @@ func move() { // smooth move the mouse to 100, 200 robotgo.MoveSmooth(100, 200) robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0) + robotgo.MoveSmoothRelative(10, -100, 1.0, 30.0) for i := 0; i < 1080; i += 1000 { fmt.Println(i)