← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676720]: How exactly does onChange() work

 

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

ONG YI CHONG posted a new comment:
Hey RaiMan, i was just thinking if i want to detect changes in UI
elements completely (with transition effects), would it be better if i
coded a function such that at  t = 0 (when i click the UI element) i
capture the current screenshot, and then at t = 0.1, i capture another
screenshot and compare the similarities between the two screenshots.

I was thinking of something like:
take old screenshot
wait(0.1)
take new screenshot
compare screenshots. 

With this function i am assuming that all UI elements transition will
complete within 0.1s. Whereas the handler() in the onChange() function
could be called between t = 0 and t = 0.1, and during that time the
transition effect may not have fully completed ?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.