Sikuli mouse movement location
Asked by
caleb snodgrass
Hey guys,
Ok I have a script for a game which is a 2.5D game. I am harvesting some wheat, which i have coded myself, easily enough.
Now my problem is that when it clicks on one wheat it harvest it and when it goes to click on another wheat it selects a random wheat on the map. I would like it to select the wheat that is already closest to the mouse to reduce the time of my character running.
Is there a mouse location script to find location of my mouse and then run my while loop again to select the closet wheat to my character?
I hope this all makes sense.
-Caleb
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask caleb snodgrass for more information if necessary.
To post a message you must log in.