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

I want to take the output for a screen element like this:

M[1082,813 295x37]@S(S(0)[0,0 1920x1200]) S:1.00 C:1229,831 [-1 msec]

And split it up so I can extract the   S:1.00   part.

I tried this:

available = list(findAll("nomoreupdatesavailablethiscycle.png"))
numAvail = len(available)
print numAvail

print available[0]
s=available[0]
a,b,c,d=s.split(" ")
print d

But got this error:

[error] Error caused by: Traceback (most recent call last):
  File  line 68, in <module>
    a,b,c,d=s.split(" ")
AttributeError: 'org.sikuli.script.Match' object has no attribute 'split'

Is there some what to either do like a C strstr pattern recognition
or some way to tokenize the string ?  

Thanks.


-- 
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

Reply via email to