Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
>.> wrote: > - Original Message - > Tim Roberts wrote: > > >> Now, you know that "Current Bandwidth" is not what you want, right? >> This just shows it is a 100Mbit connection. >> > > Yes I am, win32pdhutil.browse() won't report anything for Bytes Received, > Sent, or Total so I

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread >.>
- Original Message - Tim Roberts wrote: > Now, you know that "Current Bandwidth" is not what you want, right? > This just shows it is a 100Mbit connection. Yes I am, win32pdhutil.browse() won't report anything for Bytes Received, Sent, or Total so I used Current Bandwidth. > It's a 32

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
>.> wrote: > That works for XP but not Vista, I guess M$ changed the API in Vista. > Oh by the way I mean to write win32pdhutil.browse() earlier. Thanks > for the help. > I didn't run it as admin in Vista before so I gave your script a try. > The output from your script as run in vista by admini

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread >.>
That works for XP but not Vista, I guess M$ changed the API in Vista. Oh by the way I mean to write win32pdhutil.browse() earlier. Thanks for the help. I didn't run it as admin in Vista before so I gave your script a try. The output from your script as run in vista by administrator follows: [code]

Re: [python-win32] python layoutdialog

2008-01-23 Thread Tim Roberts
kNish wrote: > Maya python command layoutDialog, in my view works strange. It > takes the procedure from MEL equivalent if exists else gives an error. > How may I successfully execute a layoutDialog in python in maya. > This is a Maya question, so you should ask on a Maya mailing list.

Re: [python-win32] Export emails from msoutlook to my local directory

2008-01-23 Thread Tim Roberts
Antony Joseph wrote: > > 1.Export emails from msoutlook to my local directory > > The problem i am facing is that the embedded images are > getting as attachments Of course, because that's exactly how they are sent. What did you expect? Email is a textual media. There's no such thing as an emb

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Roberts
>.> wrote: > I got the interface name from win32util.browse() in Vista and XP. I > think XP is Giving me the wrong number because it differs from what > I'm reading in perfmon everytime and it seems to be counting down from > that number after every subsequent call. > ex: perfmon will give me a

Re: [python-win32] Creating a process and getting a handle

2008-01-23 Thread Mike Driscoll
Hi Tim G., > > I can get the handle by doing this: > > > > hwnd = win32gui.FindWindow('IEFrame',None) > > > > But if there's multiple Explorer windows open, I may not get the > > window I want. That's why I would like to create my own so > I can have > > what amounts to an "exclusive" hand

Re: [python-win32] Creating a process and getting a handle

2008-01-23 Thread Mike Driscoll
Alec, > > Date: Tue, 22 Jan 2008 23:26:50 -0800 (PST) > From: Alec Bennett <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Creating a process and getting a handle > To: Tim Roberts <[EMAIL PROTECTED]>, Python-Win32 List > > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; char

Re: [python-win32] Creating a process and getting a handle

2008-01-23 Thread Mike Driscoll
Tim, Mike Driscoll wrote: > > I am trying to get a handle on an external process (Internet Explorer 6 in > > this case) that I open using win32process. I need the handle so that I can > > make said process the top window. > When you call CreateProcess, that window should automatically become th

[python-win32] python layoutdialog

2008-01-23 Thread kNish
Hi, Maya python command layoutDialog, in my view works strange. It takes the procedure from MEL equivalent if exists else gives an error. How may I successfully execute a layoutDialog in python in maya. BRgds, kNish ___ python-win32 mailing li

[python-win32] Export emails from msoutlook to my local directory

2008-01-23 Thread Antony Joseph
1.Export emails from msoutlook to my local directory The problem i am facing is that the embedded images are getting as attachments Any body help me to solve this problem. Antony ___ python-win32 mailing list python-win32@python.org http://mail.python

Re: [python-win32] Getting Network Information/Statistics

2008-01-23 Thread Tim Golden
>.> wrote: > I got the interface name from win32util.browse() in Vista and XP. I think XP > is Giving me the wrong number because it differs from what I'm reading in > perfmon everytime and it seems to be counting down from that number after > every subsequent call. > ex: perfmon will give me a la

Re: [python-win32] what's wrong with the wmi.Terminate() method?

2008-01-23 Thread Tim Golden
thunder thunder54007 wrote: > hi, here is my script: > > import win32con > import time > import wmi > c = wmi.WMI() > for process in c.Win32_Process(name = "notepad.exe"): > print process.ProcessId, process.Name > process.Terminate () > > when I have only one notepad.exe process in my sys

[python-win32] what's wrong with the wmi.Terminate() method?

2008-01-23 Thread thunder thunder54007
hi, here is my script: import win32con import time import wmi c = wmi.WMI() for process in c.Win32_Process(name = "notepad.exe"): print process.ProcessId, process.Name process.Terminate () when I have only one notepad.exe process in my system, this works fine, but when I have more than o

Re: [python-win32] Creating a process and getting a handle

2008-01-23 Thread Tim Golden
Mike Driscoll wrote: > Hi, > > I am trying to get a handle on an external process (Internet Explorer 6 in > this case) that I open using win32process. I need the handle so that I can > make said process the top window. Here's what I've tried so far: > > > > import win32process > import win32gui