A workaround for highlighting not working on linux

Asked by Zeks

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

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Zeks
Solved:
Last query:
Last reply:
Revision history for this message
Zeks (enmarantispam) said :
#1

the shell script is needed to set LD_LIBRARY_PATH to recognize path to libQt5Gui etc