Re: [Sikuli-driver] [Question #269110]: [1.1.0] observe: Handler Type test

2015-07-13 Thread Tetsuo
Question #269110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269110

Status: Answered = Solved

Tetsuo confirmed that the question is solved:
Thanks RaiMan. 
Ill keep an eye on the nightly build page and will use your solution for now.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269110]: [1.1.0] observe: Handler Type test

2015-07-13 Thread RaiMan
Question #269110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269110

Status: Open = Answered

RaiMan proposed the following answer:
Sorry for misleading you --- was more hope than reality ;-)

I have still to implement getType() and of course update the docs.
You then will be able to say besides getType() returning a string:
isAppear(), isVanish(), isChange() returning True or False
I will do that as soon as possible. 

Watch out on the nightly build page for a fix:
added: observe handler: getType()

For now, this is possible:

if str(e.type) == APPEAR:

same for VANISH, CHANGE and GENERIC (mouse moved handler)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269110]: [1.1.0] observe: Handler Type test

2015-07-11 Thread RaiMan
Question #269110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269110

Summary changed to:
[1.1.0] observe: Handler Type test

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269110]: [1.1.0] observe: Handler Type test

2015-07-11 Thread Tetsuo
Question #269110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269110

Status: Answered = Open

Tetsuo is still having a problem:
Humm..sorry if its to obvious, but what is ObserveEvent?
I thought the handler receives SikuliEvent as a parameter.

Also,

event.getType() does not seen to work. Here is my code

def MyHandler(event):
  
print event.type #prints VANISH
event_type = event.getType()
print event_type #prints nothing.

 if event.type == ObserveEvent.VANISH
   print  #prints nothing

Thanks.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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 #269110]: [1.1.0] observe: Handler Type test

2015-07-11 Thread Tetsuo
Question #269110 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269110

Tetsuo gave more information on the question:
Im using 1.10 btw. Thanks.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which 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