← Back to team overview

sikuli-driver team mailing list archive

[Question #646890]: averaging numbers

 

New question #646890 on Sikuli:
https://answers.launchpad.net/sikuli/+question/646890

this is the code I'm working with.
"ml = Env.getMouseLocation()
dragDrop(Env.getMouseLocation(),Location(ml.getX()+centerX\2,ml.getY()+centerY/2)) #Center is X607 Y548"

centerX = 607
so it should be whatever the number that comes from the mouses X location plus 607 divided by two.
currently it's adding them together but not dividing by two.
I've played around with the brackets, nothing seems to be working.

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