sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15642
Re: [Question #219548]: Passing a Region as a arguement
Question #219548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/219548
Status: Answered => Open
William Elmer is still having a problem:
Yes, But Tabing does not work via these question posts. Just tabs out of
the textbox control :$
So in lamens terms, To let a function know I want to use a region as an
arguement, syntactically I use the keyword reg? or is that just a
variable name your defining? Im still new to python coding(c# fan boy
here :P) and very new to sikuli coding.
But the exact way I would do it would be
def myTest(reg, value): ?
Also another question, I understand that python is not a strongly typed
language, So if I push something through to test whether or not it is a
matching region and if not a region do math is that possible?
ex:
def myTest(reg, value):
if reg==screenshot
else
#add value to region each region coords.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.