[python-win32] time/datetime module wierdness on some windows7/XP PCs

2012-07-26 Thread Ferdinand Sousa
Hi List, Since Raf says that the motherboard was changed in one of the cases, I think it could be an issue with the BIOS clock settings. I have noticed on some OSes that there is a time setting "Set Hardware clock to UTC or localtime". This would imply timezone awareness in the BIOS. You might wa

Re: [python-win32] py2exe issues with script using selenium

2012-07-23 Thread Ferdinand Sousa
xe's "data_files" option to arrange for the .xpi file to be packaged > as a regular file, then tell firefox_profile where that location is. > > HTH, > > Mark > > > On 18/07/2012 4:05 AM, Ferdinand Sousa wrote: > >> Hi List, >> >> My enviro

[python-win32] py2exe issues with script using selenium

2012-07-17 Thread Ferdinand Sousa
Hi List, My environment: Win 7 Professional 64-bit, Python 2.7 64-bit and appropriate 64-bit libraries installed over that. I downloaded the 64-bit py2exe package. Though I did not specifically download the Distutils package, I guess I have it from having installed 3rd party Python libraries. I'm

Re: [python-win32] Take Screenshot when you log in remotely [Win 7 Pro]

2012-07-16 Thread Ferdinand Sousa
ken. Best regards, Ferdi > -- Forwarded message -- > From: Tim Roberts > To: "python-win32@python.org" > Cc: "image-sig-requ...@python.org" > Date: Thu, 5 Jul 2012 10:24:51 -0700 > Subject: Re: [python-win32] Take Screenshot when you log i

[python-win32] Take Screenshot when you log in remotely [Win 7 Pro]

2012-07-04 Thread Ferdinand Sousa
Hi List, I use pywin32-217.win-amd64 for Python 2.7 on Windows 7 Professional. I have written a script that uses the screenshot() function from the ImageGrab module of the Python Imaging library and I would like to run this script as a scheduled task. Now for the issues. In the task scheduler, i

Re: [python-win32] Installing pywin32 for Python 2.7 AMD64

2012-06-21 Thread Ferdinand Sousa
ed in file object destructor: sys.excepthook is missing lost sys.stderr -- Thanks for the tip. Best regards, Ferdi On Mon, Jun 18, 2012 at 9:42 AM, Mark Hammond wrote: > On 16/06/2012 2:20 AM, Ferdina

[python-win32] Installing pywin32 for Python 2.7 AMD64

2012-06-15 Thread Ferdinand Sousa
Hi List, First off, it's good to be back after 3 years!! I was dusting off some old scripts I had written using pywin32. (Python 2.5 era I think). It uses the win32con and win32api modules. Now I'm trying to use the same scripts with Python 2.7 AMD64 version. I downloaded pywin32-217.win-amd64-

Re: [python-win32] Windows Service, user activity and timed message box

2009-02-01 Thread Ferdinand Sousa
Hi , first of all, thanks to Harald Armin Massa for the timed message box code (attached as text for reference). I'll tweak it to my requirements. Also, my thanks to Tim J Golden for his help. As regards the following: > B] How do we check duration since last user activity -- Assuming that the >>

[python-win32] Windows Service, user activity and timed message box

2009-01-27 Thread Ferdinand Sousa
Greetings: I wanted some help on the following topics: A] How do I set up a script to run as a service? Are there any prerequisites for this? B] How do we check duration since last user activity -- Assuming that the screen is set to turn off/display a screensaver after a certain duration, I woul

Re: [python-win32] python-win32 Digest, Vol 69, Issue 23

2008-12-16 Thread Ferdinand Sousa
-- Forwarded message -- > From: Tim Roberts > To: Python-Win32 List > Date: Mon, 15 Dec 2008 10:03:17 -0800 > Subject: Re: [python-win32] Post Message > Ferdinand Sousa wrote: > > > > I have written a small script to automate a process. The issue is t

[python-win32] Post Message

2008-12-15 Thread Ferdinand Sousa
Greetings everyone, My config is: python 2.5.1 pywin32 build 212 Win Xp I have written a small script to automate a process. The issue is that a "Save As" pops up at the end. Using Winspector, I could come up with this: win32gui.PostMessage(win_hdl,con.WM_COMMAND,1,0) # handle to the "Save As" wi

[python-win32] COM -- Dispatch() parameter

2008-10-21 Thread Ferdinand Sousa
Greetings to everyone on the mailing list, To automate Word using COM, we use the Dispatch function: Dispatch("Word.Application") What parameter must be passed to Dispatch to launch Adobe Acrobat 7.0 Professional? Is it the VersionIndependentProgID registry key? Even so, there are so many things

[python-win32] makepy.py usage and COM

2008-08-21 Thread Ferdinand Sousa
Hi I have python 2.5.1, pywin32 build 212 When using the makepy utility I noticed it used to crash out with the following traceback: Traceback (most recent call last): File "C:\Python25\Lib\site-packages\win32com\client\makepy.py", line 391, in rc = main() File "C:\Python25\Lib\site-pac

[python-win32] Fwd: Running a python script in the system tray

2008-07-04 Thread Ferdinand Sousa
Hi I just wanted some pointers on how I can run a python script in the system tray. My configuration is: Win Xp Python 2.5.1 Python Imaging Library 1.1.6 pywin 2.1.1 I already have a screen captor (python script) that pastes images from the windows clipboard. Its disadvantage is that for eve