Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Answered => Solved
Marc Summers confirmed that the question is solved:
Thanks again Mike:
It works great!
Thanks for all of your help. :)
--
You received this question notification because
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Open => Answered
Mike proposed the following answer:
I'm strictly Windows but normally you would do something like:
type("4", Key.SHIFT + Key.CMD)
--
You received this question notification
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Solved => Open
Marc Summers is still having a problem:
Wow! Thanks Mike for all of your help.
I found that the syntax mouseMove(Location(x, y))
works OK on the Mac and should work on Win 10
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Mike posted a new comment:
More apologies: I see now it works for Take Screenshot ie an image. That
makes sense. For a region or location there is no find involved so no
lastMatch. For an image there must be
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Mike posted a new comment:
Apologies Marc, I just tested that code again and it doesn't work on
Windows 10 now.
It's fine with a region but a location or an image give something like this:
[error]
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Mike posted a new comment:
Marc, you can control the mouse in different ways. For example this code
moves the mouse to a location and after a while clicks on that screen
position.
hover(Location(1308, 821))
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Answered => Solved
Marc Summers confirmed that the question is solved:
Thanks for your help.
It is much appreciated.
I have much to learn about Python and Sikuli.
So far I am finding it very
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Mike posted a new comment:
Also : do you need to actually move the mouse?
If for example you want to click on something, Sikulix will move the
mouse for you in order to perform the click action.
--
You
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Open => Answered
RaiMan proposed the following answer:
the same effort in the SikuliX docs together with my hints would have
revealed:
mouseMove(Location(x, y))
--
You received this question
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Marc Summers posted a new comment:
I was just now doing some additional research and it looks like
I might be able to use PyAutoGUI module.
Here is an example code piece:
XY coordinates have 0, 0 origin at
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Answered => Open
Marc Summers is still having a problem:
Yes Sir, I did read the document, and did a lot of other research on this
also. :)
I have used the OffSet method quite a bit in the
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Open => Answered
RaiMan proposed the following answer:
Did you really read the docs?
what you have is the offset variant.
the usage is the same as with click and all the other mouse actions.
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Needs information => Open
Marc Summers gave more information on the question:
So is it as simple as this:
given a screen resolution of 1920 x 1200
mouseMove(0,0)
or
mouseMove(1896,0)
or
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Open => Needs information
RaiMan requested more information:
the docs say:
PSMRL – a pattern, a string, a match, a region or a location that evaluates to
a click point.
What is the problem?
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Answered => Open
Marc Summers is still having a problem:
mouseMove(PSRML)
Is there an example usage of this command syntax somewhere ?
Thanks for your help.
--
You received this question
Question #678936 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678936
Status: Open => Answered
RaiMan proposed the following answer:
what about that ;-)
https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.mouseMove
--
You received this question notification
New question #678936 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678936
Is there a command such as mouseMove that can move the mouse to an absolute
position
such asmouseMove(0,0) not regarding the current position of the mouse?
I need to be able to move the cursor ie(mouse)
17 matches
Mail list logo