Re: [python-win32] win32api documentation

2009-10-13 Thread J
On Mon, Oct 12, 2009 at 12:13, Tim Golden wrote: > Ummm. Not quite. > > c.Win32_Processor is a class-ish thing which you have to call to > pull back the *list* of instances. Which you can then just > count. So something like this: > > n_processors = len (c.Win32_Processor ()) Thanks for saving me

Re: [python-win32] win32api documentation

2009-10-13 Thread Tim Golden
J wrote: And it does indeed work. We're using the latest 2.6, and so far everything has worked well. NumberOfCores and NumberOfLogicalProcessors does just what I hoped they would do, so now I have a small bit of n00b code: print "Getting processor information now...\n" I suspect you're coming

Re: [python-win32] win32api documentation

2009-10-13 Thread J
On Tue, Oct 13, 2009 at 12:33, Tim Golden wrote: > I suspect you're coming from a C background? Or something > similar. Python's a very versatile language and tries to > help you avoid boilerplate. So you can do things like this: Yeah... similar, I guess. C++ to some degree, VB, Basic, a smatter

Re: [python-win32] dde trouble

2009-10-13 Thread David G
Hi Patrick, Did you ever get resolution to the dde error you were getting? Traceback (most recent call last): File "D:\Documents\Eclipse\z_test_ecotect\test1.py", line 11, in conversation.Exec("get.app.computer") error: Exec failed I am having the same error now. I am trying to communic

[python-win32] Python and Windows Automation

2009-10-13 Thread Tony Cappellini
I'm curious what other users use for automating Windows & widgets with Python (on Windows platforms that is). By automating- I mean clicking buttons and activating check boxes, menus, maximizing/minimizing Windows, sending keystrokes, etc. >From what I've seen packages/frameworks like this are pre