[1.0.1 ok] Button.LEFT not recognised

Bug #1214789 reported by shushang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

---- fixed in 1.0.1 per Sep 2 at 20 pm gmt+1
run setup again after that time to get the fix
----------------------------------------------

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

RaiMan (raimund-hocke)
summary: - version 1.0.1 Button.LEFT not recognised
+ [1.0.1] Button.LEFT not recognised --- workaround
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
summary: - [1.0.1] Button.LEFT not recognised --- workaround
+ [1.0.1 ok] Button.LEFT not recognised --- workaround
description: updated
Revision history for this message
shushang (shushangmonkey) wrote : Re: [1.0.1 ok] Button.LEFT not recognised --- workaround

using mouseDown(LEFT) seemed to work for now
thank you raiman

Revision history for this message
RaiMan (raimund-hocke) wrote :

Sorry, but I fixed it to behave like before.

So if you decide, to run setup again, you will get the fixed version, that does not work with LEFT, but Button.LEFT

Sorry, for the stupid recommendation.

description: updated
RaiMan (raimund-hocke)
description: updated
summary: - [1.0.1 ok] Button.LEFT not recognised --- workaround
+ [1.0.1 ok] Button.LEFT not recognised
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.