← Back to team overview

sikuli-driver team mailing list archive

[Question #264559]: Find of Windows' Start icon finds one in IDE script first

 

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

I have a script that begins with the Windows' Start icon as an anchor used to find an app icon to the right:
    find(<Start icon>).right().highlight(2)

I added the highlight because most of the time, the Start icon wasn't being found (Windows 7 with Aero transparency off).  Turns out that the icon in the IDE script was being selected even though the IDE had already closed itself:  the highlight was to the right of wherever the icon had been in the script.

Some successful workarounds:
1. Begin the script with "wait(0.1)"
2. Put the IDE on a secondary monitor enough to get the Start icon in the script off the primary monitor
3. Scroll the script window so that the Start icon in the script is not visible

Am I missing something about startup?  The behavior is consistent:  if the script shows the Start icon on the primary monitor, it will be selected regardless of which side of primary monitor has the toolbar; if not, the toolbar Start icon is selected.

Thanks,
Mike

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