[request] A workaround for highlighting not working on linux

Bug #1504627 reported by RaiMan on 2015-10-09
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
Wishlist
RaiMan

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

RaiMan (raimund-hocke) wrote :
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
Zeks (enmarantispam) wrote :

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.

RaiMan (raimund-hocke) wrote :

--- I tried to make transparency work
... I feel with you. That's why there was not any solution for that until now ;-)

I will look for some different approach in version 2.

Anyway thanks again.

Zeks (enmarantispam) wrote :

another possible approach is to overlay the area with a widget containing the copied contents of the area below.

RaiMan (raimund-hocke) wrote :

yes, this is the "fallback" solution (currently done so on Mac).

But I have to solve the transparency overlay more general, since in version 2 I plan to handle more visual effects in foreground, while the "real" screen is still visible behind.

RaiMan (raimund-hocke) on 2015-10-16
Changed in sikuli:
importance: Medium → Low
RaiMan (raimund-hocke) on 2015-10-16
Changed in sikuli:
importance: Low → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers