Re: [python-win32] argument passing problem on Windows 7 64-Bit

2015-08-03 Thread Tony Cappellini
Dennis, C:\Users\Wulfraed\Documents\Python Progsftype Python.File Python.File=C:\Python_x64\Python27\python.exe %1 %* This appears to have fixed my problem. I am now seeing output similar to yours, that is, the same output in both cases. I am curious how this issue came to be. I don't just

[python-win32] argument passing problem on Windows 7 64-Bit

2015-07-31 Thread Tony Cappellini
Hello, I've got Python 2.7.10 64-Bit installed, via the Anaconda installer The path clearly shows C:\Anaconda in the path. Typing python by itself brings up the python REPL as expected. Running this simplified program easily illustrates the problem I'm seeing in another, larger Python program.

[python-win32] Help with starting new processes

2014-08-22 Thread Tony Cappellini
Hello, I'm running Python 2.7.6 on 32-Bit Windows7 Pro. (Python 3 isn't an option at the moment) I have a parent python script which spawns two subprocesses- where each subprocess is running in a new console window. I want to watch each process running. This is why I've explicitly used

[python-win32] win32ui.CreateFileDialog() hangs on Windows 7

2014-06-20 Thread Tony Cappellini
I'm running Python 2.7.6, PythonWin build 218 on Windows 7 Pro, 32-Bit The code below hangs after the browse() function returns to the caller. I do see After displayed in the console window. Is anyone else seeing this problem on Windows? Thanks import win32ui import os def

Re: [python-win32] optimizing code to read serial port

2014-02-16 Thread Tony Cappellini
Message: 1 Date: Sun, 16 Feb 2014 12:02:45 +1300 From: Greg Ewing greg.ew...@canterbury.ac.nz To: python-win32 python-win32@python.org Subject: Re: [python-win32] optimizing code to read serial port Message-ID: 52fff215.9000...@canterbury.ac.nz Content-Type: text/plain; charset=ISO-8859-1;

Re: [python-win32] optimizing code to read serial port

2014-02-15 Thread Tony Cappellini
at 3:01 AM, Tony Cappellini cappy2...@gmail.comwrote: python-win32@python.org Regarding an in-house python program we use for dumping diagnostic data over a serial port on Windows 7 ... I'm trying to determine if it's possible optimize the python code so that dumping the data will occur

Re: [python-win32] optimizing code to read serial port

2014-02-15 Thread Tony Cappellini
No, I haven't. But I'd be happy to give it a try. Chances are the serial I/O with this package are more efficient than the way my program is doing it now. Thanks for that tip. I'm also considering compiling my app to a compiled exe using PyPy, once I understand the compiler requirements for

Re: [python-win32] optimizing code to read serial port

2014-02-15 Thread Tony Cappellini
I second the suggestion to try pySerial. I have used it for years to control RS-232 equipment -- don't know why I did not think of that. Like Terra-Term, pySerial will use device-level, rather than file-level APIs to talk to the UART. I was hoping to hear something exactly like this comment,

[python-win32] optimizing code to read serial port

2014-02-14 Thread Tony Cappellini
python-win32@python.org Regarding an in-house python program we use for dumping diagnostic data over a serial port on Windows 7 ... I'm trying to determine if it's possible optimize the python code so that dumping the data will occur faster. Currently, it takes ~25 minutes at 9600 baud to dump

[python-win32] Understanding Access Denied when calling win32process.TerminateProcess() from Run As Administrator prompt

2013-10-01 Thread Tony Cappellini
When running from a *Run As Administrator* prompt on Windows 7 Professional 32-Bit, my Top-level python script spawns a process (which is another python script) using os.spawnv( ) When the top-level script ends, it attemps to call win32process.TerminateProcess() with the handle that was created

[python-win32] Passing an object to a process

2012-03-14 Thread Tony Cappellini
On Windows XP - I've got a program running which has spawned a process using os.spawnv(). My program has a logger object instantiated that I want to pass to the process that was spawned. I need to log errors seen by the process, to the same logfile that the program uses for logging. I have the

