[python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread game4 sale
Hi, I am trying to copy an image file to windows clipboard using my code and paste it manually in any folder in windows explorer. I am using *Windows 8* *64bit *laptop, running *Python 2.7 *and *pywin32-218* for win32 APIs I managed to paste my file in Wordpad application. But, i cannot paste ins

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread Tim Roberts
game4 sale wrote: > > > I am trying to copy an image file to windows clipboard using my code > and paste it manually in any folder in windows explorer. I am using > *Windows 8* *64bit *laptop, running *Python 2.7 *and *pywin32-218* for > win32 APIs > > I managed to paste my file in Wordpad applicat

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread game4 sale
Thank you very much for your time. Thats strange. For the login user, i think its same. In my Taskmanager, under User tab, both the processes are running under same user. I also tried to run my script from command prompt with Admin previlege. Still same, i cannot paste the file in Explorer. Also

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread game4 sale
I tested my code today on Win 7 64 bit, and it worked almost perfect like Tim said. If the previous clipboard content was Text, my code works perfectly. The failure part is: 1) Copy *Image1* from Explorer 2) Run my code to update clipboard with *Image2* 3) Paste operation in Wordpad application o

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread Mark Hammond
I'd suggest you experiment with EnumClipboardFormats() and see all the formats actually in the clipboard - I'm guessing there is another format preferred over CF_HDROP. Similarly, you probably want to call EmptyClipboard so the other formats which refer to the initial image are removed (and if