Re: [Sikuli-driver] [Question #655742]: Traceback --- error seen when trying to capture and store image using shutil
Question #655742 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655742 Status: Answered => Solved Test App confirmed that the question is solved: Thanks masuo, that solved my question. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #655742]: Traceback --- error seen when trying to capture and store image using shutil
Question #655742 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/655742 Status: Open => Answered masuo proposed the following answer: try this code img = Screen(0).capture(27,170,963,159).getFile() -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #655742]: Traceback --- error seen when trying to capture and store image using shutil
New question #655742 on Sikuli: https://answers.launchpad.net/sikuli/+question/655742 Hi I have used the below code to capture and store an Image img = Screen(0).capture(27,170,963,159) import shutil shutil.move(img,"C:\\Sikuli\\test1.png") import os.path shutil.move(img,os.path.join(getBundlePath()),"test.png") And this is the error i get TypeError ( coercing to Unicode: need string, org.sikuli.script.ScreenImage type found ) [error] --- Traceback --- error source first line: module ( function ) statement 293: shutil ( move ) File "C:\Sikuli\sikulix.jar\Lib\shutil.py", line 293, in move Please tell me what to do to remove this erroe -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp