Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
charliedaps posted a new comment:
A big thanks.
Everythink is OK.
Have a good day.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
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 #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
Rainer proposed the following answer:
This structure is identical to your structure.
Now you can start "populating" this barebone structure with your code,
line by line, and run it after each addition. So
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 #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
charliedaps posted a new comment:
Thanks for your help
Yes it works.
I have the same result.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
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)
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
Rainer proposed the following answer:
The following code:
for i in range(4):
print(i)
if i % 2:
print("is odd")
else:
print("is even")
should result in the following output:
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
charliedaps posted a new comment:
Thank you very much for this explanation.
Indeed, I did not find this information. While I applied it for the
else.
One more question, it does not work.
He does not start
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
Rainer proposed the following answer:
Your code should look like this:
for i in range(200):
click(1006,748)
click("1551707620478.png")
type(Key.ENTER)
type('c', KeyModifier.CTRL)
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
charliedaps posted a new comment:
Thanks for your quickly anwser.
for i in range(200):
click(1006,748)
click("1551707620478.png")
type(Key.ENTER)
type('c', KeyModifier.CTRL)
click("1551704040161.png")
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
Rainer proposed the following answer:
You have to indent the whole code within the "for" block, in the same
way as you do with the "if" block.
This is a quite basic Python question by the way, and has
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
Status: Open => Answered
RaiMan proposed the following answer:
you have to understand python indentation!
faq 1800 might help
--
You received this question notification because your team Sikuli
Question #678932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678932
charliedaps posted a new comment:
I have read this link
https://answers.launchpad.net/sikuli/+faq/1437
but i don't understeend
I have this message
[error] script [ hope ] stopped with error in line 2 at
New question #678932 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678932
Hello,
I know it's totally stupid but I can not do repeat.
Here is my code.
I would like it to be repeated 200 times.
click(1006,748)
click("1551707620478.png")
type(Key.ENTER)
type('c', KeyModifier.CTRL)
Public bug reported:
currently the plan is to base the implementation on py4j
some things have to be changed and added in SikuliX.
** Affects: sikuli
Importance: Medium
Assignee: RaiMan (raimund-hocke)
Status: In Progress
** Changed in: sikuli
Status: New => In
Question #678874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678874
RaiMan posted a new comment:
fully agreed
see: bug 1818514
watch the achievements there and optionally add ideas and/or comments
--
You received this question notification because your team Sikuli
Question #678874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678874
Rainer posted a new comment:
Thanks, Raiman, for your explanation.
Avoiding with: blocks altogether is easily doable. They are just a quite
"pythonic" shortcut, and I like to use them when they come handy.
Question #678874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678874
Status: Answered => Solved
Rainer confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because your team Sikuli Drivers
is an
Question #678873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678873
RaiMan proposed the following answer:
There should be another entry in the File menu: Export as jar
This creates a jar, that contains the compiled sources and the images and can
be run with plain Jython
Question #678873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678873
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, no currently.
... but with 1.1.4, there is no longer a setup needed.
If you want to run scripts, you need a valid Java and have to
Question #678873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678873
Status: Answered => Open
Theofanis Vlachos is still having a problem:
So, is there any other way to run the script without installing SikuliX?
--
You received this question notification because your
Question #678873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678873
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, but the feature is no longer supported and even switched off in
1.1.4
--
You received this question notification because your team
Question #678874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678874
Status: Open => Answered
RaiMan proposed the following answer:
I am sorry for the confusion.
After looking again into the code, I had to realize, that the support for with
(__entry__, __exit__) is
Question #678874 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678874
Status: Solved => Open
Rainer is still having a problem:
Not a problem. I just was not aware of this behavior, because the SCREEN
object is described everywhere as "constant".
I noticed an unexpected
Question #678873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678873
Status: Needs information => Open
Theofanis Vlachos gave more information on the question:
I have version 1.1.2 so I went to File-> Export as runnable jar.
I also tried creating the script using the
Question #678543 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678543
Status: Needs information => Expired
Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.
--
Question #678497 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678497
Status: Needs information => Expired
Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
state without activity for the last 15 days.
--
Question #678869 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678869
RaiMan proposed the following answer:
Tried on my macOS 10.14: works as expected: (latest 1.1.4)
switchApp("textedit"); wait(1)
type("/Users/abc/Desktop/a_b_c/File1")
had to switch the keyboard though to
39 matches
Mail list logo