← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #645666]: drag and drop from mouse current location to center of screen

 

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

    Status: Open => Answered

Manfred Hampl proposed the following answer:
in https://answers.launchpad.net/sikuli/+question/643830 you had

ml = Env.getMouseLocation()
print ml
print ml.getX()
print ml.getY()

If you now omit the first line of that block, you will of course get an
error "name 'ml' is not defined"

Try
dragDrop(Env.getMouseLocation(),Location(640,512))

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.