mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add drag smooth function support
This commit is contained in:
parent
332a0deb6f
commit
cb549ee939
@ -382,6 +382,13 @@ func Drag(x, y int, args ...string) {
|
||||
C.drag_mouse(cx, cy, button)
|
||||
}
|
||||
|
||||
// DragSmooth drag the mouse smooth
|
||||
func DragSmooth(x, y int, args ...interface{}) {
|
||||
MouseToggle("down")
|
||||
MoveSmooth(x, y, args...)
|
||||
MouseToggle("up")
|
||||
}
|
||||
|
||||
// MoveMouseSmooth move the mouse smooth,
|
||||
// moves mouse to x, y human like, with the mouse button up.
|
||||
func MoveMouseSmooth(x, y int, args ...interface{}) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user