Re: [python-win32] I/O error

2010-03-23 Thread Tim Golden
On 22/03/2010 21:22, travel europe wrote: I am getting the following error ValueError: I/O operation on closed file when running a module to pull data from the Windows registry. code import csv from winsys import registry key =

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-23 Thread Mike Driscoll
Hi Malcolm On 1:59 PM, pyt...@bdurham.com wrote: Is there a Windows API call I can use to display a BMP or a PNG file in a window centered on a user's display? This function would be called from a console app to display a splash screen. Motivation: I would like some of our customer facing

[python-win32] (no subject)

2010-03-23 Thread Phung Thuy Vuong
Hello! Can anyone give me some hint please? I'm trying to make a log file which keep track of a specific application. For example, I need to punch the time et date where an application, such as Firefox, is opened and when it's closed. I also need to detect when the application goes to idle

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-23 Thread Vernon Cole
Malcolm: I used to have exactly what you need. Unfortunately, when I checked just now, I find that I failed to lift a copy of the source code when I left the place where I wrote it. It was a command line utility which accepted as arguments the name of a .jpg file and the number of seconds to

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
You wrote: Hey guys im having a little difficulty sending data to my C application through python. I have my test.exe that has a input box in a window. I am trying to populate the edit box with input i send to it through python. This is a far as I have been able to get so far. any help would be

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-23 Thread Greg Ewing
Andrew MacIntyre wrote: Is it possible to draw directly to the desktop? I vaguely recall reading somewhere that that is how some splash screens are done to avoid the overhead of a window... Somehow I doubt that. I have a hard time imagining that displaying a splash screen could be a serious

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
Richard Leahy wrote: Hi, thank you for your reply. I have tried the FindWindow which works great how ever It cant find the window i am after. ... test = windll.user32.FindWindowA(None, Windows App) // find the first window perfectly if not test: print [*] cant find window test =

Re: [python-win32] (no subject)

2010-03-23 Thread Tim Roberts
Phung Thuy Vuong wrote: Can anyone give me some hint please? I'm trying to make a log file which keep track of a specific application. For example, I need to punch the time et date where an application, such as Firefox, is opened and when it's closed. I also need to detect when the

Re: [python-win32] (no subject)

2010-03-23 Thread Tim Roberts
David Hutto wrote: On Tue, Mar 23, 2010 at 6:11 PM, Tim Roberts t...@probo.com wrote: Phung Thuy Vuong wrote: Can anyone give me some hint please? I'm trying to make a log file which keep track of a specific application. For example, I need to punch the time et date where an

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
Richard Leahy wrote: So basically your saying that if i just use this test = windll.user32.FindWindowA(None, Windows App) if not test: print [*] cant find window print test // which returns 7471154 the handle windll.user32.SetDlgItemTextA(test,1,test) this doesn't seem to set my