Pycharm Sikulix Script warning Starting message

Asked by matteoa

Hello,
after managing to configure Pycharm, with the instruction together with the clearing of the <appdata>/Sikulix/Lib.
to test it I wrote a very simple script:
import org.sikuli.script.SikulixForJython
from sikuli import *

print("hello")
popup("hello world")
exit(0)
That works.
When I launch the script from within PyCharm I have the message below(including expected "hello" and exit), I tried to start Pycharm as an administrator without any change.
Not a blocking problem, so far.
Thanks for info
Matteo

\jython2.7.0\bin\jython.exe -Dpython.path=C:\TEst\Pycharm C:/TEst/Pycharm/helloworld.py
[error] RobotDesktop: checkMousePosition: should be L(-1152,432)@S(1)[-1920,0 1536x864]
but after move is L(-1306,346)@S(1)[-1920,0 1536x864]
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.
[error] RobotDesktop: checkMousePosition: should be L(1555,91)@S(0)[0,0 1920x1080]
but after move is L(1919,113)@S(0)[0,0 1920x1080]
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.
hello

Process finished with exit code 0

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

looks like a 2 monitor setup?? laptop + 2nd Screen??

Try on laptop only.

what Java?
what Windows?

Revision history for this message
matteoa (matteoa) said :
#2

Hello RaiMan,
this is my setup:
1.1.4-SNAPSHOT-2018-12-03_15:24/Windows10.0/Java8(64)1.8.0_191-b12
Yes, I have a laptop+an external monitor, I just made a test with only the embedded monitor and the messages are only the expected ones.
Since using two monitor makes me work better, and that I do not have any real problem(i.e. the script works), if in your opinion is only a matter of additional warning message I'll continue with my setup.
Else I'll see what to do...Running the same script from within Sikulix IDE these message are not there.
Thanks a lot for your prompt support
Matteo

Revision history for this message
RaiMan (raimund-hocke) said :
#3

ok, you have to experiment a bit with the 2 monitor setup, with what is running where and what is the primary monitor.

I am sorry, but currently I do not have a Windows 10 box, that allows me to attach a second monitor.

Can you help with this problem?

Provide an answer of your own, or ask matteoa for more information if necessary.

To post a message you must log in.