Python in sikuli

Asked by merajul haque

Hi

 I am new to Sikuli and Python. Please help me to know about sikuli & python. Also please let me know how can I use python in sikuli. I am using some graphics(cad drawing) to automate which contains options such as zooming, 3D rotation, moving from one position to another position. Please let me know how python could help me in this. ?

Another question is that there is a option to print in cad drawing using the ratios like 1:1, 1:10 etc, Can we use if & else for this to automate. If syes pls let me know the code

Pls let me know the code for all mentioned above.

Pls reply me soon as I am quick reply

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
merajul haque (merajulhaque2009) said :
#1

*Pls reply me soon as I am waiting for quick reply.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

Quick enough ? LOL

-- 1. With Sikuli, it is Python language (level 2.5) you are using to make scripts. But to run the scripts, internally the Jython 2.5.2 interpreter is used (a Java implementation of a Python interpreter). But be aware, that not all things available around the C-based Python is available with Python too. But you may use the Sikuli API also with plain Java or any other Java aware programming/scripting system.

-- 2. So if you want to do more than just playing around, you have to decide about your development environment. And of course no one else will write your scripts. You might get some help for special cases and look at the tons of examples. It does not help: you have to have some expertise with the language you use.
So have a look at the docs as a good starting point: http://sikuli.org/docx/

-- 3. the power of Sikuli
You can automate everything on the screen, based on what you see and what can be done using mouse and/or keyboard.
So you have to start with some easy to build workflow in your application.
So every thing you can do manually with your app, can be scripted with Sikuli and even more based on additional features available in Python or Java.

So when you have done your first steps and really know what you want to do, I am willing to help to get on the final track.
Feel free, to always come back with new concrete questions.
You might even send scripts, screenshots, short workflow movies to my mail at https://launchpad.net/~raimund-hocke all zipped together in one attachment. I will have a look at it and usually come back latest within 24 hours.

But be aware: the more you deliver, the more you will get back ;-)

Can you help with this problem?

Provide an answer of your own, or ask merajul haque for more information if necessary.

To post a message you must log in.