Find out accuracy of first sikuli script

Asked by upul indika

Hello,

I'm a newbie to “Sikuli” and to scripting.
I have written two scripts, both fowling tutorials on the sikuli website, but none of them works.
1. First script written was to automatically run spybot.
==============================================================================
doubleclick (spybot icon)
sleep (10)
click (check for porblem icon)
sleep (16) # to avoid temporay files message
wait (fix selected porbelm image, FOREVER)
click (you ware about to remove theses entries, do you want to continue? Image)
click(Yes image)
wait(X porblems fixed image)
clikc(OK image)
clikc (X image)
==============================================================================
Please note I have written the description the image being used as I'm unable to paste the script on here.
2. I have also attempted to duplicate "skype user log off alert" in tutorial section with Lotus same time Instant Messaging, to alert me when a certain user is log off.

While exists (username image)
Sleeps (5)
Popup (“user log off”)
==============================================================================
    Appreciate some input on why those scripts are not working correctly?

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

--- What an where are error messages? What does it mean: but none of them works? symptoms? I am great in guessing, but this is too little information :-(

Revision history for this message
upul indika (upulindika) said :
#2

Script One (to run Spybot automatically)

I would like email or upload a screen dump of the error message, pls porvide a upload location or an email address.

Script two

When script is executed it display the pop message, "user log off", when user is still lactive on IM.

I have attempted both "waitVanish" and "while exists", regardless end result is the same.

===========================================
while exists (user image):
sleep (5)

popup ("user log off"), FOREVER)
pop ("user logoff")

===========================================

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

--- script 1:
use my mail at and send all stuff (especially the .sikuli folder) zipped together in one zip (the more screenshots the better). I will manage ;-)

-- script 2:

this should work:

while exists(user image):
   sleep (5)

pop ("user logoff")

If the message comes, though user still logged on, the image "user image" is not found.
To make it more transparent:

userImg = "captured user image.png"

if not exists(userImg):
    print "user not online"
    exit(1)

while exists(userImg):
   sleep (5)

pop ("user logoff")

So you at least get a message, that Sikuli cannot find the given user image.

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

Can you help with this problem?

Provide an answer of your own, or ask upul indika for more information if necessary.

To post a message you must log in.