Question #674765 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674765
Status: Open => Answered
RaiMan proposed the following answer:
I suppose, you are running Ruby scripts from some IDE (not the SikuliX
IDE).
I have to admit, that I did not look into JRuby support for more than 3
years.
When running scripts from the SikuliX IDE, this is added to top of script at
runtime:
"# coding: utf-8\n"
"require 'Lib/sikulix'\n"
"include Sikulix\n"
This works in the IDE on Mac:
reg = Region(0,0,300,20);
print(reg);
print(reg.collectWordsText())
... and prints:
R[0,0 300x20]@S(0) E:Y, T:3,0
[é, Sikulix, File, Edit, Run, View, ']
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp