Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
geoff wrote: I am hoping someone could steer me in the right direction on how to calculate the amount of RAM available to a process. I found the post below from Tim Roberts - a belated thanks Tim for your patient responses ! and it seems we regularly hit this limit. We have an application

Re: [python-win32] Opening and enumerating resource many times

2009-01-29 Thread Tim Roberts
any web articles about this. Very interesting... -- 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] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
GlobalMemoryStatusEx(): x = MEMORYSTATUSEX() x.dwLength = sizeof(x) windll.kernel32.GlobalMemoryStatusEx(byref(x)) return x z = GlobalMemoryStatusEx() print z.ullAvailVirtual -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
RAM, your process can still allocate up to 2GB of memory. -- 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] How to calc amount of avail RAM in a process ?

2009-01-29 Thread Tim Roberts
that, if the page file gets low, the system will allocate more. -- 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] How to calc amount of avail RAM in a process ?

2009-01-30 Thread Tim Roberts
of physical memory is reserved for non-paged pool in the kernel, which is used by drivers for critical buffers and for DMA, among other things. Thus, you can be out of paged pool even when there is unused physical memory remaining. Virtual memory is a surprisingly difficult thing to nail down. -- Tim

Re: [python-win32] Pb SxS for install

2009-01-30 Thread Tim Roberts
manifest override it? I'm not sure the answer is written down anywhere. Side-by-side is an abortion. It is an incredibly baroque solution to a problem that programmers outside of Redmond learned how to handle more than a decade ago. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] numpy and pylab on win64 ?

2009-02-11 Thread Tim Roberts
version would still work on my xp64 platform. If you install 32-bit Python, then the 32-bit add-ons continue to work just as they always have. If you install 64-bit Python, then you need 64-bit add-ons. Numpy, at least, uses C extensions. -- Tim Roberts, t...@probo.com Providenza Boekelheide

Re: [python-win32] Error with VixCom operation; TypeError: The VARIANT type is unknown (0x00000015)

2009-02-17 Thread Tim Roberts
integer as an error number, but that's what they're doing. As Mark said, pywin32 doesn't support VT_UI8 at all. There may be a hacky way to do this with comtypes. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Accessing Interfaces

2009-02-20 Thread Tim Roberts
(they are Win 7 only), so I seriously doubt anyone has played with them enough to know whether they do IDispatch. If they don't, it's always (well, almost always) possible to handle these with ctypes and comtypes. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Accessing Interfaces

2009-02-20 Thread Tim Roberts
ctypes to call DWriteCreateFactory, and ctypes/comtypes to call the member functions. Are you sure you want to do this? ;) Until someone writes a wrapper layer, it would probably be more productive for you to use C++. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] opening files with names in non-english characters.

2009-02-24 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] Unreliable results with Winreg WMI

2009-02-25 Thread Tim Roberts
this redirection by calling RegDisableReflectionKey for the key you want to talk to. I do not know if this is exposed in _winreg. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] Unreliable results with Winreg WMI

2009-02-25 Thread Tim Roberts
Tim Roberts wrote: Ben wrote: I have generally been getting better results using winreg than using WMI, but even Winreg (or config problems on our server) are causing me problems. For example I'd use this code to find out if a certain I'm beginning to think this is because

Re: [python-win32] Need help in MKS

2009-03-11 Thread Tim Roberts
of tasks, requiring very different approaches. The more specific you can be, the better the advice we can offer. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org

Re: [python-win32] GDI+ text rendering screwed up

2009-03-19 Thread Tim Roberts
font is actually called Times New Roman. There is a substitution list for common font names, but I'm not sure I'd want to rely on it. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] is these modules available for IA64bit

2009-03-30 Thread Tim Roberts
this? Also i want to know if wmi module is availble for IA64 There is virtually no real development going on for IA64, because there are virtually no sales of IA64 systems. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Might be a easy problem.

2009-04-06 Thread Tim Roberts
. The Win32 extensions to Python live in import packages that are not called win32. Now, it is QUITE possible that the IDE you are using has its own extension called win32. If so, we wouldn't know anything about that in this forum. You'd have to check the IDE's documentation. -- Tim Roberts, t

Re: [python-win32] Monitoring the active window

2009-04-10 Thread Tim Roberts
that, in virtually every case it is an ignorant rendition of the French word Voila! I'm amazed that a real company would choose that as a name. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-16 Thread Tim Roberts
. Instead, it creates a whole series of movable toolbars, one of which happens to look like a menu. What are you actually trying to do? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-16 Thread Tim Roberts
the Internet Explorer object model, to see if you can use that COM object you already created to access the tools through function call instead. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] win32gui.GetMenu() return 0

2009-04-17 Thread Tim Roberts
. This is a Python wrapper around the Microsoft Active Accessibility library. http://www.cs.unc.edu/Research/assist/developer.shtml -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http

Re: [python-win32] Uninstall program form Registry

