Skip to content
/ gomouse Public

Library to generate human-like mouse mouvement.

Notifications You must be signed in to change notification settings

obito/gomouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

GoMouse

Library to generate human-like mouse mouvement.

Usage

func TestGeneratePoints(t *testing.T) {
	settings := MouseSettings{
		StartX:     math.Ceil(RandomNumberFloat() * 1920),
		StartY:     math.Ceil(RandomNumberFloat() * 1080),
		EndX:       math.Ceil(RandomNumberFloat() * 1920),
		EndY:       math.Ceil(RandomNumberFloat() * 1080),
		Gravity:    math.Ceil(RandomNumberFloat() * 10),
		Wind:       math.Ceil(RandomNumberFloat() * 10),
		MinWait:    2.0,
		MaxWait:    math.Ceil(RandomNumberFloat() * 5),
		MaxStep:    math.Ceil(RandomNumberFloat() * 3),
		TargetArea: math.Ceil(RandomNumberFloat() * 10),
	}

	points := GeneratePoints(settings)

	log.Print(points)
}

Credits

Thanks to @BenLand100 for the original WindMouse library in Java. All I did is porting it to Go.

Visualizer

You can use Mouse Data Visualizer made by @arevi to tune your mouse settings.

About

Library to generate human-like mouse mouvement.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages