Re: [Sikuli-driver] [Question #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

Status: Answered = Solved

Leif confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

RaiMan proposed the following answer:
ok, I will make that gimmick optional ;-)

watch out for the fix on nightly build (maybe Monday) that says:

added: Mouse.setMouseMovedHighlight(true/false), where true will be the
default.

You would then have to say:
 
Mouse.setMouseMovedCallback(handler)
Mouse.setMouseMovedHighlight(false)

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

RaiMan proposed the following answer:
By the way:
I feel horrible to nag you with all these follow-up questions; hope you dont 
mind!

... not needed in any case.
If you have questions or suggestions, just post them, without any bad feelings.
Especially suggestions at no time are something like torture for me. I am 
happy, that people are using SikuliX, are talking about their use cases and 
make suggestions or ask questions.

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

2015-07-08 Thread Leif
Question #268981 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268981

Leif posted a new comment:
Once again thanks! Works exactly as intended. I feel horrible to nag you
with all these follow-up questions; hope you dont mind! My secondary
software is, like sikuli, a program that reads the screen and is
sensitive to changes, popups, animations etc.

As the script above is performed, another sikuli process is started
(lasting less then 1 second) creating two red squares (1 smaller, 1
bigger) to indicate where the mouse is. Would it be possible to disable
these two red square animations as they could easily disturb my
secondary script.

Sorry to be such a nag about the details!

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

Status: Open = Answered

RaiMan proposed the following answer:
def handler(e):
  loc = Mouse.at() # store current location
  wait(3)
  for i in range(5):
if loc.equals(Mouse.at()): # if current location == stored loc, the leave 
loop (not moved during the last 3 seconds)
  break;
loc = Mouse.at()
wait(3)

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

Status: Open = Answered

RaiMan proposed the following answer:
With latest builds of version 1.1.0 you can do the following:

# somwhere before your main workflow starts:

def handler(e):
  wait(3)
  
Mouse.setMouseMovedCallback(handler)

With each mouse action done by SikuliX, it is checked, wether the mouse is 
still in the place, where it was left with the last moose action before.
If the mouse is found somewhere else, it is supposed, that the mouse was moved 
by some Sikuli-external process or the user.

Among other options you can define a handler callback), that is called
in this case.

In your case you want to pause any Sikuli activities for 3 seconds,
which is done by the wait(3).

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

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

Summary changed to:
[1.1.0] Mouse interrupt action after mouse was moved externally by user or 
other process 

-- 
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 #268981]: [1.1.0] Mouse interrupt action after mouse was moved externally by user or other process

2015-07-07 Thread Leif
Question #268981 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268981

Status: Answered = Open

Leif is still having a problem:
Brilliant really! Works very well! I've got a followup question if you
dont mind. As you mention, sikuli recognized if the mouse is still in
place or have been moved from where sikuli left it. My secondary program
will override the cursor controll anywhere from 3 seconds up to 15. If
it uses 3 seconds, It's all good. If it uses 6 example, sikuli will gain
controll for a second before letting go again.

I'm curious if sikuli could during the wait(3) could update the cursors
location and see if It's moved. if it have, then wait another 3 seconds,
create a new keypoint; if moved; wait another 3 seconds and so on.

-- 
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