← Back to team overview

sikuli-driver team mailing list archive

[Bug 1504627] [NEW] [request] A workaround for highlighting not working on linux

 

Public bug reported:

Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function:
https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

It needs qt/qbs to compile but once you do, you can simply use the
function below everywhere, where region.highlight was used

def highlight(reg, time):
    subprocess.call(["/adp/arm/regionHighlighter.sh",
                     "--width=" + str(reg.getW()),
                     "--height=" + str(reg.getH()),
                     "--top=" + str(reg.getY()),
                     "--left=" + str(reg.getX()),
                     "--time=" + str(time)]);
    reg.wait(time/1000)


the parameters above are self-explanatory I think. Except time, which is in milliseconds

** Affects: sikuli
     Importance: Medium
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

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

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

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

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

Title:
  [request] A workaround for highlighting not working on linux

Status in Sikuli:
  In Progress

Bug description:
  Faced with the problem of debugging why the hell scripts fail on linux I made this very simple app to work as a replacement for Region.highlight function:
  https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

  It needs qt/qbs to compile but once you do, you can simply use the
  function below everywhere, where region.highlight was used

  def highlight(reg, time):
      subprocess.call(["/adp/arm/regionHighlighter.sh",
                       "--width=" + str(reg.getW()),
                       "--height=" + str(reg.getH()),
                       "--top=" + str(reg.getY()),
                       "--left=" + str(reg.getX()),
                       "--time=" + str(time)]);
      reg.wait(time/1000)

  
  the parameters above are self-explanatory I think. Except time, which is in milliseconds

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


Follow ups