← Back to team overview

sikuli-driver team mailing list archive

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

 

Essentially, I tried to make transparency work but decided the trouble
is not worth it (especially on VMWare which adds whole new level to
frustration) and "painted" the frame with four 2px widgets around the
area.

-- 
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


References