Re: [python-win32] LocalService, COM

2013-10-31 Thread Dahlstrom, Roger
Because both LocalService and NetworkService have minimal privileges on the local computer, while LocalSystem, admin, and guest have more extensive privileges. From: python-win32 [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Tore Klars Sent: Thursday, October

Re: [python-win32] Editor find and replace can't count - off by one error

2012-02-10 Thread Dahlstrom, Roger
Count from zero? Via Blackberry - Original Message - From: Mark Lawrence [mailto:breamore...@yahoo.co.uk] Sent: Friday, February 10, 2012 09:17 PM To: python-win32@python.org Subject: [python-win32] Editor find and replace can't count - off by one error Hi all, I assume that

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Dahlstrom, Roger
Sure there is, autologon! -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Tim Roberts Sent: Thursday, December 02, 2010 3:03 PM To: Python-Win32 List Subject: Re: [python-wi

Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoit ?

2010-08-06 Thread Dahlstrom, Roger
Python-Win32... As in win32 As in windows... :-) - Original Message - From: python-win32-bounces+rdahlstrom=directedge@python.org Cc: python-win32@python.org Sent: Fri Aug 06 18:34:55 2010 Subject: Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoi

Re: [python-win32] how to disable word macro ?

2010-06-23 Thread Dahlstrom, Roger
What version of Word? From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Axel Rousseau Sent: Wednesday, June 23, 2010 4:20 AM To: python-win32@python.org Subject: [python-win32] how to disable word macro

Re: [python-win32] Python Hooks Navigation Logger Windows

2010-06-15 Thread Dahlstrom, Roger
You could tail the log file... From: python-win32-bounces+rdahlstrom=directedge@python.org To: t...@probo.com ; python-win32@python.org Sent: Tue Jun 15 18:33:41 2010 Subject: Re: [python-win32] Python Hooks Navigation Logger Windows On 6/14/2010 8:14 PM

Re: [python-win32] Python Automation Question

2010-02-18 Thread Dahlstrom, Roger
>> -Original Message- >> From: python-win32-bounces+rdahlstrom=directedge@python.org >> [mailto:python-win32- >> bounces+rdahlstrom=directedge@python.org] On Behalf Of Tim Roberts >> Sent: Wednesday, February 17, 2010 5:43 PM >> To: python-win32@python.org >> Subject: Re: [python-w

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Dahlstrom, Roger
Ping it and get the address. -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Dave Angel Sent: Thursday, August 27, 2009 4:52 AM To: Python-Win32 List Subject: [python-win32]

Re: [python-win32] writing hyphenated values in csv

2009-05-26 Thread Dahlstrom, Roger
Additionally, your csv file is *not* being auto-corrected. If this file is supposed to be able to be imported into things *other* than Excel, leave it alone and do not put an equals in front of it. If you were to open your file in Notepad or some other text editor, you'd see the value as you e

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

2009-04-30 Thread Dahlstrom, Roger
Or if it were something that you were doing while RDP’d in, you could just select the window, hit alt-space, select move, then use the cursor keys to place the app where you want it. Or use restore first if it’s in a maximized state. I’m not sure that this is something that even requires pytho

Re: [python-win32] is these modules available for IA64bit

2009-03-30 Thread Dahlstrom, Roger
Possibly 64 bit python is installed instead of 32 bit python? If you install 32 bit python, you'll have your libraries. -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Tim

Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Dahlstrom, Roger
It would be much easier for us to help if we could see your code, and the error you receive when you try to run it. From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of ve

Re: [python-win32] Accessing Interfaces

2009-02-20 Thread Dahlstrom, Roger
That would be Python. -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Te-jé Rodgers Sent: Friday, February 20, 2009 6:20 PM To: python-win32@python.org Subject: Re: [python-

Re: [python-win32] Serious bug in pywin32?

2009-01-30 Thread Dahlstrom, Roger
Tried it in a few versions on a couple computers, and was unable to reproduce. -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Mark Tolonen Sent: Friday, January 30, 2009 9:

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Dahlstrom, Roger
If you open it in another thread, will it die upon the thread dying? From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Gary Scorby Sent: Tuesday, January 20, 2009 5:37 P

Re: [python-win32] Writing to Excel performance

2008-12-12 Thread Dahlstrom, Roger
python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Tim Roberts Sent: Friday, December 12, 2008 1:24 PM To: Python-Win32 List Subject: Re: [python-win32] Writing to Excel performance Dahlstrom, Roger wrote: > Couple of tricks I've used with some success...

Re: [python-win32] Writing to Excel performance

2008-12-12 Thread Dahlstrom, Roger
Couple of tricks I've used with some success... 1. If this is data only, and not formulas, you can write the data as an html table, but name the file something.xls - Excel will open it natively. 2. If you need special formatting or formulas, you can write the data as Excel's HTML templates (ma

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Dahlstrom, Roger
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Friday, December 05, 2008 5:30 PM To: Python-Win32 List Subject: Re: [python-win32] Walking the registry and creating reg files Dahlstrom, Roger wrote: > I think my mistake was assuming tha

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Dahlstrom, Roger
x27; Subject: Re: [python-win32] Walking the registry and creating reg files Dahlstrom, Roger wrote: > Well, like I said, I've never done it in Python, and this is going back a > bit, so some things might be different, but I'm not talking about RegSaveKey > or RegRestoreKey, I'

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Dahlstrom, Roger
permissions for that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Friday, December 05, 2008 1:20 PM To: Python-Win32 List Subject: Re: [python-win32] Walking the registry and creating reg files Dahlstrom, Roger wrote: > ... Basically

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Dahlstrom, Roger
CTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Friday, December 05, 2008 12:44 PM To: Python-Win32 List Subject: Re: [python-win32] Walking the registry and creating reg files Dahlstrom, Roger wrote: > If you can read the registry, you can save it without any other special > per

Re: [python-win32] Walking the registry and creating reg files

2008-12-05 Thread Dahlstrom, Roger
If you can read the registry, you can save it without any other special permissions. It is just text. Just export a branch of your own registry and open it with notepad to see the format. I do it all the time, it works fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

Re: [python-win32] error: 'CoInitialize not found'

2008-09-30 Thread Dahlstrom, Roger
If you didn't get the answer already, you need to call pythoncom.CoInitialize() prior to the code that is throwing an error, probably put it right after init. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 29, 2

Re: [python-win32] name not defined

2008-07-30 Thread Dahlstrom, Roger
That seems like a roundabout way to send an email. def sendEmail(toe, frome, subject, body): import smtplib headers = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" % (frome, toe, subject) message = headers + body mailsvr = "MyMailServer" mailServer = smtplib.SMTP(mailsvr) m

Re: [python-win32] Problem with simple example

2008-07-29 Thread Dahlstrom, Roger
I copied and pasted your code (except for removing the line break in your line 2) and it worked fine for me. import win32com.client o = win32com.client.Dispatch("Excel.Application") o.Visible = 1 o.Workbooks.Add() o.Cells(1,1).Value = "Hello" This produced a visible Excel window, with Book1 vi

Re: [python-win32] FW: MSMQ - cannotcatchCOM_ERROR with"pythoncom.com_error"

2008-07-23 Thread Dahlstrom, Roger
Notepad++ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lynton Grice Sent: Wednesday, July 23, 2008 11:38 AM To: python-win32@python.org Subject: [python-win32] FW: MSMQ - cannotcatchCOM_ERROR with"pythoncom.com_error" Hey Tim, Wow, you are 100% cor

Re: [python-win32] P3K?

2008-06-23 Thread Dahlstrom, Roger
Well *I* used to line up rocks in to ones and zeros. Then I had a toucan that would interpret them, and chisel the gui on to a stone tablet. I still remember how upset everyone was when we introduced papyrus. ___ python-win32 mailing list python-win32@

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Dahlstrom, Roger
-Original Message- From: Paul Moore [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 7:23 AM To: Dahlstrom, Roger Cc: Python-Win32 List; [EMAIL PROTECTED] Subject: Re: [python-win32] How to get all the variables in a python shell On 29/05/2008, Dahlstrom, Roger <[EMAIL PROTEC

Re: [python-win32] How to get all the variables in a python shell

2008-05-29 Thread Dahlstrom, Roger
-Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden > Sent: Thursday, May 29, 2008 4:11 AM > To: Python-Win32 List; [EMAIL PROTECTED] > Cc: Python-Win32 List > Subject: Re: [python-win32] How to get all the variables in a python shell > > [EMAIL P

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Dahlstrom, Roger
I think there are perhaps billions of people who get down on their knees every day and pray to whatever god they believe in that they had such problems as a space between a function name and a parenthesis. For crying out loud, it's a simple search/replace at *worst* to change this to be however

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread Dahlstrom, Roger
Ha - you'd hate my code then. I like a lot of spaces, makes it easier for me to keep the blocks seperated. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden Sent: Saturday, May 24, 2008 4:28 AM Cc: Python-Win32 List Subject: Re: [python-win32]

Re: [python-win32] Request for comments

2008-05-23 Thread Dahlstrom, Roger
I'd add to that that I prefer the space, and I only use notepad++ for coding. Everything worked fine for me. My only suggestion was that the navigation was a bit inconsistent on the front page - I had to scroll down to see what the "contents" were - the "registry" section was hidden at first.

Re: [python-win32] Volume Serial Number

2008-05-16 Thread Dahlstrom, Roger
only way I know how to do it is import os out = os.popen("dir SomethingThatDoesntExist") print out From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rickey, Kyle W Sent: Friday, May 16, 2008 11:36 AM To: python-win32@python.org Subject: [python-win

Re: [python-win32] Vista and listening sockets

2008-05-06 Thread Dahlstrom, Roger
One would hope that there is no way to accomplish what you are looking to do. The user could, however, turn off their security, or register your app to run as administrator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of le dahut Sent: Tuesday, May 06,

Re: [python-win32] Help about printing

2008-05-01 Thread Dahlstrom, Roger
My quantum printer prints both at the same time, but every time I try to tell which is which, it changes the outcome. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Thursday, May 01, 2008 1:38 PM To: Python-Win32 List Subject: Re: [pyt

Re: [python-win32] Creating python com objects

2008-04-23 Thread Dahlstrom, Roger
I might be greatly misinterpreting what you're trying to do here, but RegisterDragDrop registers a window, not a com object. The drop target instance would be associating the target with that particular window. Have you checked out wxDropTarget? From: [EMAIL

Re: [python-win32] Size of directory

2008-04-22 Thread Dahlstrom, Roger
You have to walk the directory tree and sum each file's size. Windows does this too - try your right-click properties on a large directory and see how long it takes. That's also what du does. There are, however, some recipes that should make this fairly simple for you - try this: http://asp

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden Sent: Monday, April 14, 2008 3:10 PM Cc: Python-Win32 List Subject: Re: [python-win32] IsHungAppWindow or equivalent Dahlstrom, Roger wrote: > Yeah - I see the MSDN page and the HWND parame

Re: [python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
Dahlstrom, Roger wrote: > My questions are: > 1. Are there any win32 Python extensions that expose this? If so, > which ones? I doubt it; it's not available prior to Windows 2000, and MSDN says they might decide to change it later. > 2. If there are not extensions, does

[python-win32] IsHungAppWindow or equivalent

2008-04-14 Thread Dahlstrom, Roger
I am trying to determine whether an application is reporting "Not Responding" (like what the task manager shows). I'm not married to the IsHungAppWindow method, it was just suggested to me, and seemed like the right path to go down. My questions are: 1. Are there any win32 Python extensions t