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

Description changed to:
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):
    type(Key.PRINTSCREEN)
    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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to