how to detect when screen changes - java
I'm trying to determine the refresh rate of an animation so I need to test when the region changes. I wrote this code in Java to measure how frequently the screen is changing.
Region reg = new Region(
reg.waitVanish(
But this crashes with below.
[error] Region: doFind: invalid parameter: org.sikuli.
[error] ***** Terminating SikuliX after a fatal error 999 *****
It makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
I set debug=3, but it didn't show anything else. I changed the code to be
reg.waitVanish(new Pattern(
and this WORKS! but it is very slow, because of writing disk files.
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: