← Back to team overview

sikuli-driver team mailing list archive

[Bug 1459131] Re: [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed in 1.1.0

 

+++ running this Java
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar -d 3 -c
[debug] RunTimeINIT: loadOptions: check: E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: loadOptions: check: C:\Users\lauffer
[debug] RunTimeINIT: loadOptions: check: C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: fSxBase: E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: runs as sikulix.jar in: E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: exists libs folder at: C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for IDE (build 201506040100)
user.home: C:\Users\lauffer
user.dir (work dir): E:\fre\public\HtmlDevelop\Java\SikuliX
user.name: lauffer
java.io.tmpdir: C:\Users\lauffer\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 8-64 version 1.8.0_45-b15 vm 25.45-b02 class 52.0 arch amd64
app data folder: C:\Users\lauffer\AppData\Roaming\Sikulix
libs folder: C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
executing jar: E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar
*** classpath dump sikulix
  0: /E:/fre/public/HtmlDevelop/Java/SikuliX/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] init user preferences
[debug] IDE: running with Locale: de_DE
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[info] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: ***** Jython sys.path
 0: E:\fre\public\HtmlDevelop\Java\SikuliX\Lib
 1: E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar\Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: ***** Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: VisionProxy.dll
[debug] Mouse: init
[debug] KeyBoard: init
[debug] Screen: initScreens: multi monitor mouse check
[debug] Screen: *** checking: S(0)[0,0 1600x900] center: (800, 450) --- OK
[debug] Screen: *** checking: S(1)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] Screen: *** checking: S(2)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] Screen: *** checking: S(3)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] RunTimeIDE: loadLib: WinUtil.dll
[debug] Jython: requested to use as default region: R[0,0 1600x900]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.7.0 
[debug] ScriptingSupport: initScriptingSupport: added: jython
[debug] ScriptingSupport: initScriptingSupport: warning: org.sikuli.scriptrunner.IScriptRunner: Provider org.sikuli.scriptrunner.JRubyScriptRunner could not be instantiated
[debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[debug] IDE: Adding components to window
[debug] [I18N] menuRecent
[debug] IDE: creating tabbed editor
[debug] IDE: creating message area
[debug] IDE: creating combined work window
[debug] IDE: Putting all together
[debug] restore session: E:\fre\private\HtmlDevelop\Sikuli\autoInstall_EAP_phpStorm.sikuli
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: creating new pane (constructor)
[debug] EditorPane: loadfile: E:\fre\private\HtmlDevelop\Sikuli\autoInstall_EAP_phpStorm.sikuli
[debug] ImagePath: new BundlePath:
/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/
[debug] EditorPane: initBeforeLoad: py
[debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[debug] EditorPane: InitTab: (text/python)
[debug] SikuliEditorKit.read
[debug] Image: loaded: Release Notes Download.png (file:/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/Release Notes Download.png)
[debug] Image: cached: Release Notes Download.png (24 KB) (# 1 KB 24 -- 0 % of 64 MB)
[debug] Image: reused: Release Notes Download.png (file:/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/Release Notes Download.png)
[debug] EditorPane: updateDocumentListeners from: loadFile
[debug] restore session: C:\Users\lauffer\Documents\testWithSikuliX.sikuli
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: creating new pane (constructor)
[debug] EditorPane: loadfile: C:\Users\lauffer\Documents\testWithSikuliX.sikuli
[debug] Image: purge: ImagePath: /E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/
[debug] ImagePath: new BundlePath:
/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/
[debug] EditorPane: initBeforeLoad: py
[debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[debug] EditorPane: InitTab: (text/python)
[debug] SikuliEditorKit.read
[debug] Image: loaded: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Image: cached: 1432712960373.png (10 KB) (# 1 KB 10 -- 0 % of 64 MB)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] EditorPane: updateDocumentListeners from: loadFile
[debug] Image: purge: ImagePath: /C:/Users/lauffer/Documents/testWithSikuliX.sikuli/
[debug] ImagePath: new BundlePath:
/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/
[info] IDE startup:  4,9 seconds
[debug] IDE startup:  4,9 seconds
[debug] Image: purge: ImagePath: /E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/
[debug] ImagePath: new BundlePath:
/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/
[debug] Jython: requested to use as default region: R[0,0 1600x900]@S(0)
[debug] JythonScriptRunner: runPython: running script from IDE: 
C:/Users/lauffer/Documents/testWithSikuliX.sikuli
(u'SikuliX 1.1.0', ' ', 4, ' monitors.')
('----------------- ScreenId = ', 0)
('reg: x, y, w, h = ', 0, 0, 1600, 900)
('reg: x, y, w, h = ', 0, 0, 1600, 899)
[debug] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs
[debug] Region: exists: waiting 3,0 secs for 1432712960373.png to appear in R[0,0 1600x899]@S(0)
[debug] Image: loaded: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Image: cached: 1432712960373.png (10 KB) (# 1 KB 10 -- 0 % of 64 MB)
[debug] Region: exists: 1432712960373.png has not appeared [467 msec]
('----------------- ScreenId = ', 1)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[debug] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs
[debug] Region: exists: waiting 3,0 secs for 1432712960373.png to appear in R[1600,0 1366x767]@S(1)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Region: exists: 1432712960373.png has not appeared [349 msec]
('----------------- ScreenId = ', 2)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[debug] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs
[debug] Region: exists: waiting 3,0 secs for 1432712960373.png to appear in R[1600,0 1366x767]@S(1)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Region: exists: 1432712960373.png has not appeared [342 msec]
('----------------- ScreenId = ', 3)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[debug] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs
[debug] Region: exists: waiting 3,0 secs for 1432712960373.png to appear in R[1600,0 1366x767]@S(1)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png)
[debug] Region: exists: 1432712960373.png has not appeared [349 msec]
[debug] Sikulix: cleanUp: 0
[debug] MenuAction.doSaveAs
[debug] IDE: doSaveAs requested: testWithSikuliX.sikuli
[error] IDE: doSaveAs: testWithSikuliX.sikuli not completed
[debug] save image for copy&paste: 1432712960373.png -> /C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png
[debug] save image for copy&paste: 1432712960373.png -> /C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png
[debug] save image for copy&paste: 1432712960373.png -> /C:/Users/lauffer/Documents/testWithSikuliX.sikuli/1432712960373.png
[debug] MenuAction.doNew
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: creating new pane (constructor)
[debug] FileManager: createTempDir:
C:\Users\lauffer\AppData\Local\Temp\Sikulix_751421408\tmp-380397511.sikuli
[debug] Image: purge: ImagePath: /C:/Users/lauffer/Documents/testWithSikuliX.sikuli/
[debug] ImagePath: new BundlePath:
/C:/Users/lauffer/AppData/Local/Temp/Sikulix_751421408/tmp-380397511.sikuli/
[debug] EditorPane: initBeforeLoad: null
[debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[debug] EditorPane: InitTab: (text/python)
[debug] Image: loaded: 1432712960373.png (file:/C:/Users/lauffer/AppData/Local/Temp/Sikulix_751421408/tmp-380397511.sikuli/1432712960373.png)
[debug] Image: cached: 1432712960373.png (10 KB) (# 1 KB 10 -- 0 % of 64 MB)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/AppData/Local/Temp/Sikulix_751421408/tmp-380397511.sikuli/1432712960373.png)
[debug] Image: reused: 1432712960373.png (file:/C:/Users/lauffer/AppData/Local/Temp/Sikulix_751421408/tmp-380397511.sikuli/1432712960373.png)
[debug] SikuliIDEPopUpMenu: PopMenuAction.doSave
[debug] SikuliIDEPopUpMenu: doSave: entered
[debug] MenuAction.doSave
[debug] EditorPane: saveAsBundle: C:\Users\lauffer\AppData\Local\Temp\Sikulix_751421408\tmp-380397511.sikuli
[debug] ScriptingSupport: transferScript: C:\Users\lauffer\AppData\Local\Temp\Sikulix_751421408\tmp-380397511.sikuli
to: E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli/
[debug] ScriptingSupport: transferScript: completed
[debug] Image: purge: ImagePath: /C:/Users/lauffer/AppData/Local/Temp/Sikulix_751421408/tmp-380397511.sikuli/
[debug] FileManager: deleteFileOrFolder:
C:\Users\lauffer\AppData\Local\Temp\Sikulix_751421408\tmp-380397511.sikuli
[debug] ImagePath: new BundlePath:
/E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli/
[debug] EditorPane: writeSrcFile: monitorsTest.py
[debug] JythonScriptRunner: Convert Sikuli source code E:\fre\private\HtmlDevelop\Sikuli\monitorsTest.sikuli to HTML
[debug] EditorPane: cleanBundle
[debug] EditorPane: parseforImages: in 
E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli
[debug] EditorPane: parseforImages finished
[debug] EditorPane: cleanBundle finished
[debug] SikuliEditorKit.read
[debug] Image: loaded: 1432712960373.png (file:/E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli/1432712960373.png)
[debug] Image: cached: 1432712960373.png (10 KB) (# 1 KB 10 -- 0 % of 64 MB)
[debug] Image: reused: 1432712960373.png (file:/E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli/1432712960373.png)
[debug] Image: reused: 1432712960373.png (file:/E:/fre/private/HtmlDevelop/Sikuli/monitorsTest.sikuli/1432712960373.png)
[debug] EditorPane: updateDocumentListeners from: reparse

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1459131

Title:
  [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed
  in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  update: works with sikulix-1.1.0-20150524.231037-84 (update at
  15-05-27_09-56)

  hi all :) hug :)

  i work with 4 monitors with different resulutions.
  all works in java not in Jython.

  may is should try "beta version is available: SikuliX-1.0.1" ?
  is use Sikuli 1.0.1

  highlight() draw red border for each monitor correct but shows only
  the default monitor inside.

  n = getNumberScreens()
  for ScreenId in range(n):
     reg.highlight(4) #  red frame around for seconds

  i tested with one image.
  my image was not found and clicked at monitor 1,2,3, was found only monitor 1.

  the java version works for me but the Jython version not. i would use
  the Jython version for webinar.

  some additional informations:

  ('----------------- ScreenId = ', 0)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  [log] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs

  ('----------------- ScreenId = ', 1)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  [log] highlight S(1)[320,-720 1280x720] E:Y, T:3,0 for 4.0 secs

  ('----------------- ScreenId = ', 2)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  [log] highlight S(2)[1600,-1080 1920x1080] E:Y, T:3,0 for 4.0 secs

  ('----------------- ScreenId = ', 3)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  [log] highlight S(3)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

  print (Env.getSikuliVersion() )
  n = getNumberScreens()
  for ScreenId in range(n):
      print("----------------- ScreenId = ", ScreenId)
      reg = Screen(ScreenId)
      print("reg: x, y, w, h = ", reg.x , reg.y, reg.w, reg.h)
      x = reg.x
      y = reg.y
      topLeft = Location(x, y) # equivalent to
      topLeft = reg.getTopLeft()
      botRight = reg.getBottomRight()
      h = botRight.y - y
      w = botRight.x - x

      #reg.h = theWidth # equivalent to
      #reg.setH(h)
      #print("     x, y, w, h = ", x, y, w , h)
      reg.setH(h)
      reg.setY(y)
      #print("")
      print("reg: x, y, w, h = ", reg.x , reg.y, reg.w, reg.h)
      #reg.setAsScreen()
     # if ScreenId != 1:
      #    continue
      reg.highlight(4) # dud red frame around for seconds
      #reg.hover(3)

     # reg.selectRegion("middle of region")

      # SCREEN = reg
      #Screen(0).setROI(reg)
      # setROI(reg)
      #mouse = new DesktopMouse()
     # reg.setAutoWaitTimeout(100000)

      if reg.exists("1432671701727.png"):
          print("found at ScreenId = " , ScreenId)
          reg.hover("1432671701727.png")
          sleep(1000)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1459131/+subscriptions


References