javascript - Can Sikuli observe changes in mouse pointer? (responsive vs non-responsive mouse) -


i controlling windows gui sikuli (sikuli 1.1.0 , windows 7). annoying thing wizard sometimes needs ages load next stage of wizard , @ instances sikuli script crashes because not wait it. during these lag times spinning windows circle mouse. worse, happens "next" button appears (the 1 waiting sikuli) mouse not ready yet click , still in spinning circle mode 20-30s. not want specify 30s wait times @ every stage in wizard because unnecessarily , massively slow down script execution; because of time not need it.

there similar issue reported here: how sikuli wait until mouse pointer changes "busy" "not busy?"

i wondering whether there update issue? can sikuli recognize if mouse still in spinning-circle non-responsive mode , wait until mouse normal?

i don't believe sikuli supports functionality, can work around this, in way.

use exact matches, you'll have loop until field trying type has changed blank field text in it(or whatever elements changing). once have detected change, know things no longer locked up.

but you'll stuck looping , performing actions in loop until can detect actions trying perform have stuck.

here basic class can use handle this.

class element:     def __init__(self, element, region):         self.element = element         self.region = region      def statechanged(self):         if self.region.exists(pattern(self.element).exact()):             return false         return true  gmailemailfield = element("1458930208197.png", region(438,239,388,342))  while not gmailemailfield.statechanged():     wait(.5) 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -