← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677011]: VNCScreen.wait() does not catch image change

 

Question #677011 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677011

RaiMan proposed the following answer:
With the latest build from today, this snippet: (build#167)

      Debug.on(3);
      VNCScreen vs = VNCScreen.start("192.168.2.121");
      Region reg = vs.newRegion(0, 0, 1500, 300);
      reg.find("vncChrome");
     System.exit(0);

gave this log:

CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
[4662 debug] VNCScreen: start: R[0,0 1920x1200]@S(VNC 192.168.2.121:5900)
[4733 debug] Image: loaded: vncChrome.png (file:/Users/raimundhocke/IdeaProjects/sikulix1/API/src/main/resources/ImagesAPI/vncChrome.png)
[4733 debug] Image: cached: vncChrome.png (19 KB) (# 1 KB 19 -- 0 % of 64 MB)
[4733 debug] Region: find: waiting 0 secs for vncChrome.png to appear in R[0,0 1500x300]@S(VNC 192.168.2.121:5900)
[4737 debug] VNCScreen: capture: (0,0) 1500x300 on R[0,0 1920x1200]@S(VNC 192.168.2.121:5900)
[4743 debug] RunTimeAPI: libsExport: folder exists: /Users/raimundhocke/Library/Application Support/Sikulix/SikulixLibs (1.1.4 - 201812311549)
[4746 debug] RunTimeAPI: loadLib: libopencv_java342.dylib (success)
[4748 debug] Finder2: makeMat: INT_RGB (1500x300)
[4762 debug] Finder2: makeMat: 3BYTE_BGR (74x88)
[4764 debug] Finder2: doFind: start (stdDev: 161,6029 mean: 317,441032)
[4814 debug] Finder2: doFind: in original: %100,0000 (?70) 48 msec 
[4815 debug] Finder2: doFind: end 49 msec
[4818 debug] Region: find: vncChrome.png appeared (M[836,3 74x88]@S(VNC 192.168.2.121:5900) S:1,00 C:873,47 [83 msec])
[4819 debug] RunTimeAPI: ***** final cleanup at System.exit() *****
[4819 debug] VNCScreen: stopping all
[4819 debug] VNCScreen: stopping: R[0,0 1920x1200]@S(VNC 192.168.2.121:5900)
[4834 debug] FileManager: deleteFileOrFolder:
/var/folders/pc/t43tqvr56xx7kxz3m6z5g4rw0000gn/T/Sikulix_694096369

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.