← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #185748]: What can VDict() be used for and where can I find the documentation?

 

Question #185748 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185748

Summary changed to:
What can VDict() be used for and where can I find the documentation?

Description changed to:
I could not find documentation on VDict() functionality on skuli.org or
google. I blame myself. The sikuli website says:

Getting Help

Looking for specific information?

Try the Table of Contents
Look through the Index
Use the Search Page

I type "VDict" in the search and get no documentation on the subject.
The "index" contains no information on the subject. I still blame myself
for being too slow to learn. Please don't just paste the link for the
documentation. Also, show me how you found it.

On another note: if someone can nail it to my head why they put a zero
when using vdict functionality, I promise I won't sue you for assault
and battery.

size = VDict()
size[<img>] = "88x31"
size[<img>] = "97x61"
size[<img>] = "120x30"
size[<img>] = "120x60"
size[<img>] = "120x90"
size[<img>] = "300x100"
size[<img>] = "300x250"
size[<img>] = "680x180"

img = find(img)

result = size[img] VS result = size[img][0] // in layman's terms, please
explain the difference. What content will "result" variable display in
each scenario. Thanks in advance!

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