How to draw Concentric circle using mouse in MSPAINT

Asked by Brijesh Gupta

Hello,

In my project i want to draw circles in MSPAINT.

Steps:
1. Mouse Left click and draw Concentric circle.
2. During drawing user will hold the left mouse button.
3. once the Concentric drawn user will release the "Mouse left Button".

Please help me out.

I am using WIN7-64 PC and Sikuli (1.0RC3), JPYTHON (Python 2.5.1, JAVA 6).

Thanks in advance.

Regards,
Brijesh

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Brijesh Gupta
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

You have to simulate the mouse actions a user is doing with the mouse features.

Locations on the screen, where to click or move the mouse to, have to be calculated in this case.

in meta code:
- activate the ellipse drawing
- start: calculate where to start drawing (top left corner of surrounding rectangle having the given center - gives some trigonometric evaluation)
- end: same way calculate the bottom right endpoint, to get the circle in the wanted size
- move mouse to start point
- press and hold left mouse button together with shift
- move mouse to end point
- release mouse and key

Revision history for this message
Brijesh Gupta (bijeshgupta) said :
#2

Thanks a lot Raiman for your information.