mirror of
https://github.com/prashantgupta24/automatic-mouse-mover.git
synced 2024-12-22 08:24:11 +00:00
moveMouseSmooth not working smoothly
This commit is contained in:
parent
cff4e102c6
commit
07596ffea1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user