2009-04-17 Thread Tim Roberts
: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall Every subkey represents an app or update that can be uninstalled, and each key contains an UninstallString value that gives you the command to execute to do the uninstall. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Uninstall program form Registry

2009-04-17 Thread Tim Roberts
had extra files in the folder that weren't installed by the installer. Most uninstall apps will not delete the root folder if it contains files that were created after installation time. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-04-20 Thread Tim Roberts
this might be easier in C. -- 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] activate an opened window

2009-04-23 Thread Tim Roberts
of the top-level windows using EnumWindows, then call GetWindowThreadProcessId until you find a window that matches. Remember that an application can have several top-level windows. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] activate an opened window

2009-04-23 Thread Tim Roberts
to do, in detail. -- 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] activate an opened window through the server

2009-04-23 Thread Tim Roberts
here? -- 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] activate an opened window through the server

2009-04-23 Thread Tim Roberts
to a web server. -- 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] activate an opened window through the server

2009-04-23 Thread Tim Roberts
of experimentation, but it might be possible. -- 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] activate an opened window through the server

2009-04-23 Thread Tim Roberts
that command you already showed. You can use subprocess.call to run that command and wait for the result. -- 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] activate an opened window through the server

2009-04-24 Thread Tim Roberts
either need to double the backslashes: cmd = 'idlede.exe ... -nosplash @C:\\SAMIR\\soil.run' or use the r syntax: cmd = r'idlede.exe ... @C:\SAMIR\soil.run' -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Extract icon from exe files

2009-04-24 Thread Tim Roberts
problem is I didn’t found the python module for GetBitmapBits() function ... How much looking have you done? Did you know that the PyWin32 win32\Demos directory contains several example of programs that manipulate icons, including one that calls ExtractIconEx and draws the icon to a bitmap? -- Tim

Re: [python-win32] Extract icon from exe files

2009-04-27 Thread Tim Roberts
a usable image. -- 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] Extract icon from exe files

2009-04-28 Thread Tim Roberts
, hicon is use ton create the variable nid and re use it to display on the screen, but i want get only the bitmap bits. I'm not sure why you think these two things are different. The way you get the bitmap bits is to draw the icon on a bitmap. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Retrieve informations from NIST file.

2009-04-29 Thread Tim Roberts
with a hex editor to figure out what it really contains. If you want, you could send me one of the files, and a detailed description of what you want out of them. Perhaps we can come with a data structure that's easier to work with. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Retrieve informations from NIST file.

2009-04-30 Thread Tim Roberts
','wb').write ('\x1c'.join(newsections) ) But that assumes there's nothing in that garbage 3rd section that needs to be changed. It's just a matter of dividing the problem up into smaller problems until the solution pops out. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-04-30 Thread Tim Roberts
Nicolas EISEN wrote: Tim Roberts a écrit : EISEN Nicolas wrote: I'm lucky, I found ... My Source : /from win32gui import * import win32con from pywintypes import HANDLE import win32ui listHicon = ExtractIconEx(c:\OpenOffice.exe,0) tupleIcon = GetIconInfo

Re: [python-win32] What is the meaning of -1. #IND?

2009-05-04 Thread Tim Roberts
results in indefinite because it has no defined meaning. -- 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: First line is a mix of text characters and binary, after the first line all is binary.

2009-05-05 Thread Tim Roberts
back to a new file. part1 = '\x1D'.join( sect1 ) part2 = '\x1D'.join( sect2 ) recreate = '\x1C'.join( [part1, part2, sections[-1]] ) open( 'newfile.nst','wb' ).write( recreate ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Extract icon from exe files

2009-05-05 Thread Tim Roberts
) to find out what functions are available in a DC? hdc.FillSolidRect( (0,0, ico_x, ico_y), 0xff ) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] Silent installation of pywin32

2009-05-08 Thread Tim Roberts
will automatically pull in whatever pieces of pywin32 are necessary to make your script run. -- 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] Win32 robustness against Microsoft version changes

2009-05-11 Thread Tim Roberts
this risk (we currently use Office2003 on WinXP)? With very few exceptions, Microsoft never removes a documented API. The risks, although not zero, are very slight. The same cannot be about, for example, Adobe... -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] python win-32, 64-bits, and services

2009-05-12 Thread Tim Roberts
a succinct test case that I can share. I would be interested in looking at 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] Pylons as service...

2009-05-18 Thread Tim Roberts
to assert the stop_event event, which the SvcDoRun function is blocked on. That's the normal way. SvcStop sets an event, which allows SvcDoRun to return. When SvcDoRun returns, the service exits. However, the sys.exit method also works. It's just that you get this little traceback -- Tim Roberts

Re: [python-win32] Pylons as service...

2009-05-19 Thread Tim Roberts
. That's how it knows which file to load and which class to instantiate. -- 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

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] 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] 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] 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] 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 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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