← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #215980]: having trouble with targetOffset

 

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

Description changed to:
I have a flash/flex window which gets launched when i click a button(i
am coming via a different application to the flash app)

1.I am maximizing my flash page and when i record the starticon via sikuli ide and play back it play backs nicely with out any problem,But now i am trying to keep the "start_icon.png" in my img directory and i try to access the same and it is not able to identify the actual object. Is there a way to identify what is the exact value we need to give for targetoffset's X and Y Values.
Or it is always a guess and try and try.......(i mean no defined method for that)

static Screen s1 = new Screen();
Pattern startIcon = new Pattern(path + "\\" + "start_icon.png");
startIcon = startIcon.targetOffset(0, 10)
s1.click(startIcon);

i am using windows 7 OS

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