← Back to team overview

sikuli-driver team mailing list archive

[Question #150770]: Using random.choice with pictures

 

New question #150770 on Sikuli:
https://answers.launchpad.net/sikuli/+question/150770

Hi,

I was wondering if their was a way to use this command for pictures instead of a letter?

I had the idea to use eventually something like that:

#import random

a = (picture)
b = (anotherPicture)
c = (otherPicture)

d = random.choice('abc')
click(d)

But it was with no success...
It's only returning the value a, b, or c if I popup it..

Thanks if you have an idea.

Romain


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.