[python-win32] network/internet info?

2010-04-12 Thread Alex Hall
Hi all, I have some information I would like to get, and I wonder if WMI can do it. If so, what class do I need? If not, what other package(s) would do the trick? 1. current network connection type (ethernet, wifi, bluetooth, whatever). 2. Current up/down speed (such as 200kb up, 100kb down) for

[python-win32] wmi: processor class seems slow

2010-03-04 Thread Alex Hall
Hi all, I have a script that gets the load of a given core, or the average of all cores, along with other information, like free ram and hard disk space. The script runs fine, but when I give it processor-related commands it is sometimes rather fast and sometimes quite slow. Delays range from one

Re: [python-win32] wmi: processor class seems slow

2010-03-04 Thread Alex Hall
. Thanks. On 3/4/10, Tim Golden m...@timgolden.me.uk wrote: On 04/03/2010 18:42, Alex Hall wrote: Hi all, I have a script that gets the load of a given core, or the average of all cores, along with other information, like free ram and hard disk space. The script runs fine, but when I give

[python-win32] WMI processor class is very slow?

2010-03-04 Thread Alex Hall
Hi all, I wrote a couple hours ago asking why wmi information about my processor (core and overall load) is very slow, delaying up to ten or fifteen seconds when disk and ram information is immediate. Here is the link to the zipped project file. I do not have svn or anything fancy like that. Note

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
] WMI troubles! On 15/01/2010 05:05, Alex Hall wrote: Hello all, I just joined this list. I am pretty new to Python, but I really like and hope to get more into it; Welcome to the list. And to Python. Anyway, onto the problem. I am working on a simple resource monitor (I have never found one

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
- Original Message - From: Aahz a...@pythoncraft.com To: Alex Hall mehg...@gmail.com Cc: python-win32@python.org Sent: Friday, January 15, 2010 13:18 Subject: Re: [python-win32] WMI troubles! On Fri, Jan 15, 2010, Alex Hall wrote: I am trying to put the stack trace into a file, since I cannot

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
Message - From: Aahz a...@pythoncraft.com To: Alex Hall mehg...@gmail.com Cc: python-win32@python.org Sent: Friday, January 15, 2010 13:18 Subject: Re: [python-win32] WMI troubles! On Fri, Jan 15, 2010, Alex Hall wrote: I am trying to put the stack trace into a file, since I cannot copy

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
: [python-win32] WMI troubles! Alex Hall wrote: Anyway, onto the problem. I am working on a simple resource monitor (I have never found one that works well with screen readers, so I am writing one). I am using python2.6 with all the win32 libs installed. My monitor will use wmi to get all of its

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
Sent: Friday, January 15, 2010 14:20 Subject: Re: [python-win32] WMI troubles! Alex Hall wrote: Regarding question 2, about only receiving one number for two cores, I have a counter in the loop which gets incremented each time the loop runs. This counter always ends up at 1, not 2, so it is only

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
Subject: Re: [python-win32] WMI troubles! On 15/01/2010 19:38, Alex Hall wrote: I do not want a single script because, eventually, the plan is to have a keystroke for core 1, a keystroke for core 2, a keystroke for percent of ram used, a keystroke for hard disk space, and so on. While I could

[python-win32] letter and number key codes for win32con

2010-01-15 Thread Alex Hall
Hello all, I am successfully using hotkeys with win32con (thanks so much for that tip!!) but I want to use the numbers 1-0 (on the keyboard, not the numpad) instead of F keys. The code example I have says to use ord('x'), but I am not quite sure what this means or how to give the result of

Re: [python-win32] letter and number key codes for win32con

2010-01-15 Thread Alex Hall
Subject: Re: [python-win32] letter and number key codes for win32con Alex Hall wrote: I am successfully using hotkeys with win32con (thanks so much for that tip!!) but I want to use the numbers 1-0 (on the keyboard, not the numpad) instead of F keys. The code example I have says to use ord

[python-win32] WMI troubles!

2010-01-14 Thread Alex Hall
Hello all, I just joined this list. I am pretty new to Python, but I really like and hope to get more into it; right now, it is my second-favorite, second only to java. I am a computer science major in my third year and currently only program as a hobby/for something to do. Also, I am blind so