sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20311
[Bug 1214789] Re: [1.0.1 ok] Button.LEFT not recognised --- workaround
using mouseDown(LEFT) seemed to work for now
thank you raiman
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1214789
Title:
[1.0.1 ok] Button.LEFT not recognised --- workaround
Status in Sikuli:
Fix Committed
Bug description:
----- fixed with version 1.0.1 per August 25 at 9 pm gmt+1
repeat setup after this time to get the fixed version
----------------------------------------------------------
--------- workaround
either insert at top of script:
import org.sikuli.script.Button as Button
or simply use LEFT instead of left
----------------------------------------------
trying to migrate to the latest version, however, the following piece of code did not work....
for region_line in sorted_regions:
name_region = Region(region_line.getX() + 55, region_line.getY() + 20, 200, 25)
name_region.highlight(5)
name = name_region.text()
print name
temp_out = [name]
txt_region = Region(region_line.getX() + 55, region_line.getY() + 45, 50, 20)
hover(txt_region)
mouseDown(Button.LEFT)
LOG reports
[log] highlight R[78,158 200x25]@S(0)[0,0 1920x1080] E:Y, T:3.0 for
5.0 secs
EHSE
[error] script [ Weixin ] stopped with error in line 66
[error] NameError ( global name 'Button' is not defined )
[error] --- Traceback --- error source first line: module ( function ) statement 25: main ( copy_one_pyquan ) mouseDown(Button.LEFT)
[error] --- Traceback --- end --------------
The exact same code worked fine in the last version tho
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1214789/+subscriptions
References