← Back to team overview

sikuli-driver team mailing list archive

[Question #195431]: Script using too much resources

 

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

Hi there,

I'm trying to write a script which waits for a certain text to show up in the Chrome browser and then close the browser.

I wrote one that seems to work, but it uses up so much resources when I run it as an executable (apx. 50% of the CPU time).

This is the script:

Settings.ObserveScanRate = 0.0001

while not exists("Closethiswin.png",10):
   sleep (1)
   
click("1335800413150.png")

Does anyone know how I can rewrite it so as not to use up so much resources?

Kind regards

Buggo


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