Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-07 Thread Tim Roberts
public uses ebx, style:DWORD -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-06 Thread Tim Roberts
). The C version works fine, but the assembler version gets a DLL initialization error. I fixed that by adding mov eax, 1 to the start routine. See if that helps your issue. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-05 Thread Tim Roberts
()) '0x444d4163' hex(c.GetCpuidEdx()) '0x69746e65' C:\tmp Modifying this to accept the cpuid eax value as a parameter is left as an exercise for the reader. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-05 Thread Tim Roberts
J wrote: On Tue, Jan 5, 2010 at 16:53, Tim Roberts t...@probo.com wrote: C:\tmppython Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] onwin32 Type help, copyright, credits or license for more information. import ctypes c = ctypes.windll.cpuid hex

Re: [python-win32] Still looking for a method to get CPUID info ...

2010-01-05 Thread Tim Roberts
Tim Roberts wrote: J wrote: On Tue, Jan 5, 2010 at 16:53, Tim Roberts t...@probo.com wrote: C:\tmppython Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] onwin32 Type help, copyright, credits or license for more information. import ctypes c

Re: [python-win32] Question concerning wmi c.CIM_DataFile

2010-01-04 Thread Tim Roberts
on C:. You should be using the shell folder APIs to find the names of the well-known folders. Plus, the whole Local Settings\Temp folder is volatile. You should just be able to wipe out that whole directory without causing any damage. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Create a QueryInfo type Windows Shell Extension to provide InfoTip data in Windows Explorer

2010-01-04 Thread Tim Roberts
the mechanics of it: http://timgolden.me.uk/python/win32_how_do_i/add-my-own-icon-overlays.html -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python

Re: [python-win32] Python com server error

2009-12-30 Thread Tim Roberts
a mistake on the command line. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python com server error

2009-12-30 Thread Tim Roberts
even tried to run it from the IDLE and also failed. That's misspelled. It should be --register. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] Python com server error

2009-12-30 Thread Tim Roberts
to you. If you want to register, you call win32com.server.register.UseCommandLine. If you want to run the server, you call win32com.server.localserver.serve. Do you have code to do that? What does your Server.py code look like? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Read USB memory stick serial number

2009-12-29 Thread Tim Roberts
was introduced, and it is vanishingly unlikely that it will ever change in the future. However, the official word is that you should treat the device path as an opaque token. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-22 Thread Tim Roberts
a raw string, r'DOMAIN\ADMINUSER'. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] registering for power events

2009-12-15 Thread Tim Roberts
on XP. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] sort in EXCEL via pywin32

2009-12-15 Thread Tim Roberts
doesn't make sense in your case, since you only have one column. You should just be able to say xlApp.Range(B14:B24).Sort(Key1=xlApp.Range(B14), Orientation=1) That works for me. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] Windows idle time killing a process

2009-12-11 Thread Tim Roberts
power management setup to suspend or hibernate after an hour or two of idle time. The only sure-fire method that I'm aware of is to install mouse and keyboard hooks and watch the activity yourself. That cannot (today) be done in Python. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Intel Compilers, Intel MKL, math.h vs mathimf.h

2009-12-09 Thread Tim Roberts
bet it would be a challenge. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] can't set a property

2009-12-09 Thread Tim Roberts
, 'String' ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] can't set a property

2009-12-09 Thread Tim Roberts
John wrote: On Wednesday 09 December 2009 11:21:40 am Tim Roberts wrote: Well, remember that ItemName is not really an array. It's a function that happens to look like an array to VB. The Python COM support will usually provide Set and Get versions for indexed properties. Try

Re: [python-win32] What happened to python26.dll?

2009-12-08 Thread Tim Roberts
-to-64 transition. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] What happened to python26.dll?

2009-12-08 Thread Tim Roberts
of the Windows system directory. You can adjust that option in Explorer, in Tools, Folder Options, View. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] compiling IP2Location extention on win32

