Re: [Sikuli-driver] [Question #460620]: How to use function if

2017-02-23 Thread Javier Gómez
Question #460620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/460620

Status: Answered => Solved

Javier Gómez confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #460620]: How to use function if

2017-02-19 Thread dinev
Question #460620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/460620

dinev proposed the following answer:
Just to support RaiMan - we can give you "if" exaple but you will stuck
almost immediately with another basic problem

However, here is something that will help you with your question 
https://www.tutorialspoint.com/python/python_if_else.htm

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #460620]: How to use function if

2017-02-15 Thread RaiMan
Question #460620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/460620

Status: Open => Answered

RaiMan proposed the following answer:
I am sorry, but I have stopped doing things like that, because it takes
no end usually: writing the scripts is not my job.

For "if exists()" there are tons of examples in the net.

... and again: you need some basic knowledge. If you do not have the
time to get it, then you should try another way.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #460620]: How to use function if

2017-02-15 Thread Javier Gómez
Question #460620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/460620

Status: Answered => Open

Javier Gómez is still having a problem:
Hi RaiMan,

At first, thanks for answer my question. 
Instead of learn all about Python language (I wish learn it, but I really have 
no time) could you give me an example of this language element?

I wish you could help me with this topic. I want to create a job on
Sikulix to automatically do a process once it detect the image and in
case that the image doesnt exist follows another path.

Thanks a lot in advanced.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #460620]: How to use function if

2017-02-15 Thread RaiMan
Question #460620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/460620

Status: Open => Answered

RaiMan proposed the following answer:
"if" is not a function, but a language element of Python scripting
language, that allows to add branches to your workflow based on
decisions.

If you want to create more complex scripts, you have to get some basic 
knowledge about the Python language.
There are tons of tutorials in the net.

Only with "scripting by example" you will not get very far and finally
end in the pool of frustration.

Nevertheless: have fun with SikuliX.

Of course you should have read at least across the docs of SikuliX:
http://sikulix-2014.readthedocs.io/en/latest/index.html

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #460620]: How to use function if

2017-02-15 Thread Javier Gómez
New question #460620 on Sikuli:
https://answers.launchpad.net/sikuli/+question/460620

Hi,

I´m trying to use the function "if". I have read in other answer that is 
necessary to use the function if not exists (__,__) but I did not know how to 
use it. 
I do not know almost anything regarding programming language but I need to 
understand how it works this function.
What I am trying to do is that the system select an image and if exists the 
system follow one path and if it does not follow another different. 
I would be grateful if anybody can help me with this.

Thanks a lot in advanced

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp