← Back to team overview

sikuli-driver team mailing list archive

[Question #676937]: delete a specific character

 

New question #676937 on Sikuli:
https://answers.launchpad.net/sikuli/+question/676937

python , determines whether a string contains a  specific Chinese character,   if so,  then deletes it

but it doesn't work :

            value = unicode(Env.getClipboard(),'utf-8')
            wait(1)
            t = unicode("英博",'utf-8')
            wait(1)
            #str.find(str, beg=0, end=len(string))
            if t in value :
                value2 = value.replace(t,"")
                wait(1)
                click("1545288319341.png")
                wait(1)
                type(Key.TAB)
                wait(1)
                paste(value2)


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