2009-12-02 Thread Tim Roberts
or the dynamic C runtime library. You can try doing this before you do the build: set LINK=/nod:msvcrt.lib but I suspect you're going to need to contact the IP2Location people to see if they support Python 2.6 on Windows. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Write to address on PhysicalDisk

2009-11-28 Thread Tim Roberts
? And which operating system? On Windows 7, Microsoft has changed the rules so that you can no longer write to a physical drive at all from user mode. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] com object in python

2009-11-23 Thread Tim Roberts
they would work. With C++, you have to write specific code to use IDispatch. What you expected can be done, using a lower-level interface like comtypes, but it's a lot more work. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] Passing c structure into Python script

2009-11-19 Thread Tim Roberts
wrapper that make this almost painless. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python for Windows extensions

2009-11-16 Thread Tim Roberts
builds of Python 2 with the Win32 extensions on Vista 64 and Windows 7 64 without any problems. As a driver writer, I do many of my hardware diagnostics in Python, so it's something I rely on fairly heavily. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Python for Windows extensions

2009-11-16 Thread Tim Roberts
, in DLLs with the same names. As long as one has not done anything egregiously stupid, the conversion is mostly just a matter of recompiling with the cross-compiler. What I'm saying is that there really aren't any compelling reasons for it NOT to be solid. -- Tim Roberts, t...@probo.com

Re: [python-win32] IRTD Interface differences in Excel 2003 and Excel 2007

2009-11-16 Thread Tim Roberts
) For what it's worth, -2147352567 is 0x80020009 which is DISP_E_EXCEPTION. That could mean anything from a bad pointer to a math error to an unhandled C++ exception. Is your ServerStart returning a value greater than 0? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] IE interface PAMIE javascript click or win32 ie click

2009-11-12 Thread Tim Roberts
in Python. You're going to have to do some reading about this, both about the win32com toys, and about the InternetExplorer automation interface, and about the IHTMLDocument2 interface. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Unmuting the Microphone

2009-11-09 Thread Tim Roberts
, and mixerSetControlDetails to clear the mute state. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Extending Vista/Windows7 with Python

2009-11-05 Thread Tim Roberts
. REFPROPERTYKEY is a pointer to the key. You will probably have to use something like ctypes to dereference the pointer and fetch the actual key. And secondly the return value never makes it back to windows either. What are you actually returning? -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] vb6 calling python script

2009-10-26 Thread Tim Roberts
, and call the COM from VB6. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Roberts
have four things going for me: * The wonderful Python community Oh, wait, I have [stops Spanish Inquisition re-run here] NO ONE expects the Spanish Inquisition. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] making icons on task bar require double-click

2009-10-23 Thread Tim Roberts
it to remain on top. That just shows what a dinosaur I am. I hate the Quick Launch bar, and have turned it off completely. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Tim Roberts
? It doesn't matter whether it is in batch or file-by-file. Wouldn't the least-effort solution be simply to try to open each file, and see if the open succeeds? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] making icons on task bar require double-click

2009-10-22 Thread Tim Roberts
of the screen. If you find yourself hovering around the bottom edge most of the time, perhaps moving the taskbar to the top would solve that. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Talking to the parallel port

2009-10-01 Thread Tim Roberts
Tony Cappellini wrote: Tim Roberts t...@probo.com mailto:t...@probo.com wrote: Why would you expect any updates? The technology behind the parallel port has not changed since 1994. It's not about the technology changing. But people do add improvments to python packages over time

Re: [python-win32] Windows 7 taskbar api

2009-09-28 Thread Tim Roberts
there is very similar to what the equivalent C++ code would look like for this task. The only difference is that I would be able to use CLSID_TaskbarList instead of {56FDF344-...}. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] python-win32 : cross database automation

2009-09-18 Thread Tim Roberts
ask the obvious question first. You're sure Lotus Notes is installed on this computer? The Google implication is that Lotus.NotesSession is the proper class name, so if Notes is installed, this should work. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] window events via SetWindowsHookExA

2009-09-18 Thread Tim Roberts
processes' address space? Just by calling SetWindowsHookExA()? Yes. Windows handles that automatically. People don't always realize how much overhead is involved in a Windows hook, but there's a lot going on there. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Connection to remote machine registry fails.

2009-09-17 Thread Tim Roberts
, win32con.LOGON32_PROVIDER_DEFAULT ) win32security.ImpersonateLoggonOnUser( handle ) # ... connect to to registry here ... win32security.RevertToSelf() handle.Close() -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] problem in calling excel object quit method

2009-09-17 Thread Tim Roberts
Puneet Singh wrote: Hi, I am calling quit() from a thread but its not working You need to call Quit from the thread that created the Excel object. Are you doing that? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] window events via SetWindowsHookExA

2009-09-17 Thread Tim Roberts
of a way to implement Windows hooks in straight Python. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] thread not posting events woes

2009-09-14 Thread Tim Roberts
Mike Driscoll wrote: Tim Roberts wrote: Jeff Peery wrote: I'm having trouble catching events from my multi threaded app. I'm using wxpython and running several threads under the main wxApp thread. One of the threads creates a COM object for an OPC server. I'm using dispatchWithEvents

Re: [python-win32] thread not posting events woes

2009-09-10 Thread Tim Roberts
honestly don't know how to do that in Python. You might ask this question on the wxPython mailing list, although it may be a bit obscure for them. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Drawing on the desktop and window creation problems

2009-09-10 Thread Tim Roberts
the non-client painting and normal window management. You should add this as the last line in your WndProc: return DefWindowProc( hWnd, msg, wparam, lparam) With that, you get a title bar and a border. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Drawing on the desktop and window creation problems

2009-09-10 Thread Tim Roberts
normal. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problems with QuickTest Automation Object Model

2009-09-09 Thread Tim Roberts
? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problems with QuickTest Automation Object Model

2009-09-08 Thread Tim Roberts
the python instance to Run method rather than the COM instance? No. The more likely answer is that the Run command failed because the file name was invalid, so o.Test is not returning a real object. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Problems with QuickTest Automation Object Model

2009-09-08 Thread Tim Roberts
, a boolean, and a COM interface, returning void. The parameter you're passing is getting sent in as the ResultsOption. Is there any change if you pass None as the first parameter? (There shouldn't be...) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] how to find / kill child process ?

2009-09-07 Thread Tim Roberts
process of that command window. If you don't want the command window at all, just call pythonw instead of python. Then, you should be able to kill the Python process directly. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Tim Roberts
. You need pointer(pCounterPathElements). After that, pcchbufferSize is 89 for me. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Ctypes and PdhMakeCounterPath

2009-09-03 Thread Tim Roberts
on the stack, not through a pointer), ctypes also supports it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Tim Roberts
are equivalent. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Tim Roberts
this: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw Now you can type makepy, and the shell will find and execute makepy.py. It is a very handy little tweak. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Excel Calculation - Check when it's done

2009-08-26 Thread Tim Roberts
sync examples in Python? I found quite a few, most using the very handy comtypes module: http://www.lmgtfy.com/?q=python+excel+event+sink -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] I want to get a message when the screen is locked/unlocked. How?

2009-08-25 Thread Tim Roberts
that it requires Windows Terminal Services loaded (which I don't have running). Starting with XP, all systems run with Windows Terminal Services enabled. That's how fast user switching is implemented, among other things. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Excel Calculation - Check when it's done

2009-08-25 Thread Tim Roberts
? Assuming you can register yourself as an event sink, there is a Worksheet_Calculate event that gets fired any time Excel recalculates a cell. However, it gets hit an awful lot. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

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

2009-08-14 Thread Tim Roberts
= RhinoScript(RS) RS.AddLine((0,0,0), (1,1,1)) None of us can try this unless we have the Rhino4 application installed. What do you see? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] determining information about a window

2009-08-11 Thread Tim Roberts
), some from enumerations (EnumChildWindows), and so on. So, if you can tell us how YOU would tell the difference, we can suggest which APIs you can use to find those attributes. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] Array of 64 bit int

