How to use exact()?
I'm trying to automate the running of SurCodeDTS from a batch file (it has no command-line interface, not even keyboard shortcuts!). After starting SurCodeDTS from the batch file, I can get Sikuli to click the 'Encode' button to start encoding, but I need to know when SurCodeDTS has finished encoding so I can close it (with Sikuli) and continue my batch file.
Once SurCodeDTS starts encoding, the 'Encode' button becomes greyed-out. So I tried this Sikuli instruction:
wait({screen-grab of Encode button}, 300)
but Sikuli ended before SurCodeDTS had finished encoding. I suspect Sikuli was finding a match with the greyed-out Encode button. So my next attempt was to use the exact() function, like so:
wait(exact(
but then Sikuli generated an error box saying "... NameError: name 'exact' is not defined"
I can program assembler and C, but have no experience with Python/Jython. The Sikuli documentation seems to assume the user will be a Python programmer, so I'm lost.
Please explain how to use the exact() function to ensure Sikuli only terminates the wait() when an exact match is found (not the greyed-out button).
Thanks, Daniel
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: