← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #702646]: Optimizing resource usage

 

Question #702646 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702646

    Status: Answered => Open

cemara is still having a problem:
Sorry for the late reply, I was looking for AIO device strong enough for this and can be powered by POE.
I ended up with Asus V161.

Now I think this code can run :

HomeAssistant = App(r"c:\HA\Home_Assistant.exe")
Settings.WaitScanRate = 0.5
while True:
  Region(1381,22,519,964).inside().wait("1659658059381.png", FOREVER)
  while exists("1659658059381.png", 0):
    wait(3)
  HomeAssistant.focus()

But there's an issue, the first time the code runs, it works properly with this flow :
1. Home assistant running, skype running in background
2. Make skype call from phone, sikuli detects (red hangup button)
3. Wait until red hangup dissapear, bring Home assistant to front.
The issue is,
4. Second time I make skype call, skype call window wont go up, it stays in the background, 

Seems like Home assistant window is always is front after the first time code is running.
Any idea why? 
If I put end, it would terminate the monitoring process..

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