2009-08-11 Thread Tim Roberts
a little clarification. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] determining information about a window

2009-08-10 Thread Tim Roberts
you create a program that does the same thing. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Tim Roberts
. Then, when you run the app, the DLL must be accessible somewhere. Does the build process try to test the extensions? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Tim Roberts
extension. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Tim Roberts
into the ActiveX method? Whatever you do is going to be a hack, because it's not declared in a COM-safe manner, but I suspect you're on the right track with the ctypes scheme. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Dealing with windows in Windows

2009-08-04 Thread Tim Roberts
we can translate it for you. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] IADsContainer.GetObject returns objects of different type than IADsContainer.Create

2009-08-03 Thread Tim Roberts
at the list of methods? That's not reliable with COM objects, unless you have used makepy on them. The win32com stuff doesn't go query the complete list of methods and properties. When you ask for one, it checks for it, and will remember that for later. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Trying to grab exe of foreground window

2009-07-23 Thread Tim Roberts
into Python code, but once you get the pattern, that's not so hard. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] handle is invalid?

2009-07-22 Thread Tim Roberts
. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Trying to grab exe of foreground window

2009-07-22 Thread Tim Roberts
win32process.GetModuleFileNameEx( handle, 0 ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python parser for Windows Event Logs

2009-07-17 Thread Tim Roberts
if it behaves differently. The code in pywin32 doesn't do that much processing -- it's mostly passthrough. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo

Re: [python-win32] Python parser for Windows Event Logs

2009-07-17 Thread Tim Roberts
of the .evt file is the same, no matter which log it came from. You are reading an .evt file, and not the live log, right? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Python parser for Windows Event Logs

2009-07-17 Thread Tim Roberts
) and see if it reads all 6 messages. If it only gets 3, then there is some fundamental issue below the Python stuff. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] python-win32 Digest, Vol 76, Issue 17

2009-07-17 Thread Tim Roberts
Tony Cappellini wrote: Tim, would you try parsing the SystemEventLog (from Windows XP)? This is the one I'm having problems with, not the application log. I saved a copy of my system event log with 2,383 events, and I'm able to read all 2,383 events. -- Tim Roberts, t...@probo.com

Re: [python-win32] Python parser for Windows Event Logs

2009-07-16 Thread Tim Roberts
1 entry if I read backwards, and 2 if I read forwards. I shall experiment. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python parser for Windows Event Logs

2009-07-16 Thread Tim Roberts
: break for event in events: print event.EventID, event.StringInserts then it all works as expected. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Python parser for Windows Event Logs

2009-07-10 Thread Tim Roberts
arbitrary evt files. This call also requires the system name as the first argument. int = OpenBackupEventLog(serverName, fileName ) Or None. You have to read the documentation. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Examples of Win32Inet use

2009-07-07 Thread Tim Roberts
any member of the ... I have to say, your messages carry the most obnoxious legal disclaimer I've encountered in a long, long time. The efficacy of such disclaimers has never been established in court, to my knowledge. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Examples of Win32Inet use

2009-07-07 Thread Tim Roberts
. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] File Time: win32file vs Python ?

2009-07-02 Thread Tim Roberts
the reported times to change during summer time. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Shell extension debugging

2009-06-30 Thread Tim Roberts
to a temporary directory and launches the interpreter as usual. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Shell extension debugging

2009-06-29 Thread Tim Roberts
.OutputDebugString and using a kernel debug log monitor to read them. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Shell extension debugging

2009-06-29 Thread Tim Roberts
exactly what you want to do. It's perfectly safe. The kernel monitors that process and restarts it when it dies. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] python and wow64 filesystem redirection

