[1.1.1] - Region.observe - onAppear() handler quits when using low lvl mouse commands like mouseDown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Opinion
|
Undecided
|
RaiMan |
Bug Description
My script stops the observation on the following code - see also screenshot provided:
Debug.on(3);
neueRegion = Screen(0);
Settings.
def testHandler(event):
neueRegion.
neueRegion.
neueRegion.
event.
neueRegion.
neueRegion.
-------
The script did not exit the observer (used repeat(1) correctly) when I left out mouseDown or mouseUp commands. Also a wait(3) or similar code stopped the observer....
A simple "neueRegion.
I think that is not the behavior it should have when I say ObserveEvent.
I am using SikuliX 1.1.1 on Windows 7 Professional - Version 6.1.7601 SP 1 Build 7601 - 64 bit
---------------
Edit: Also a region.
description: | updated |
summary: |
- Region.observe - onAppear() handler quits when using low lvl mouse - commands like mouseDown + [1.1.1] - Region.observe - onAppear() handler quits when using low lvl + mouse commands like mouseDown |
Changed in sikuli: | |
status: | New → Opinion |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.2 |
I cannot reproduce this behavior:
img1 = "img1.png" getBottomRight( ) # here we can click with no effect
start = time.time()
bl = SCREEN.
def handler(event): Button. LEFT)
print time.time()-start, "in handler";
mouseMove(bl)
mouseDown(
mouseUp()
event.repeat(3)
onAppear(img1, handler)
observe(10)
prints out:
0.304000139236 in handler
4.20000004768 in handler
8.10000014305 in handler
the image is visible all the time
BTW: it is not recommended, to use a mouseDown() without a following mouseUp() - might lead to unexpected results.