Re: [python-win32] WMI troubles!

2010-01-25 Thread Tim Roberts
Lincoln Yeoh wrote: > Hi, > > Coincidentally I'm using the hotkey code from Tim's url and it works > quite well. > > But I'm not sure which is better: > > user32.GetMessageA or user32.GetMessageW (along with the corresponding > user32.DispatchMessageA or user32.DispatchMessageW of course). That de

Re: [python-win32] WMI troubles!

2010-01-24 Thread Lincoln Yeoh
Hi, Coincidentally I'm using the hotkey code from Tim's url and it works quite well. But I'm not sure which is better: user32.GetMessageA or user32.GetMessageW (along with the corresponding user32.DispatchMessageA or user32.DispatchMessageW of course). Regards, Link. At 04:31 AM 1/16/20

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Golden
On 15/01/2010 20:57, Alex Hall wrote: > Thanks!! I "top post" since, when you use a screen reader, it is far > easier to read a response straight away than it is to wade through a > bunch of text you have already read, complete with many repetitions of > "greater than". I thought of that a few se

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

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Golden
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 write each function in its own script and put

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Golden
On 15/01/2010 18:26, Alex Hall wrote: What is the syntax to write the traceback to a text file? I have the file object and I can open and close the file, I just need the command, like "f.write(StackTrace())" or whatever the command is. I will try the alt-space idea as well. Just to answer this

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Roberts
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 write each function in its own script and put a hotkey on

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
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 incremente

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Roberts
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 > incremented once. When I first started this last week I did put any > ret

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
say "calling pythoncom.CoInitialize() in every callback", what do you mean by 'callback'? Have a great day, Alex Email: mehg...@gmail.com - Original Message - From: "Tim Roberts" To: "Python-Win32 List" Sent: Friday, January 15, 2010 13:33

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
mpersonationLevel=impersonate,authenticationLevel=def ault}//localhost/.Win32_OperatingSystem Have a great day, Alex Email: mehg...@gmail.com ----- Original Message - From: "Aahz" To: "Alex Hall" Cc: Sent: Friday, January 15, 2010 13:18 Subject: Re: [python-win32] WMI troub

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Roberts
Alex Hall wrote: > I am trying to put the stack trace into a file, since I cannot copy > and paste from the cmd line output. Sure you can. Alt-Space, Edit, Select-All. Then press "Enter" to copy the entire contents of the shell window to the clipboard. If you were sighted, I would suggest Alt-

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Roberts
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 information, and it was

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
@gmail.com - Original Message - From: "Aahz" To: "Alex Hall" Cc: 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 and paste from t

Re: [python-win32] WMI troubles!

2010-01-15 Thread Aahz
On Fri, Jan 15, 2010, Alex Hall wrote: > > I am trying to put the stack trace into a file, since I cannot copy and > paste from the cmd line output. Is there a way to do this? Also, if you > run the file (assuming you have all the dependencies) the error happens > as soon as you press windows-`

Re: [python-win32] WMI troubles!

2010-01-15 Thread Alex Hall
quot;print" and comment out the line creating the speaker object so that you do not have to install sayTools. Have a great day, Alex Email: mehg...@gmail.com - Original Message - From: "Tim Golden" Cc: Sent: Friday, January 15, 2010 4:00 Subject: Re: [python-win32] WMI tr

Re: [python-win32] WMI troubles!

2010-01-15 Thread Tim Golden
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 that works well