← Back to team overview

sikuli-driver team mailing list archive

[Bug 1706334] Re: Region.observe - onAppear() handler quits when using low lvl mouse commands like mouseDown

 

** Description changed:

  My script stops the observation on the following code - see also
  screenshot provided:
- 
  
  Debug.on(3);
  neueRegion = Screen(0);
  Settings.OcrTextRead = True;
- def testHandler(event): 
-         
-     neueRegion.mouseMove("1500985545922.png");    
-     neueRegion.mouseMove(0,40);
-     neueRegion.mouseDown(Button.Left);
-     event.repeat(1);
-  
-     
+ def testHandler(event):
+ 
+     neueRegion.mouseMove("1500985545922.png");
+     neueRegion.mouseMove(0,40);
+     neueRegion.mouseDown(Button.Left);
+     event.repeat(1);
+ 
  neueRegion.onAppear("1500985537208.png", testHandler);
  neueRegion.observe(30);
- 
  
  ------------------------
  
  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.click(1500985537208.png)" did NOT cause the observer to stop too early.
  
  I think that is not the behavior it should have when I say
  ObserveEvent.repeat()
  
  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.doubleClick() stops the observer ...

** Summary changed:

- 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

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1706334

Title:
  [1.1.1] - Region.observe - onAppear() handler quits when using low lvl
  mouse commands like mouseDown

Status in Sikuli:
  New

Bug description:
  My script stops the observation on the following code - see also
  screenshot provided:

  Debug.on(3);
  neueRegion = Screen(0);
  Settings.OcrTextRead = True;
  def testHandler(event):

      neueRegion.mouseMove("1500985545922.png");
      neueRegion.mouseMove(0,40);
      neueRegion.mouseDown(Button.Left);
      event.repeat(1);

  neueRegion.onAppear("1500985537208.png", testHandler);
  neueRegion.observe(30);

  ------------------------

  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.click(1500985537208.png)" did NOT cause the observer to stop too early.

  I think that is not the behavior it should have when I say
  ObserveEvent.repeat()

  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.doubleClick() stops the observer ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1706334/+subscriptions


References