← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663835]: paste doesn't work sometimes

 

Question #663835 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663835

    Status: Answered => Open

Ju1+i-我. is still having a problem:
thanks so much ,
but 
1: self.fileCommon.openFile("cmd")
here is ok ,  only " paste "  function  doesn't work sometimes....

-------  self.fileCommon.openFile("cmd")
----  This is the method of encapsulation.

    def openFile(self, path):
        self.log.write_log("FileOrFolderCommon -> openFile start.")
        self.log.write_log("path = %s"%(path))
        wait(1)
        type("r", Key.WIN)
        wait(1)
        if exists(Pattern("1515739915973.png").targetOffset(-75,45)):
            wait(2)
            paste(path)
            wait(2)
            type(Key.ENTER)
            wait(5)
        else:
            wait(1)
            paste(path)
            wait(2)
            type(Key.ENTER) 
            wait(5)
        self.log.write_log("FileOrFolderCommon -> openFile end.")

do you have other idea?
thanks a lot

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.