How to see execution image in Eclipse console editor

Asked by chandan parida

Hi RaiMan,
Hope you are doing well..

 We have setup our execution env, as (Eclipse with pydev and sikuli) in Eclipse console we want to see the execution image at present we are able to see the execution log which we have given as print statement but our requirement to see the execution image in Eclipse console log.Please help us.

Thanks
Chandan

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

Supposing you are talking about the image, that is used for an implicit (e.g. with click()) or explicit find operation (like find, wait, ...), I have to say sorry.

currently there is no option, that allows you to simply get the used image's filename to stdout.

This will only be available beginning with version 1.1.0 in a few weeks (currently still no beta, sorry).

the only rather easy way is to make 3 tiny wrapper functions and generally use these.

def myFind(img, reg=SCREEN):
    print "myFind: using: " + img + " in: " + reg
    return reg.find(ing)

def myWait(img, time, reg=SCREEN):
    print "myWait: using: " + img + " in: " + reg
    return reg.wait(img, time)

def myExists(img, time, reg=SCREEN):
    print "myExists: using: " + img + " in: " + reg
    return reg.exists(img, time)

with the usage:
if (myExists(some_image, 0, some_region)):
    click(myFind(some_other_image))
else:
    myWait(some_other2_image, 10)

In the above functions you have every option, to pimp your printout.

Can you help with this problem?

Provide an answer of your own, or ask chandan parida for more information if necessary.

To post a message you must log in.