← Back to team overview

sikuli-driver team mailing list archive

[Bug 874033] Re: X-1.0rc3: Windows (japanese): highlight() seize the focus of window

 

The code :
def checkDisplay(self, input="kyouhatennkigaiikara,sannposimasyou.", mode=None,
                     suggestion_img=None, candidate_img=None, 
                     suggestion_region=None, candidate_region=None,
                     need_open=False, need_close=False,
                     run=True, need_switch=True, getFocusFunc=None,
                     ):
        """common function for dispaly check"""
        self.clearInput()                 #use ctrl+a and ctrl+x to clear input
        caret = ime.getTextPos()        #get the position of the cursor
        type(input)                   #type input 
        try:
            candwin_reg = ime.getCandWinRegion()       #get the candidate list window's postion and size
        except:
            self.writeLog("FAIL to getCandWinRegion for mode %s after type `%s' " % (mode,input))
            #return 0
            assert False
        if mode:                //if set to hiragana input mode
        # setROI(caret[0]-30, caret[1], 400, 100)
            setROI( suggestion_region.offset( Location(caret[0], caret[1])) )
            highlight()
            self.printScreen("%s suggestion h" %  mode)        
            highlight()
            dx = candwin_reg.x - caret[0]; dy = candwin_reg.y - caret[1]; w = candwin_reg.w; h = candwin_reg.h;

            …………the other code Omitted…………


the function checkDisplay runs well in rc2, but there is something wrong in rc3(for details, please look at the picture:problem.jpg).
If you don't use highlight() function in the code above in rc3,  checkDisplay runs well too.

-- 
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 (japanese): highlight() seize the focus of window

Status in Sikuli:
  New

Bug description:
  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