<div dir="ltr"><div>I tested my code today on Win 7 64 bit, and it worked almost perfect like Tim said. <br></div><div><br></div><div>If the previous clipboard content was Text, my code works perfectly.<br></div><div><br></div>
<div>The failure part is:</div><div>1) Copy <b>Image1</b> from Explorer</div><div>2) Run my code to update clipboard with <b>Image2</b></div><div>3) Paste operation in Wordpad application or Explorer ends up with only <b>Image1</b> </div>
<div><br></div><div>Any clues please?Am i missing something?</div><div>Also how about the OleSetClipboard()? Do you guys think it will improve my case?</div><div><b><br></b></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, May 22, 2014 at 1:02 AM, game4 sale <span dir="ltr"><<a href="mailto:gamz4sale@gmail.com" target="_blank">gamz4sale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Thank you very much for your time.</div><div><br></div>Thats strange. For the login user, i think its same. In my Taskmanager, under User tab, both the processes are running under same user.<div><br></div>
<div>I also tried to run my script from command prompt with Admin previlege. Still same, i cannot paste the file in Explorer.</div><div><br></div><div>Also, i found out another problem in my code. I can paste the image in Wordpad application only if the last clipboard content was text.</div>
<div>If the last one was image, i cannot paste my new image. It pastes only the old image.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, May 22, 2014 at 12:29 AM, Tim Roberts <span dir="ltr"><<a href="mailto:timr@probo.com" target="_blank">timr@probo.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div bgcolor="#FFFFFF" text="#000000"><div>
<div>game4 sale wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><br>
<div><br>
</div>
<div>
<p>
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 <b>Windows 8</b> <b>64bit </b>laptop,
running <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent">Python
2.7 </strong><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent">and</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent"> </span><strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent">pywin32-218</strong> for
win32 APIs</p>
<p>
I managed to paste my file in Wordpad application. But, i
cannot paste inside windows explorer. The Paste menu is
disabled. Any help/suggestions would be much appreciated.</p>
</div>
</div>
</blockquote>
<br></div>
I'm confused. I just ran your exact code on Win 7 64 with Python
2.7.5 32, unchanged except for the file name, and it worked
perfectly.<br>
<br>
Is the script running as the same login user as Explorer?<span><font color="#888888"><br>
<pre cols="72">--
Tim Roberts, <a href="mailto:timr@probo.com" target="_blank">timr@probo.com</a>
Providenza & Boekelheide, Inc.
</pre>
</font></span></div>
<br></div></div>_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org" target="_blank">python-win32@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-win32" target="_blank">https://mail.python.org/mailman/listinfo/python-win32</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>