Re: [Sikuli-driver] [Question #402950]: Not able to switch between different instances of same application using App.focus()

2016-10-15 Thread masuo
Question #402950 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402950

Status: Open => Needs information

masuo requested more information:
Please explain system environment(Windows/Mac OSX) and SikuliX version.
The Application Class is depend on environment.
http://sikulix-2014.readthedocs.io/en/latest/appclass.html?highlight=focus

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #403018]: Pass value from handler (on appear) to main script

2016-10-15 Thread masuo
Question #403018 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403018

Status: Open => Answered

masuo proposed the following answer:
My sample codes may help you.

def handler(event):
global count
event.stopObserver()
count = count + 1
msg = "count=%d" % count
popup(msg)
observe(FOREVER, background = True)

onAppear("image.png",handler)
observe(FOREVER, background = True)
count = 0
while count < 10:
   popup("Dummy popup")
stopObserver()

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #402582]: open command box as timer.

2016-10-15 Thread Launchpad Janitor
Question #402582 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402582

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #403018]: Pass value from handler (on appear) to main script

2016-10-15 Thread spyros-liakos
Question #403018 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403018

Status: Needs information => Open

spyros-liakos gave more information on the question:
Thanks for replying..!

I want to observe always for an error popup in the program i use. The
error is a internet connection error. If this happen i know how to wait
and solve it. But then i want the script to start from the begin..

For example i got this:

def start():
click("start.png")

def play():
click("play.png")

def finish():
click("close.png")


#begin the script

for x in range(100)
if error = True:
finish()

   start()
 
if error = True:
finish()

play()

if error = True:
finish()

finish()


#the observe always

def handler():
error = True
#some function to solve the error

onAppear("error.png", handler)
observe(FOREVER)
while True:
observe()


My think is to have an "if" before every function and if value "error =
True" will pass all functions and start from the begin of the loop.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #403038]: How to select a item on a really long drop down list on a webpage

2016-10-15 Thread masuo
Question #403038 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403038

Status: Open => Answered

masuo proposed the following answer:
[my workaround:]
If I were you, I use Selenium WebDriver with SikuliX.
When I want to count items of dropdown list, I will use Selenium WebDriver API.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp