← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #193332]: find word in some string

 

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

    Status: Answered => Open

fernando gandini is still having a problem:
hi tanks for the Answer...but now i have another problem.
I get a string from noteped, and i dont know why the .find() still dont work.
here is the code

xReader = file("C:\\Users\\fgandini\\Desktop\\infos.txt")
for line in xReader:
    line.rstrip("\n")
    infoText.append(line.strip())

if (-1 == infoText[1].find('Física')):
    popup("sim")
    type(Key.TAB)
else:
    type(Key.RIGHT)
    type(Key.TAB)
##########
#text from notepad
Fernando M.D.F Gandini
Física
05439120

tanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.