Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-30 Thread kakarukeys
I tried on a fresh XP on VM. I moved all dlls in C:\WINDOWS\WinSxS which are in the file handles shown by Process Explorer including the 3 CRT dlls to the my dist folder and the two subfolders suggested by http://wiki.wxpython.org/py2exe. It didn't work out. My app couldn't start. Windows XP gave a

Re: save windows clipboard content temporarily and restore later

2009-10-12 Thread kakarukeys
On Oct 10, 6:00 am, Neil Hodgson wrote: > kakarukeys: > > > I followed your hints, and wrote the following code. It works for most > > clipboard formats except files. Selecting and copying a file, followed > > by backup() and restore() throw an exception: > >    For

Re: save windows clipboard content temporarily and restore later

2009-10-09 Thread kakarukeys
On Oct 9, 11:30 am, Neil Hodgson wrote: > kakarukeys: > > > Restoring the data with that format could result in information loss, > > for example when HTML text is saved in ordinary text format. There is > > no format that could preserve 100% of any kind of clipboard co

save windows clipboard content temporarily and restore later

2009-10-09 Thread kakarukeys
Is there a way to: 1. save windows clipboard content temporarily in a variable 2. (the clipboard content is then overwritten by some other applications) 3. restore the saved data back into the clipboard. ? I've tried win32clipboard's GetClipboardData, SetClipboardData. The GetClipboardData metho

Re: control CPU usage

2009-09-20 Thread kakarukeys
On Sep 20, 10:57 pm, Dave Angel wrote: > kakarukeys wrote: > > On Sep 20, 6:24 pm, Dave Angel wrote: > > >> Jiang Fung Wong wrote: > > >>> Dear All, > > >>> Thank you for the information. I think I've some idea what the problem is > &

Re: control CPU usage

2009-09-20 Thread kakarukeys
On Sep 20, 6:24 pm, Dave Angel wrote: > Jiang Fung Wong wrote: > > Dear All, > > > Thank you for the information. I think I've some idea what the problem is > > about after seeing the replies. > > > More information about my system and my script > > > PIII 1Ghz, 512MB RAM, Windows XP SP3 > > > The

control CPU usage

2009-09-19 Thread kakarukeys
Hi, When I am running a loop for a long time, calculating heavily, the CPU usage is at 100%, making the comp not so responsive. Is there a way to control the CPU usage at say 80%? putting a time.sleep(0.x) doesn't seem to help although CPU usage level is reduced, but it's unstable. Regards, W.J.F