getting y and y of key down arrow
On the windows I have program that have the list
that list have number and the name
here is link to image to see it http://
here is code:
click(Pattern(
type(
type(Key.DOWN)
type(Key.DOWN)
#now Im on the first item in list and it is highlighted
What I want is when it comes to highlighted item that have number greater then 1.5 I want to stop
what I do now is giving some number like 90 and it takes first 90 items, but sometimes there are no
items more like 15 items, so this more like temporary solution.
and here onder is code how it is.
keyDown(
for i in range(howMuchOf
sleep(3)
keyUp(
What I tried is to get from type(key.Down) position of highliting, but there is no object like that and here is the code:
nidus_point = type(Key.DOWN)#key down to select them all
myX = nidus_point.getY();
myZ = nidus_point.getX();
print myX
print myY
if I get y and x of that I could go from that point as offset to check if there is 1.5 as image.
so any ideas would be nice,
thank you
Daka
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask daka for more information if necessary.