← Back to team overview

sikuli-driver team mailing list archive

[Bug 874033] Re: X-1.0rc3: Windows: highlight() hides some kind of tooltip like visual objects

 

@xianming

Maybe this is clear for you, but might not be for others:

You use setROI() in a function to define the region, that should be
highlighted. This works, but has the side effect, that from now on ALL
subsequent unqualified (searching the primary screen) find operations
will be restricted to the screen region set by setROI(). So this is ok,
if you know what you are doing: work only in the restricted area or
reset ROI to other settings later on (e.g. setROI(SCREEN).

So because of this side effect, setROI() is not recommended to be used only for defining the region on the screen to be highlighted.
use instead:
reg = Region(<same settings as with setROI()>)
reg.highlight()  

** Description changed:

  *** problem
  - first reported on japanese Windows XP (see below)
  - confirmed on Windows 7 with this test script:
  
  hover("some-image.png"); wait(2) # inits a tooltip
  getLastMatch().highlight(2) # tooltip hidden
  setROI(300,300,100,100)
  wait(2) # tooltip visible again
  highlight()
  wait(2) # tooltip hidden
  highlight()
  wait(2)  # tooltip visible again
+ setROI(SCREEN)
  
  ---------------------------------------------
  
  If you use a ime, when you input some letters, there will be a condidate window for you to select target.
  In X1.0-rc3, if I use highlight() to the condidate window, the window disappear. But when you use X1.0-rc2, if you highlight the condidate window, the window is also there.
  I guess it is because the highlight() seize the focus of window.

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

Title:
  X-1.0rc3: Windows: highlight() hides some kind of tooltip like visual
  objects

Status in Sikuli:
  Confirmed

Bug description:
  *** problem
  - first reported on japanese Windows XP (see below)
  - confirmed on Windows 7 with this test script:

  hover("some-image.png"); wait(2) # inits a tooltip
  getLastMatch().highlight(2) # tooltip hidden
  setROI(300,300,100,100)
  wait(2) # tooltip visible again
  highlight()
  wait(2) # tooltip hidden
  highlight()
  wait(2)  # tooltip visible again
  setROI(SCREEN)

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

  If you use a ime, when you input some letters, there will be a condidate window for you to select target.
  In X1.0-rc3, if I use highlight() to the condidate window, the window disappear. But when you use X1.0-rc2, if you highlight the condidate window, the window is also there.
  I guess it is because the highlight() seize the focus of window.

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


References