[python-win32] Re: RegCreateKeyEx

2008-02-15 Thread Roger Upole
Mark Hammond" wrote: > Roger has already added this to pywin32, so build 211 of pywin32 will have > it. Build 211 should be ready in a week or so too - I believe that > everythign outstanding has been done, and once Roger finishes checking in > his outstanding stuff (which he may have already done

Re: [python-win32] Some problems with instantiating a type library

2008-02-15 Thread Tim Roberts
pierre cutellic wrote: > I'm trying to do this way because the Rhino Type Library and the > RhinoScript Type Library > are separated and I need it to script some geometry. Right, there are two separate objects, and you HAVE two separate objects. The "Rhino" object that you start with is the Rhi

Re: [python-win32] shell.SHChangeNotify failed to refresh icons

2008-02-15 Thread Mark Hammond
> I tried passing SHCNE_UPDATEDIR to the parent dir of the icons, but > the icons were not refreshed. Win32traceutil also didn't record any > overlay icons requests. Here's how it was done: > > dir = os.path.dirname(path) > pidl, ignore = shell.SHILCreateFromPath(dir, 0) > print "notif

Re: [python-win32] Some problems with instantiating a type library

2008-02-15 Thread Tim Roberts
pierre cutellic wrote: > Thanks Tim, its becoming better > > I'm doing the following: > > import win32com.client, time > from RSInterface import RhinoScript > time.sleep(2) > > Rhino.Visible = True > > RS = Rhino.GetScriptObject() > RS = RS.RhinoScript > > But it's returning the following: > >

Re: [python-win32] How to work with Dispach callback?

2008-02-15 Thread Mark Hammond
It appears that the "universal gateway" support in pywin32 doesn't handle VT_RECORD. I doubt this would be hard to fix, but its not something I have time to look at in the short term. I'd suggest you open a bug at sourceforge, and/or let me know if you are interested in getting your hands dirty a

Re: [python-win32] RegCreateKeyEx

2008-02-15 Thread Mark Hammond
> All, > > I'm looking for a way to access the RegCreateKeyEx() using the pywin32 > libraries. > > The circumstances are as follows: I'm running Python 2.4 on a Windows > Vista 64-bit system and need a way to access 64-bit keys in the > registry. Per > http://msdn2.microsoft.com/en-us/library/aa3

[python-win32] RegCreateKeyEx

2008-02-15 Thread Brian Storoe
All, I'm looking for a way to access the RegCreateKeyEx() using the pywin32 libraries. The circumstances are as follows: I'm running Python 2.4 on a Windows Vista 64-bit system and need a way to access 64-bit keys in the registry. Per http://msdn2.microsoft.com/en-us/library/aa384129(VS.85).a

Re: [python-win32] Some problems with instantiating a type library

2008-02-15 Thread Tim Roberts
pierre wrote: > Hi, i'm trying to make use of win32 and makepy for automatizing the > CAD/CAMsoftware Rhino3D. > > I'm beginning with something like this: > > import win32com.client > from RSInterface import RhinoScript #Interface made by makepy from the > RhinoScript type library > > Rhino = win

[python-win32] Some problems with instantiating a type library

2008-02-15 Thread pierre
Hi, i'm trying to make use of win32 and makepy for automatizing the CAD/CAMsoftware Rhino3D. I'm beginning with something like this: import win32com.client from RSInterface import RhinoScript #Interface made by makepy from the RhinoScript type library Rhino = win32com.client.Dispatch('Rhino4.A

Re: [python-win32] How to get active process list ?

2008-02-15 Thread Stef Mientki
thanks Tim, that works. cheeers, Stef Tim Johnson wrote: > Have you tried using WMI? http://timgolden.me.uk/python/wmi.html > > import wmi > w = wmi.WMI() > processes = w.instances('Win32_Process') > for process in processes: > print process.name > > On Fri, Feb 15, 2008

Re: [python-win32] How to get active process list ?

2008-02-15 Thread Tim Johnson
Have you tried using WMI? http://timgolden.me.uk/python/wmi.html import wmi w = wmi.WMI() processes = w.instances('Win32_Process') for process in processes: print process.name On Fri, Feb 15, 2008 at 10:11 AM, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > How do I get the list of activ

[python-win32] How to get active process list ?

2008-02-15 Thread Stef Mientki
hello, How do I get the list of active processes ? I tried this call, but ... items, instances = win32pdh.EnumObjectItems(None,None,object, win32pdh.PERF_DETAIL_WIZARD) return instances ... it doesn't reflect dynamic changes, just the status quo at the start of my program :-( thanks,

Re: [python-win32] shell.SHChangeNotify failed to refresh icons

2008-02-15 Thread TK Soh
On Thu, Feb 14, 2008 at 11:56 PM, TK Soh <[EMAIL PROTECTED]> wrote: > On Thu, Feb 14, 2008 at 10:55 PM, Mark Hammond > <[EMAIL PROTECTED]> wrote: > > MSDN documents that " For performance reasons, multiple notifications may > > be combined into a single notification. For example, if a large nu

Re: [python-win32] How to work with Dispach callback?

2008-02-15 Thread Alexandr N Zamaraev
Mark Hammond wrote: > I'd suggest passing 'useDispatcher=1' to com_wrap, so that debug output is > generated as your object is called (you can see it via the win32traceutil.py > tool). Thank you for the reply. I'd made it in such way: class LocateCommandEvents(object): _com_interfaces_ = [IID_