Fundamental question on using Sikuli

Asked by Sahil Dev

1) As I see, Sikuli is based on "image recognition approach". In that case, it is compeltely "independent" of the technology with which my application has been developed in. This is because, I intend using Sikuli for creating automated tests in several of my Engineering applications that I use.

One of my application is a very old Engineering analysis application written in Fortran wheras another application is quite recent developed in C++ , .NET framework.

So, since Sikuli cocnept based on image comaprison and then peoforming keyboard/mouse action on objects, it does not matter at all if my application is developed in Fortran or .NET framework. AM I RIGHT?

I have not yet started using Sikuli but understanding the basics before I dive in and start swimming.

2) As I understand Sikuli is based on image recognition approach.

I have not yet started using Sikuli but understanding the basics before I dive in and start swimming.

Canyone just explain to me the approach (steps) Sikuli code will follow to do the follwoing

a)Go to start button on my computer
b) Open Miocrosoft word
c) Go to file ->Open
d) Go to C:\my_files and open a word file abc.docx

I just want to undestand the approach clearly on what images will eb compared in the above steps and how the image comparison will be used to peform keyboard/mouse actions.

I shall be grateful if someone just explains the approach relative to the above simple steps. Please can someon help?

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
RaiMan (raimund-hocke) said :
#1

at 1: yes

at 2: just start playing around with the SikuliX IDE to learn the basics and understand how it works. Or look at the tons of examples in the net.

Revision history for this message
Sahil Dev (sahildev80) said :
#2

Thanks a lot.

at 2) Yes, I understand that working hands on is the best way to learn but I have to sort out a few IT permissions needed before I install Sikuli. So, in the meanwhile (for my curiosity and to explain my point of view better) is it pssible to briefly explain 2 or refer me to clear descriptive very simple example?

Revision history for this message
RaiMan (raimund-hocke) said :
#3
Revision history for this message
Eugene Maslov (emaslov1) said :
#4

click("start.png") # make png of start btn with Sikuli IDE
wait(1)
type("Word")
wait(3)
type(Key.ENTER)
wait("file.png", 15) # make png of file menu item btn with Sikuli IDE
click("file.png")
click("open.png") # make png of open menu item btn with Sikuli IDE
wait("file_name.png",5) # make png of "file name" label of the dialog with Sikuli IDE
type('d:\\file1.txt'+Key.ENTER)
wait(3)

Revision history for this message
Sahil Dev (sahildev80) said :
#5

Thanks a million

Can you help with this problem?

Provide an answer of your own, or ask Sahil Dev for more information if necessary.

To post a message you must log in.