← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #275461]: Get text from a notepad file and find it on screen

 

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

    Status: Answered => Open

Ayush Sharma is still having a problem:
Hi RaiMan

Thanks for answering.
In that case, i have another method to try. Please help me with it.

I want to store the images somewhere, then give the path to those images in a notepad file. 
I want sikuli to read the notepad file, get the image info from there and then execute the given commands. 


This is my code

C = open("‪CP.txt","w+")
lines = C.readlines()
for line in lines:
    click(line)


This CP.txt file contains the path to a particular image in each line with double quotes.

What am i doing wrong??

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