← Back to team overview

sikuli-driver team mailing list archive

[Question #245693]: Append image to RTF file from Clipboard (PRINTSCREEN)

 

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

Hi,

One question:
How to append image to RTF file from Clipboard (PRINTSCREEN)

I need this because in one part of my testing script I need to capture reproduced error and save it as a picture. 
Just to see what happend..
how to do that?

standard code that I'm using is not working... 

def errorSPR(msgL):
    f = open("C:\\Users\\Nikola\\Desktop\\ERRORS.rtf","a")
    f.write(msgL+"\n")
    f.write(paste(Env.getClipboard()))
    f.close()

i also tried:
msg=Env.getClipboard().paste()
f.write(msg)

and some other stuff..

but obviously I'm missing something for picture manipulation :)

Thanks for response :)


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