2009-06-23 Thread Tim Roberts
.Wow64EnableWow64FsRedirection( wow64 ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Active-X control

2009-06-23 Thread Tim Roberts
have more work ahead of you. You'll have to create a window and a message loop using one of the Python GUI toolkits. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] regarding invoking command prompt using python

2009-06-18 Thread Tim Roberts
Vernon Cole wrote: Thanks, Tim! Should this be logged against the standard library as a bug? Nope. It's actually the documented behavior. See section 16.1.1 here: http://docs.python.org/library/os.html -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] regarding invoking command prompt using python

2009-06-17 Thread Tim Roberts
.bat' print fbat, 'msbuild myproject.sln' fbat.close() os.system( xxx.bat ) os.remove( xxx.bat ) Note that you will need extra quotes when the path includes spaces. Note also the escaped backslash characters. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] regarding invoking command prompt using python

2009-06-17 Thread Tim Roberts
on Environment Variables Although this is true, the better solution for a h is to create a batch file and run that. The batch file then runs as its own process, so that environment changes remain with the process. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] regarding invoking command prompt using python

2009-06-17 Thread Tim Roberts
. However, when you exit, all of your changes evaporate with your process. The parent process, whatever it is, continues to exist with the environment it had before. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Regarding build of code using Visual Studio in python

2009-06-16 Thread Tim Roberts
set up properly (by calling vcvarsall.bat or vcvars32.bat, depending on the version), it's just a matter of calling the command line compiler using subprocess or os.system: cl source.c -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] win32file.CreateSymbolicLink and SYMLINK_FLAG_DIRECTORY

2009-06-16 Thread Tim Roberts
for creating symbolic links). Hmm. Does the API return anything in those cases? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32file.CreateSymbolicLink and SYMLINK_FLAG_DIRECTORY

2009-06-16 Thread Tim Roberts
-- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Question?

2009-06-05 Thread Tim Roberts
have quite a number of extra packages installed, and my entire Python directory is only 133 megabytes. At today's disk prices, that's less than 8 cents worth of disk space. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] how to use CreateProcessWithLogonW

2009-06-02 Thread Tim Roberts
Emin.shopper Martinian.shopper wrote: On Mon, Jun 1, 2009 at 1:32 PM, Tim Roberts t...@probo.com wrote: Emin.shopper Martinian.shopper wrote: Dear Experts, Can someone provide an example of how to use CreateProcessWithLogonW? It's really just a combination of LogonUser

Re: [python-win32] how to use CreateProcessWithLogonW

2009-06-01 Thread Tim Roberts
passages, all alike. It is a complicated and not well known part of the Windows API, and you will end up doing a lot of very frustrating experimentation. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] how to get the statusbar text of a window?

2009-05-29 Thread Tim Roberts
window messages from the outside. The Office applications don't use separate windows for their controls; their windows are just one big empty canvas, where everything is painted internally. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] win32job.SetInformtionJobObject usage -- what am I doing wrong?

2009-05-26 Thread Tim Roberts
also need this before the Set call: extended_limits['BasicLimitInformation']['Limit_Flags'] += win32job.JOB_OBJECT_LIMIT_JOB_MEMORY What do you plan to do with this? In 20 years of Windows programming, I've never once used the Job APIs. -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] writing hyphenated values in csv

2009-05-22 Thread Tim Roberts
this file: 123,3-10,3-10,=3-10,=3-10 gets imported as 12310-Mar10-Mar-73-10 Again, however, this is just an Excel quirk. If you need to import into Excel a lot, you might consider switching to Excel's XML format. You have a great deal more control in that case. -- Tim

Re: [python-win32] Converting types for deep lists or Discitonnaries

2009-05-21 Thread Tim Roberts
and deserialize Python data structures. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Passing arrays by reference

2009-05-20 Thread Tim Roberts
this: ans = [1,2,3] (rc,ans) = Server.EchoArray([0x11,0x22,0x33]) print ans -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Fwd: URGENT! Changing IE PAC Settings with Python

2009-05-20 Thread Tim Roberts
/setproxy.html This might be a good excuse to force your stragglers into the domain. There is certainly good justification for doing so. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

<    2   3   4   5   6   7   8   9   10   11   >