From 07596ffea1a22514d59bb321ac806b52610598dd Mon Sep 17 00:00:00 2001 From: Prashant Gupta Date: Fri, 15 Mar 2019 11:34:27 -0700 Subject: [PATCH] moveMouseSmooth not working smoothly --- src/mousemover/mouseMover.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mousemover/mouseMover.go b/src/mousemover/mouseMover.go index 1cc7ade..553fba5 100644 --- a/src/mousemover/mouseMover.go +++ b/src/mousemover/mouseMover.go @@ -13,7 +13,7 @@ func Start() (quit chan struct{}) { quit = make(chan struct{}) activityTracker := &activity.ActivityTracker{ - TimeToCheck: 5, + TimeToCheck: 15, } heartbeatCh, quitActivityTracker := activityTracker.Start() @@ -30,7 +30,7 @@ func Start() (quit chan struct{}) { MouseX: currentMousePos.MouseX + movePixel, MouseY: currentMousePos.MouseY + movePixel, } - robotgo.MoveMouseSmooth(nextMouseMov.MouseX, nextMouseMov.MouseY) + robotgo.MoveMouse(nextMouseMov.MouseX, nextMouseMov.MouseY) movePixel *= -1 } case <-quit: