sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50086
Re: [Question #677412]: after sikulix script completes my mouse clicks do not work right via TightVNC
Question #677412 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677412
Status: Answered => Open
Doug Symes is still having a problem:
I only use type() for hitting ESC b/c at one point when I'm clicking on things in the application, the screen switches as if someone hit the Windows key (this could happen in any of several places) so I inserted a check for it and hit ESC to return to the application.
Here is the whole PY file from SikuliX - as you can see I'm almost always looking for images exclusively. I will tack on the log I'm getting periodically for your perusal:
#Launch PowerBI and open the QMG-Live PBIX file.
doubleClick(Pattern("1544653159352.png").similar(0.82))
wait(Pattern("1544656197122.png").similar(0.61),60)
click(Pattern("1544215649288.png").similar(0.80))
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544215829534.png").similar(0.74),5):
click(Pattern("1544215896229.png").similar(0.89),5)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
waitVanish(Pattern("1544216116787.png").similar(0.80),80)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
wait(Pattern("1544216171532.png").similar(0.57),20)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
click(Pattern("1544216198461.png").similar(0.80),20)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544824408767.png").similar(0.80),10):
click(Pattern("1544826489006.png").similar(0.80),5)
else:
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544718781015.png").similar(0.80),1):
click(Pattern("1544718781015.png").similar(0.80),1)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
Found = False
i=0
while i < 5 :
i = i+1
if i>1:
if exists(Pattern("1544718936612.png").similar(0.80),5):
click(Pattern("1544718936612.png").similar(0.78),5)
if exists(Pattern("1544719057841.png").similar(0.82),5):
Found = True
break
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if Found:
click(Pattern("1544719165835.png").similar(0.78),6)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
click(Pattern("1544719189664.png").similar(0.86),6)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544824573671.png").similar(0.80),6):
click(Pattern("1544719214036.png").similar(0.82),6)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
wait(Pattern("1544719259439.png").similar(0.78),180)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
click(Pattern("1544719321513.png").similar(0.75),5)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544719633417.png").similar(0.80),5):
click(Pattern("1544719633417.png").similar(0.80),5)
if exists(Pattern("Server_Desktop.png").similar(0.80)):
type(Key.ESC)
if exists(Pattern("1544826115697.png").similar(0.79),3):
click(Pattern("1544826115697.png").similar(0.79),3)
if exists(Pattern("1544719633417.png").similar(0.80),3):
click(Pattern("1544719633417.png").similar(0.80),3)
if exists(Pattern("1544826115697.png").similar(0.79),3):
click(Pattern("1544826115697.png").similar(0.79),3)
#the end
=================== Sikuli Log File (usually there are not errors) ===============================
[error] script [ C:\Users\biuser\Documents\QMG_Live.sikuli ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last):
File "C:\Users\biuser\Documents\QMG_Live.sikuli\QMG_Live.py", line 2, in <module>
doubleClick(Pattern("1544653159352.png").similar(0.82))
Line 2761, in file Region.java
at org.sikuli.script.Region.wait(Region.java:2761)
at org.sikuli.script.Region.find(Region.java:2326)
at org.sikuli.script.Region.getLocationFromTarget(Region.java:3220)
at org.sikuli.script.Region.doubleClick(Region.java:3767)
at org.sikuli.script.Region.doubleClick(Region.java:3752)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.sikuli.script.FindFailed: FindFailed: 1544653159352.png: (68x89) in S(0)[0,0 1920x1080] E:Y, T:3.0
Line 2761, in file Region.java
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.