← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #196356]: Copy Cells from Excel to a notepad using xlrd

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
...
openApp ("notepad.exe")
wait(3) # to get the editor window ready and focused
paste( str(sh.col(0)[1].value) )
type(Key.ENTER) # to add a newline

Why don't you write directly into a file using the Python features?

f = open("some_file.txt", "w")
f.write(str(sh.col(0)[1].value))
f.close()

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