Re: [python-win32] Passing an object to a process

2012-03-14 Thread Tony Cappellini
, and timestamp records, then merge when you are ready to process if you need timeline related results. On Wed, Mar 14, 2012 at 1:29 PM, Preston Landers pland...@gmail.com wrote: On Wed, Mar 14, 2012 at 2:55 PM, Tony Cappellini cappy2...@gmail.com wrote: in which objects can truly move from one

Re: [python-win32] Trying to make use of pyAudiere

2011-08-17 Thread Tony Cappellini
From: Jacob Kruger bandi...@gmail.com To: python-win32@python.org Subject: [python-win32] Trying to make use of pyAudiere Message-ID: PC1760201108161557350376609ccfbb@JacobKruger-PC Content-Type: text/plain; charset=iso-8859-1 http://www.pyaudiere.org/ From within either the interpreter,

Re: [python-win32] Getting address for Parallel port

2011-05-18 Thread Tony Cappellini
The hacked up I/O port driver you're using is a huge security risk. Our test machines are not connected to a network, and we don't ship systems or software. The test machines are strictly for use in an engineering testing environment. USB drivers have proven to be too flaky. Some work well,

[python-win32] Getting address for Parallel port

2011-05-17 Thread Tony Cappellini
We are using PCI PCIe Parallel Port plugin cards to control some external hardware because newer motherboards no longer have built-in parallel ports. The address is NOT 0x378 as it would be if the parallel port was on the motherboard. The OS is Windows XP, SP3. These plugin cards can get mapped

Re: [python-win32] Catching Send To in Office

2011-03-24 Thread Tony Cappellini
in the template that helps you to intercept sendTo. On Thu, Mar 24, 2011 at 6:04 AM, Mike Driscoll mdrisc...@co.marshall.ia.uswrote: Hi Tony, On 1:59 PM, Tony Cappellini wrote: On 1:59 PM, Tim Roberts wrote: Mike Driscoll wrote: Does anyone know of a way to catch the Send To Mail Recipient

Re: [python-win32] Catching Send To in Office

2011-03-23 Thread Tony Cappellini
Message: 1 Date: Wed, 23 Mar 2011 08:59:52 -0500 From: Mike Driscoll mdrisc...@co.marshall.ia.us Cc: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Catching Send To in Office Message-ID: 4d89fcd8.5090...@co.marshall.ia.us Content-Type: text/plain; charset=ISO-8859-1;

Re: [python-win32] Using os.startfile() for automation

2011-02-03 Thread Tony Cappellini
Date: Fri, 4 Feb 2011 10:42:37 +1100 From: Andrew MacIntyre andrew.macint...@acma.gov.au To: python-win32@python.org Subject: Re: [python-win32] Using os.startfile() for automation [SEC=UNCLASSIFIED] Message-ID: Other than COM, application automation on Windows requires Windows API

