← Back to team overview

sikuli-driver team mailing list archive

[Bug 1418877] [NEW] [1.0.1] MultiMonitor: Java NPE when mouse is in other screen than the found match to be clicked

 

Public bug reported:

---- finding from related question comment #5
I found the reason. I am using Sikuli on the laptop with 2 displays. So when the script is running and the button is found, if the mouse is in another screen then the error happens; if the mouse is in the same screen with the button, then no problem.

-------------------------------------

Run with below script using sikuli on win7 SikuliX-1.0.1

Algo_reg=Region(x,y,w,h)
Algo_reg.click(Pattern("InspectionPlane.png").similar(0.80).targetOffset(300,0))

preview of the image could display, while system prompt the error
message to say [error] java.lang.NullPointerException (
java.lang.NullPointerException )

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Description changed:

+ ---- finding from related question comment #5
+ I found the reason. I am using Sikuli on the laptop with 2 displays. So when the script is running and the button is found, if the mouse is in another screen then the error happens; if the mouse is in the same screen with the button, then no problem.
+ 
+ -------------------------------------
+ 
  Run with below script using sikuli on win7 SikuliX-1.0.1
  
  Algo_reg=Region(x,y,w,h)
  Algo_reg.click(Pattern("InspectionPlane.png").similar(0.80).targetOffset(300,0))
  
  preview of the image could display, while system prompt the error
  message to say [error] java.lang.NullPointerException (
  java.lang.NullPointerException )

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

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

Title:
  [1.0.1] MultiMonitor: Java NPE when mouse is in other screen than the
  found match to be clicked

Status in Sikuli:
  Fix Committed

Bug description:
  ---- finding from related question comment #5
  I found the reason. I am using Sikuli on the laptop with 2 displays. So when the script is running and the button is found, if the mouse is in another screen then the error happens; if the mouse is in the same screen with the button, then no problem.

  -------------------------------------

  Run with below script using sikuli on win7 SikuliX-1.0.1

  Algo_reg=Region(x,y,w,h)
  Algo_reg.click(Pattern("InspectionPlane.png").similar(0.80).targetOffset(300,0))

  preview of the image could display, while system prompt the error
  message to say [error] java.lang.NullPointerException (
  java.lang.NullPointerException )

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


Follow ups

References