← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #244523]: how to just shake the muse

 

Question #244523 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/244523

    Status: Open => Answered

Eugene S proposed the following answer:
You can find the information regarding low-level mouse actions in the docs, specifically here:
http://doc.sikuli.org/region.html#Region.mouseMov


For a simple "shake", you can do this:

loc = Location(Env.getMouseLocation())
loc1 = loc.offset(50,50)
for i in range(2):
	mouseMove(loc1)
	mouseMove(loc)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.