[python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread Tony Cappellini
Message: 1 Date: Thu, 30 Sep 2010 12:09:16 -0400 From: pyt...@bdurham.com To: zz Python Win32 Newsgroup python-win32@python.org Subject: [python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API? Message-ID: 1285862956.22785.1397713...@webmail.messagingengine.com

[python-win32] Detecting when a system has multiple monitors (desktops)

2010-08-24 Thread Tony Cappellini
Does anyone know how to detect if a system has multiple monitors (desktops) through Python? I've written a program which allows the user to open multiple stand-alone windows. When I run this program I usually drag these windows to my secondary monitor. I was to save the screen coordinates of the

Re: [python-win32] Detecting when a system has multiple monitors (desktops)

2010-08-24 Thread Tony Cappellini
in the distribution. Good luck! On 8/24/2010 4:33 PM, Tony Cappellini wrote: Does anyone know how to detect if a system has multiple monitors (desktops) through Python? I've written a program which allows the user to open multiple stand-alone windows. When I run this program I usually

Re: [python-win32] Enable/disable Remote Desktop via Python

2010-05-18 Thread Tony Cappellini
Message: 4 Date: Tue, 18 May 2010 10:19:28 +1000 From: Mark Hammond skippy.hamm...@gmail.com Cc: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Enable/disable Remote Desktop via Python Message-ID: 4bf1dd10.2020...@gmail.com Content-Type: text/plain; charset=ISO-8859-1;

Re: [python-win32] Enable/disable Remote Desktop via Python

2010-05-17 Thread Tony Cappellini
Message: 2 Date: Sun, 16 May 2010 14:45:30 -0400 From: Steven James steven.ja...@gmail.com To: python-win32@python.org Subject: Re: [python-win32] Enable/disable Remote Desktop via Python Message-ID: aanlktilrr3r6touf5fbis9qvm3c2lr_vf2lsguiei...@mail.gmail.com Content-Type: text/plain;

Re: [python-win32] Enable/disable Remote Desktop via Python

2010-05-15 Thread Tony Cappellini
Message: 1 Date: Fri, 14 May 2010 10:07:57 -0700 From: Tim Roberts t...@probo.com To: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Enable/disable Remote Desktop via Python Message-ID: 4bed836d.50...@probo.com Content-Type: text/plain; charset=ISO-8859-1 Are you saying

[python-win32] Enable/disable Remote Desktop via Python

2010-05-13 Thread Tony Cappellini
On WinXP, under Control Panel/System/Remote - there is a check box to enable/disable Remote Desktop access. I need to toggle this- so I don't get disconnected by other users, when I'm connected to a system remotely. The desktop version of Windows- still doesn't allow concurrent multi-user logins

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread Tony Cappellini
by people where I work. On Thu, Apr 8, 2010 at 1:05 AM, niki n...@vintech.bg wrote: Tony Cappellini wrote: I need to write a program which copies some dlls from one location to another. However, if any applications which use these dll's are running, Windows won't let the dll copy complete

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

2010-03-25 Thread Tony Cappellini
Date: Wed, 24 Mar 2010 08:41:16 +0100 From: Sylvain Fauveau (apli-agipa) i...@apli-agipa.com Cc: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app? Message-ID:

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

2010-03-22 Thread Tony Cappellini
From: pyt...@bdurham.com To: zz Python Win32 Newsgroup python-win32@python.org Subject: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app? Message-ID: 1269295703.32357.1366163...@webmail.messagingengine.com Content-Type: text/plain; charset=us-ascii

Re: [python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-06 Thread Tony Cappellini
Message: 2 Date: Sat, 6 Mar 2010 10:17:43 -0500 From: Steven James steven.ja...@gmail.com To: python-win32@python.org Subject: Re: [python-win32] Detect whether a workstation is a laptop or desktop/server? Message-ID: e3c91421003060717o2769876ey82de33b5b7d41...@mail.gmail.com

Re: [python-win32] python-win32 Digest, Vol 79, Issue 1

2009-10-01 Thread Tony Cappellini
Message: 3 Date: Wed, 30 Sep 2009 11:56:01 -0700 From: Tim Roberts t...@probo.com To: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Talking to the parallel port Message-ID: 4ac3a9c1.4000...@probo.com Content-Type: text/plain; charset=ISO-8859-1 Why would you expect any

[python-win32] Talking to the parallel port

2009-09-30 Thread Tony Cappellini
I'm looking for some way to wiggle the data lines on the parallel port- and possibly even to use some of them as input lines. Googling for python parallel port revealed an old project which hasn't been updated since 2003. http://pyserial.sourceforge.net/pyparallel.html Is there anything that is

Re: [python-win32] Python parser for Windows Event Logs

2009-07-17 Thread Tony Cappellini
Message: 3 Date: Thu, 16 Jul 2009 16:08:51 -0700 From: Tim Roberts t...@probo.com To: python-win32@python.org Subject: Re: [python-win32] Python parser for Windows Event Logs Message-ID: 4a5fb303.7010...@probo.com Content-Type: text/plain; charset=ISO-8859-1 Tony Cappellini wrote: I've added

Re: [python-win32] python-win32 Digest, Vol 76, Issue 17

2009-07-17 Thread Tony Cappellini
Message: 2 Date: Thu, 16 Jul 2009 15:57:31 -0700 From: Tim Roberts t...@probo.com To: Python-Win32 List python-win32@python.org Subject: Re: [python-win32] Python parser for Windows Event Logs Message-ID: 4a5fb05b.2060...@probo.com Content-Type: text/plain; charset=ISO-8859-1 Would anyone be

Re: [python-win32] Python parser for Windows Event Logs

2009-07-17 Thread Tony Cappellini
Ok- I've figured out the problem. After Mark suggested doing the call to ReadEventLog() inside of the while loop, I had accidentally left a call to ReadEventLog() outside of the loop. So the data coming back from that was just thrown away. The reason I didn't see that call is because all of

Re: [python-win32] Python parser for Windows Event Logs

2009-07-16 Thread Tony Cappellini
I've added the While loop Mark suggested but still see the same issue. GetNumberOfEventLogRecords() still returns 6 events, However the object returned from ReadEvenLog() still only contains 3 objects The next call to ReadeventLog() returns None flags =

Re: [python-win32] Python parser for Windows Event Logs

2009-07-13 Thread Tony Cappellini
will notice you need a loop like: while 1: objects = win32evtlog.ReadEventLog(h, readFlags, 0) if not objects: break Mark On 11/07/2009 1:38 PM, Tony Cappellini wrote: Ok, I'm able to parse Event51 logs now. However, there seems

Re: [python-win32] Python parser for Windows Event Logs

2009-07-11 Thread Tony Cappellini
: objects = win32evtlog.ReadEventLog(h, readFlags, 0) if not objects: break Mark On 11/07/2009 1:38 PM, Tony Cappellini wrote: Ok, I'm able to parse Event51 logs now. However, there seems to be a problem with the object returned from

Re: [python-win32] python-win32 Digest, Vol 76, Issue 13

2009-07-10 Thread Tony Cappellini
Message: 1 Date: Thu, 09 Jul 2009 22:20:56 +0100 From: Tim Golden m...@timgolden.me.uk Cc: python-win32@python.org Subject: Re: [python-win32] Python parser for Windows Event Logs Message-ID: 4a565f38.40...@timgolden.me.uk Content-Type: text/plain; charset=UTF-8; format=flowed

Re: [python-win32] Python parser for Windows Event Logs

2009-07-10 Thread Tony Cappellini
Ok, I'm able to parse Event51 logs now. However, there seems to be a problem with the object returned from ReadEventLogs() GetNumberOfEvents() tells me there are 6 events. I can see all sixe events using the EventViewer in Control Panle, on Widnwos XP. However, the iterator returned from

[python-win32] Python parser for Windows Event Logs

2009-07-09 Thread Tony Cappellini
Does anyone know if there is a Python module which will parse Windows Event Logs? Using the EventViewer is tedious, and I'd rather be abel to do this programmatically. Thanks ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Python parser for Windows Event Logs

2009-07-09 Thread Tony Cappellini
Thanks, but those just monitor events. I need to pull some very specific data from an event log file, after I know the event has already occurred. Tim has another module called winsys, and there is an object which handles some aspects of reading event logs.

[python-win32] FIle I/O on Windows XP

2009-06-14 Thread Tony Cappellini
I was trying to see if I could speed up processing huge files (in the 10's of Gigabytes) by passing various values to the readline() method of the file object. No matter what I passed to readline() each call was slower and slower than passing no argument at all. I've used a SATA bus analyzer to

Re: [python-win32] Fwd: Phyton editor

2009-06-03 Thread Tony Cappellini
Message: 4 Date: Wed, 3 Jun 2009 18:57:51 -0400 From: Steven James steven.ja...@gmail.com To: python-win32@python.org Subject: [python-win32] Fwd: Phyton editor Message-ID: e3c91420906031557i75f3fa91w4fb3ffe9f3e2e...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 I like SPE

Re: [python-win32] Silent installation of pywin32

2009-05-10 Thread Tony Cappellini
Message: 2 Date: Fri, 08 May 2009 11:42:33 -0700 From: Tim Roberts t...@probo.com Subject: Re: [python-win32] Silent installation of pywin32 To: Python-Win32 List python-win32@python.org Message-ID: 4a047d19.7080...@probo.com Content-Type: text/plain; charset=ISO-8859-1 Tools like py2exe will

Re: [python-win32] Programatically activating secondary monitor?

2009-04-30 Thread Tony Cappellini
Message: 1 Date: Thu, 30 Apr 2009 08:49:58 +0100 From: Tim Golden m...@timgolden.me.uk Subject: Re: [python-win32] Programatically activating secondary monitor? Cc: python-win python-win32@python.org One can enable/disable a mutli-head monitor by right clicking on the desktop and selecting

[python-win32] Specifying an initial directory name for win32ui.CreateFileDialog()

2009-03-30 Thread Tony Cappellini
I want to specify the directory in which win32ui win32ui.html.CreateFileDialog() should be displayed. The arguments in the help PyCFileDialog PyCFileDialog.html = * CreateFileDialog(bFileOpen, defExt , fileName , flags , filter , parent *) don't seem to allow this. I know I can specify the

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-30 Thread Tony Cappellini
Tim While monitoring The task manager/Performance Tab It seems as though Windows XP is almost always paging, even when all of available memory is not being used. This doesn't make sense and seems to be wasteful. Why should the OS be wasting time paging, when it doesn't need to (aka when all of

Re: [python-win32] rebooting windows from Python

2008-12-05 Thread Tony Cappellini
To me the bigger criticism is that there are probably 600 other programs that do the same thing, but what fun would it be for me to use someone else's program... got it. I'll take a look at your program. ___ python-win32 mailing list

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-12-01 Thread Tony Cappellini
Back to this thread - has anybody used the new pythoncard stuff? What do you mean by the new pythoncard stuff ? Pythoncard has been around for a long time. I've used it- and it's one of the reasons I now use wxPython directly, without any wrappers. (I didn't like Boa - but it's been a long time

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-29 Thread Tony Cappellini
First, I feel that Python already has too many GUI toolkits available, and could stand to use some consolidation. I started writing python GUI apps with pyQT,then moved to Pythoncard, and now I use wxPython directly without looking back. I feel that there needs to be much more of a separation

Re: [python-win32] interprocess communication python and visual basic can it be done?

2008-08-27 Thread Tony Cappellini
I see many prices less than $50 on Amazon, and the publisher is still selling it for $34.95. There are 100's of used book services available as well. On Wed, Aug 27, 2008 at 11:42 AM, Vernon Cole [EMAIL PROTECTED] wrote: Why? It's still being published

Re: [python-win32] interprocess communication python and visual basic can it be done?

2008-08-26 Thread Tony Cappellini
Message: 2 Date: Tue, 26 Aug 2008 11:07:56 -0600 From: Vernon Cole [EMAIL PROTECTED] Subject: Re: [python-win32] interprocess communication python and visual basic can it be done? To: Emanuel Sotelo [EMAIL PROTECTED] Cc: python-win32@python.org Message-ID: [EMAIL

Re: [python-win32] Excel Document

2008-07-25 Thread Tony Cappellini
Message: 1 Date: Fri, 25 Jul 2008 12:52:04 +0200 From: Michiel Overtoom [EMAIL PROTECTED] Subject: Re: [python-win32] Excel Document To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Sina wrote... To read the contents of an excel spreadsheet. In

Re: [python-win32] How Do You Make Your Speech or SAPI 5 Voices

2008-06-26 Thread Tony Cappellini
Message: 1 Date: Thu, 26 Jun 2008 08:01:21 -0400 From: FT [EMAIL PROTECTED] Subject: [python-win32] How Do You Make Your Speech or SAPI 5 Voices Portable? To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 This doesn't address your

[python-win32] using the wave module for reading wave files

2008-05-20 Thread Tony Cappellini
In the wave module, is the term frame synonymous with sample? That is, does the method wave.readframes(1) read a sample that is getsampwidth() bits wide, where each sample was sampled at the frequency found at wave.getframerate() ? ___ python-win32

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tony Cappellini
That's not the serial number of the drive- as assigned by the drive manufacturer. If you want the SN from the drive manufacturer, you will need to issue an IOCTL ATA Passthrough command which sends the ATA Identify Device command to the drive. Unless the Winapi has a wrapper for that

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tony Cappellini
Message: 5 Date: Fri, 16 May 2008 10:35:45 -0500 From: Rickey, Kyle W [EMAIL PROTECTED] Subject: [python-win32] Volume Serial Number To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii How do I get the volume serial number for a

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Tony Cappellini
Tim Golden has a way to do just about everything, but this particular snippet has nothing to do with the original question. def get_unique_id (hFile): ( attributes, created_at, accessed_at, written_at, volume, file_hi, file_lo, n_links, index_hi, index_lo ) =

[python-win32] Size of directory

2008-04-22 Thread Tony Cappellini
When I right click on a directory with windows Explorer, a window is displayed showing Size: Size On Disk: Contains: Created: Attributes: (with the appropriate values for each entry) How do I get the same information via Python ? I've looked at os.stat but

Re: [python-win32] Iron Python and Visual Basic 2005 (or 2008) Express

2008-03-05 Thread Tony Cappellini
Here's what's left of the marriage of Python Delphi http://www.atug.com/andypatterns/pythonDelphiTalk.htm http://mmm-experts.com/Products.aspx?ProductId=3 Note- this was around for many years- so may not be compatible with current versions of Delphi. I think I first read about this around Delphi

Re: [python-win32] Executing eval function in VBscript

2008-02-04 Thread Tony Cappellini
I tried the same - after seeing a post regarding calling Python from an Excel sheet. It seems some people have done this, as it is posted on several different websties. However, I'm getting an error on this line sc.Language = python A script engine for the specified language can not be

[python-win32] Executing eval function in VBscript

2008-02-04 Thread Tony Cappellini
Date: Mon, 04 Feb 2008 10:05:11 -0500 From: bob gailer [EMAIL PROTECTED] Subject: Re: [python-win32] Executing eval function in VBscript To: Janakiraman Mohanakrishnan [EMAIL PROTECTED] Cc: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1;

Re: [python-win32] Executing eval function in VBscript

2008-02-04 Thread Tony Cappellini
I may have a type in my previous posts. I have only used it with VB6 (not .NET) http://msdn2.microsoft.com/en-us/library/aa227400.aspx On Feb 4, 2008 6:30 PM, bob gailer [EMAIL PROTECTED] wrote: Tony Cappellini wrote: Date: Mon, 04 Feb 2008 10:05:11 -0500 From: bob gailer [EMAIL PROTECTED

Re: [python-win32] Executing eval function in VBscript

2008-02-04 Thread Tony Cappellini
http://msdn2.microsoft.com/en-us/library/aa227633(VS.60).aspx On Feb 4, 2008 6:30 PM, bob gailer [EMAIL PROTECTED] wrote: Tony Cappellini wrote: Date: Mon, 04 Feb 2008 10:05:11 -0500 From: bob gailer [EMAIL PROTECTED] Subject: Re: [python-win32] Executing eval function in VBscript

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-01-31 Thread Tony Cappellini
Why not just format the entire column as string data, before calling Python? That's just requires a few menu clicks, then pass that column to Python. Another option is to use a Python library called xlrd, which reads Excel (.XLS) files from Python. This way you can avoid using COM and the need to

Re: [python-win32] Check if user has windows administrator

2008-01-14 Thread Tony Cappellini
Follow-up question. Why does type-ahead in PythonWin not show more functions after ctypes.windll. ? Is this because of late-binding??? Message: 3 Date: Mon, 14 Jan 2008 21:29:39 +0200 From: Graeme Glass [EMAIL PROTECTED] Subject: Re: [python-win32] Check if user has windows administrator

Re: [python-win32] python-win32 Digest, Vol 58, Issue 4

2008-01-06 Thread Tony Cappellini
Rename the main script in your python application so it's extension is .pyw Replace the word console in the py2exe setup.py file, to windows Message: 3 Date: Fri, 4 Jan 2008 17:43:40 -0100 From: Jo?o Abrantes [EMAIL PROTECTED] Subject: [python-win32] Starting a .exe py2exe program in

Re: [python-win32] python-win32 Digest, Vol 57, Issue 14

2007-12-12 Thread Tony Cappellini
Message: 4 Date: Wed, 12 Dec 2007 21:41:15 +0100 From: Sebastian Friebe [EMAIL PROTECTED] Subject: Re: [python-win32] USB access using win32file.deviceIOcontrol To: Python-Win32 List python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Tim Roberts

Re: [python-win32] USB access using win32file.deviceIOcontrol

2007-12-12 Thread Tony Cappellini
I recently wrote some C code to send SATA commands to a system drive, using the ATA pass through layer. I found this news group very helpful, since it deals with drivers. http://groups.google.com/group/microsoft.public.windowsxp.device_driver.dev/topics I wouldn't mentioned Python on that

Re: [python-win32] Detect when the user launches or closes a

2007-11-20 Thread Tony Cappellini
Patrick, See if this helps. http://www.mindtrove.info/articles/pyhook.html I think it's somewhat similar to Tim Robert's suggestion, just packaged differently. I haven't tried it myself- so let us know how it works for your situation. Message: 7 Date: Mon, 19 Nov 2007 15:15:33 -0800 From:

Re: [python-win32] python-win32 Digest, Vol 54, Issue 14

2007-09-23 Thread Tony Cappellini
Take a look at SWIG and BOOST. Message: 1 Date: Sun, 23 Sep 2007 09:23:54 +0200 From: Aviel, Gal [EMAIL PROTECTED] Subject: Re: [python-win32] Python COM Server, C++ Client - How ??? To: Ryan Ginstrom [EMAIL PROTECTED], python-win32@python.org Message-ID:

[python-win32] Having multiple versions of PythonWin installed concurrently

2007-08-09 Thread Tony Cappellini
I'm using Python2.5 PythonWin build210 for my main development. I need to install a package that only runs under Python2.4, and I'd like to have a corresponding version of PythonWin for 2.4 installed as well. Switching between Python2.4 2.5 is easy enough to deal with using Python environment

Re: [python-win32] Python-win32 Digest, Vol 50, Issue 5

2007-05-03 Thread Tony Cappellini
When your program starts, take a snapshot of all the storage devices. You can do this with a timer, every few seconds or so. If the new snapshot changes from the original, you can call an API to see if the new device is removable or not. This won't tell you if it's a USB drive specifically, but

[python-win32] How to use IExtractImage in python

2007-04-19 Thread Tony Cappellini
Steven Would it be possible to launch AutoCad, then use Python/PIL to do screenshots of the images? Message: 1 Date: Wed, 18 Apr 2007 09:15:29 -0400 From: Steven James [EMAIL PROTECTED] Subject: [python-win32] How to use IExtractImage in python To: python-win32@python.org Message-ID:

[python-win32] Release notes for Build 210

2007-03-19 Thread Tony Cappellini
I'm trying to find the release notes (bug fixes plus new features) for Build 210. http://sourceforge.net/project/showfiles.php?group_id=78018 but don't see these in the PyWin32 project in sourceforge. Are these available online, or does one have to download and install Build 210 to get the

Re: [python-win32] Release notes for Build 210

2007-03-19 Thread Tony Cappellini
- Original Message - From: Tony Cappellini [EMAIL PROTECTED] Date: Monday, March 19, 2007 1:12 pm Subject: [python-win32] Release notes for Build 210 I'm trying to find the release notes (bug fixes plus new features) for Build 210. http://sourceforge.net/project/showfiles.php

[python-win32] How to detect User presseing escape, or clicking cancel in call to win32gui.GetOpenFileNameW()

2007-03-14 Thread Tony Cappellini
I'm trying to understand how to detect a user pressing Escape, or clicking on Cancel when win32gui.GetOpenFileNameW() is called. When I press escape when the FileOpen dialogue is present, I see the following error with Python2.5/PWin32 Build 210 error: (0, 'GetOpenFileNameW', 'No error message

[python-win32] win32con

2007-03-14 Thread Tony Cappellini
Is it an oversight that the win32con constants are not listed in the PythonWin help? ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Can't post to the list- who is the admin?

2007-03-13 Thread Tony Cappellini
I've been trying to post messages for a few days now- I keep getting replies telling me my messages are being held. I've verified that I am subscribed with this address, and I did not post the messages to the sub/ubsub address. Who is the admin? thanks

[python-win32] How to detect User pressing escape, or clicking cancel in call to win32gui.GetOpenFileNameW()

2007-03-13 Thread Tony Cappellini
I'm trying to understand how to detect a user pressing Escape, or clicking on Cancel when win32gui.GetOpenFileNameW() is called. When I press escape when the FileOpen dialogue is present, I see the following error with Python2.5/PWin32 Build 210 error: (0, 'GetOpenFileNameW', 'No error message

Re: [python-win32] Python-win32 Digest, Vol 48, Issue 2

2007-03-05 Thread Tony Cappellini
Date: Sun, 4 Mar 2007 16:18:55 -0500 From: Roger Upole [EMAIL PROTECTED] Subject: [python-win32] Re: win32gui.GetOpenFileName() To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original This function expects a

Re: [python-win32] Python-win32 Digest, Vol 46, Issue 18

2007-01-24 Thread Tony Cappellini
If you want to hide the window which your app was launched, rename the .py file to .pyw You wan't see the console window then Message: 9 Date: Wed, 24 Jan 2007 09:40:47 +0100 From: le dahut [EMAIL PROTECTED] Subject: [python-win32] Launch process To: python-win32@python.org Message-ID: [EMAIL

[python-win32] List of drives / removable drives

2006-12-20 Thread Tony Cappellini
Is there a way to differentiate between floppy, network, hard drive, removable (aka USB flash) drives? though Pythonwin? My searches came up with Tim Golden's mapped drives, which is somewhat helpful, but not particular to my needs.

Re: [python-win32] List of drives / removable drives

2006-12-20 Thread Tony Cappellini
Will try this- thanks On 12/20/06, Howard Lightstone [EMAIL PROTECTED] wrote: Is there a way to differentiate between floppy, network, hard drive, removable (aka USB flash) drives? though Pythonwin? ___ Python-win32 mailing list

[python-win32] Console width in characters

2006-12-02 Thread Tony Cappellini
I'm trying to find an API that will give me the width of a cmd console window, in charaters. GetSystemMetrics(SM_CXSCREEN) will return it in pixels- but that doesn't help. If the user resizes the console, I want to be able to adjust the text output of a program I've looked at the WConio

[python-win32] Programmatically capturing the text in a cmd console, for a program that has completed execution

2006-10-30 Thread Tony Cappellini
In Windows XP, after a program has completed it's execution in a cmd console...Is there a way to *programmatically* capture the text that is in the scrollback buffer?I usually set my buffers to 10K lines or more, so there is a lot of text I'd like to capture. I want to do this programmatically, as

Re: [python-win32] Midi files to Wav files

2005-11-18 Thread Tony Cappellini
Try pysonic http://pysonic.sourceforge.net/ Message: 2 Date: Thu, 17 Nov 2005 16:35:37 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: [python-win32] Midi files to Wav files To: python-win32@python.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1;

RE: [python-win32] win32com.Dispatch() vswin32com.client.gencache.EnsureDispatch() vswin32com.client.DispatchWithEvents()

2005-03-22 Thread Tony Cappellini
help(win32com.client.DispatchWithEvents) should print an IE example. At 12:56 AM 03/22/05, Mark Hammond wrote: I did see the example, but didn't know which form of Dispatch it works like. I've read Chapter 12 , several times- but this stuff doesn't COM easy to me. What I would like to know is-

[python-win32] Erratic python Win debugger operation

2005-03-02 Thread Tony Cappellini
Has anyone else had the problem with the PW debugger, where the debug toolbar goes away after running a script ? ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32