sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #20124
[Bug 1214789] [NEW] version 1.0.1 Button.LEFT not recognised
Public bug reported:
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
** Affects: sikuli
Importance: Undecided
Status: New
--
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:
version 1.0.1 Button.LEFT not recognised
Status in Sikuli:
New
Bug description:
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
Follow ups
References