Re: [python-win32] Using Flexible Win32 message pump to monitor window open/close for all application?

2011-03-30 Thread Tim Roberts
. There is the pyHook package, but I don't know if it is still being developed. http://www.cs.unc.edu/Research/assist/developer.shtml -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list pyth

Re: [python-win32] win32pdhutil failing on counters with a "/"

2011-03-30 Thread Tim Roberts
nt Bytes None 307200.0 System Driver Total Bytes None 9097216.0 System Driver Resident Bytes None 1380352.0 System Cache Resident Bytes None 102354944.0 % Committed Bytes In Use None 30.9728680693 Available KBytes None 288832.0 Available MBytes None 282.0 C:\tmp> -- Tim Ro

Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-30 Thread Tim Roberts
Mark Hammond wrote: > On 30/03/2011 11:01 AM, Tim Roberts wrote: >> Wolfgang Rohdewald wrote: >> I agree with your conclusion. However, this isn't a Python-Win32 >> issue. You need to file a bug report against Python itself. > it would be good to know exactly what v

Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-29 Thread Tim Roberts
nclusion. However, this isn't a Python-Win32 issue. You need to file a bug report against Python itself. -- 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] Getting Started

2011-03-23 Thread Tim Roberts
Tony Wallace wrote: > I have no reason to build from source. Where do I get this > precompiled installation? http://sourceforge.net/projects/pywin32/files/pywin32/Build216/ If I read your messages right, you are running Python 2.5, so you want pywin32-216.win32-py2.5.exe. -- Tim Robe

Re: [python-win32] Getting Started

2011-03-23 Thread Tim Roberts
a more recent Python (version 2.6 is now built with Visual Studio 2008) or go find VS2003. -- 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] Getting Started

2011-03-23 Thread Tim Roberts
at you've tried. The fact that you posted to the [python-win32] list suggests that you already know about the PyWin32 package, which adds virtually complete access to the Win32 API. Are there APIs you need that weren't present? -- Tim Roberts, t...@probo.com Providenza & Boekelheide,

Re: [python-win32] Set html in outlook mail

2011-03-23 Thread Tim Roberts
in text but I > can’t find anything to do that. > Add: import win32con newMail.BodyFormat = win32con.olFormatHTML newMail.HTMLBody = "CIAO!" All I did was go to the MSDN page on the CreateItem method of the Outlook.Application object. -- Tim Roberts, t...@probo.c

Re: [python-win32] Catching Send To in Office

2011-03-22 Thread Tim Roberts
ur computer, which in found in the registry. Theoretically, you ought to be able to rewrite that key to a browser command that brings up your webmail page, or to an application that does the same thing. Check HKCU\Software\Clients\Mail or HKLM\Software\Clients\Mail. -- Tim Roberts, t...@probo

Re: [python-win32] Win32_NTLogEvent access denied exception

2011-03-10 Thread Tim Roberts
on code that shows how to do it: http://windows-privesc-check.googlecode.com/svn-history/r10/trunk/windows-privesc-check.py Check "get_extra_privs" about half-way through. You can simplify it a little bit, since you are looking for exactly one privilege. -- Tim Roberts, t...@pro

Re: [python-win32] print file byte contents distribution

2011-03-04 Thread Tim Roberts
thods are within 1% of each other -- sometimes the dict is slightly faster, sometimes the list is slightly faster. Thus, for all practical purposes, they are identical. I'm surprised. That means you should use the one that makes sense to you. -- Tim Roberts, t...@probo.com Pr

Re: [python-win32] print file byte contents distribution

2011-03-04 Thread Tim Roberts
would be faster yet: counter = [0]*256 for bytes in open('c:\\temp\\16.jpg', "rb").read(): counter[ord(bytes)] += 1 for key,cnt in enumerate(counter): print '%d: %d,' % (key,cnt), -- Tim Roberts, t...@probo.com Providenza & Boek

Re: [python-win32] Fonts behaving differently with Py3/216

2011-03-04 Thread Tim Roberts
n a dialog. This is the same problem we used to refer to as "small fonts / large fonts". -- 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] Problem with msvcr90.dll

2011-03-02 Thread Tim Roberts
altogether and go back to a simpler way of life, where having the files in \Windows\System32 is enough for everyone. -- 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] Problem with win32print.SetPrinter

2011-03-01 Thread Tim Roberts
l paper stock, instead of selecting the envelopes in the multi-purpose tray. It required two or three hours of fairly intense hacking before I figured out a recipe to make it work again. If I had not previously been a GDI driver developer, I doubt that I could have figured out the DEVMODE magic t

Re: [python-win32] Possible future direction for PyGUI on Win32

2011-02-28 Thread Tim Roberts
uter's time. I paid for 4GB of memory in my computer. Memory that is not being used is simply being wasted. I still do most of my programming in C++ because I like having control, but there is nothing wrong with .NET. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___

Re: [python-win32] Possible future direction for PyGUI on Win32

2011-02-28 Thread Tim Roberts
t very painful. -- 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] Missing methods from result of Dispatch or EnsureDispatch

2011-02-25 Thread Tim Roberts
hat's a very good point, and it nearly caused me to abort my original reply. The fact that you were able to create an object at all suggests that there may be a COM implementation of these objects. The difficulty will be figuring out how they can be used. All of the Googling I did led o

Re: [python-win32] Missing methods from result of Dispatch or EnsureDispatch

2011-02-25 Thread Tim Roberts
rallel interface available for COM apps, but there's not necessarily any relationship between their object models. Do you have an example that shows Dynamics being used from a non-managed COM application? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. __

Re: [python-win32] regmon realtime

2011-02-21 Thread Tim Roberts
Value API, and you should even be able to do this from Python. If you set fAsynchronous to false, it blocks until something in the key changes, then returns to you. If you are hoping to monitor the entire registry, that requires the assistance of a kernel driver. -- Tim Roberts, t...@pr

Re: [python-win32] DVCS options for pywin32

2011-02-07 Thread Tim Roberts
converted to hg for all of my personal work. I use only the command-line tools -- I haven't installed the tortoise stuff either. "git" just seemed to be too much of a lifestyle commitment. You're really working with a lot of details that seemed unnecessary to me. I haven't ha

Re: [python-win32] Using os.startfile() for automation

2011-02-03 Thread Tim Roberts
se pywin32's amply documented COM facilities to do it. If it doesn't, then you'll have to inject keystrokes using the API, exactly like you would if you were writing this 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] PyWin32 has stopped working/mfc90.dll error

2011-02-02 Thread Tim Roberts
n crashed inside somewhere inside MFC, which is Microsoft's GUI framework. What are you doing when it crashes? -- 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 specify parameters in a query using odbc

2011-02-02 Thread Tim Roberts
ich is open to SQL injection attacks. The only time you should be using Python's % substitution with SQL is when you need to supply table or field names, and even then you need to be careful if the names came from user input. Any time you are supplying a data value, you should ALWAYS us

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-01 Thread Tim Roberts
arameter substitution styles allowed by the Python dbapi specification. The Win32 odbc module uses ? characters instead of %s. A simple search-and-replace should solve your problem. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___

Re: [python-win32] error importing win32com for Dispatch

2011-01-31 Thread Tim Roberts
the right location. Did you get and run the pywin32 installer? What command did you use to call "setup.py"? In a properly installed system, win32com will live in \Python27\lib\site-packages\win32com. Are you running a 32-bit system or a 64-bit system? Did you install 32-bit Python or 64

Re: [python-win32] Fixing type ID for an interface file generated by makepy

2011-01-25 Thread Tim Roberts
Tim Roberts wrote: > Brad Buran wrote: >> When I generate the interface file for a COM object using makepy, it >> generates an incorrect signature for one of the methods: >> >> def ReadTag(self, Name=defaultNamedNotOptArg, >> pBuf=defaultNamedNotOptArg, nOS

Re: [python-win32] Fixing type ID for an interface file generated by makepy

2011-01-25 Thread Tim Roberts
to fix the signature or 2) finding a more comprehensive list of the > actual constant the type codes corresponds to. Do you have the SDK? The master list is in the header file WTypes.h. The VT codes are a bit field -- the low 12-bits are the type code, and the bits a

Re: [python-win32] odbc under windows 7?

2011-01-24 Thread Tim Roberts
s no ODBC Access driver installed. Have you tried ADODB and direct DAO access? Both of them can be used with Access, although again without the runtime, I think you're in trouble. -- 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] About COM

2011-01-18 Thread Tim Roberts
ace is important for you. The 32-bit Python works perfectly well on 64-bit systems. -- 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's required to use win32com in a portable python directory.

2011-01-17 Thread Tim Roberts
Naveen Garg wrote: > Is it possible to use win32com without setting up registry keys ? A COM server can only be accessed through the registry. So, if you are writing a COM server, then you must create registry keys. -- Tim Roberts, t...@probo.com Providenza & Boekelhei

Re: [python-win32] Trouble with SetWindowLong().

2011-01-17 Thread Tim Roberts
said window? Currently I am using FindWindow, but I am not very > happy searching for the window by it's title, I'm voting for a named event. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing lis

Re: [python-win32] About COM

2011-01-17 Thread Tim Roberts
to communicate with Lotus, with some kind of cross-process scheme to pass requests between you and the other process. -- 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] WSAAsyncSelect

2011-01-07 Thread Tim Roberts
he GIL is to say "I hereby promise I won't be interpreting any Python code until I reacquire the lock". If you could do that from Python code itself, you would create a singularity that will suck in the solar system. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, In

Re: [python-win32] WSAAsyncSelect

2011-01-07 Thread Tim Roberts
hear "high performance," I start to wonder whether Python is really the right choice. How much performance do you need? WSAAsyncSelect is a pretty snazzy way to deal with a socket server, and I suspect it could be adapted here without much trouble. -- Tim Roberts, t...@pro

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-07 Thread Tim Roberts
swer is to turn your COM server into an "out of process" COM server. That way, instead of a DLL, you will have an EXE which will run in a separate process. I do not know how to do that with PythonCOM. Hopefully, Mark will chime in here with a helpful suggestion. -- Tim Roberts, t.

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Tim Roberts
hon COM support isn't going to know how to create a wrapper for this. If you need to return a new object, then that object should be a Python COM object as well. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Tim Roberts
that the cad give to me : > Automation error 0x4005 > any idea on how to survive from this error ? That error code (0x80004005) is the very unhelpful E_FAIL. Does ThinkDesign have its own scripting language? Is it already set up to use late-bound COM objects? Do you possibly have a 32-bit/64-bi

Re: [python-win32] WSAAsyncSelect

2011-01-05 Thread Tim Roberts
k.WSAAsyncSelect(s, hWnd, wMsg, lEvent) > Yes, indeed. I think that sock.socket.fileno should get you the socket handle for the first parameter. -- 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] adodbapi returns None for text field in first row

2011-01-03 Thread Tim Roberts
as a reserved word. If you're in SQL Server 2005 or above, "TEXT" is no longer recommended as a data type. You're supposed to use VARCHAR(MAX). -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailin

Re: [python-win32] make a window transparent using win32?

2010-12-30 Thread Tim Roberts
bits that I previously set using > SetWindowLong() are indeed set? I think you're going to feel foolish when you hear the answer. The fact that SetWindowLong exists should suggest rather strongly that there must be a GetWindowLong. And, in fact, there is. win32gui.GetWindowLong(han

Re: [python-win32] make a window transparent using win32?

2010-12-28 Thread Tim Roberts
dle, 0, 128, win32con.LWA_ALPHA) -- 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 with accessing form elements and setting focus.

2010-12-23 Thread Tim Roberts
lly, is figuring out how to map the C++ calls into Python. After you read up on those objects, that's where we on this list can be of use. Show us what you've tried, tell us what doesn't work, and we can offer suggestions. -- Tim Roberts, t...@prob

Re: [python-win32] Intenet explorer using PythonWin Help

2010-12-22 Thread Tim Roberts
ure what you expect the "if ie:" to do there. I believe a COM object will always return True in 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] Identify unique data from sequence array

2010-12-22 Thread Tim Roberts
ifted values by R positions ;) I actually did consider including a Bayesian search in my original post, but decided it muddied the waters too much. I was more or less trying to give the original poster something to start thinking about. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Tim Roberts
tching element (call it R) 3. Compare L+1 and R+1 until you find a mismatch -- that's the current "largest" match. 4. Repeat from 2 to see if you can find a longer match. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___

Re: [python-win32] ANN: PyGUI 2.3.2

2010-12-17 Thread Tim Roberts
Marc-Andre Belzile wrote: > Hi, > > I'd like to be able to attach an OpenGL context to a Canvas. Can PyOpenGL and > pyGUI work together? PyGUI already includes OpenGL support. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _

Re: [python-win32] ANN: PyGUI 2.3.2

2010-12-16 Thread Tim Roberts
ghter weight. To know more, you should download both and try 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] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
Dahlstrom, Roger wrote: > Sure there is, autologon! Ah, but if one uses autologon, then it is no longer the case that "no one is logged in", so I think my comment is still valid... ;) -- Tim Roberts, t...@probo.com Providenza &

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-02 Thread Tim Roberts
way to run a GUI application when no one is logged in, without delving deep into Windows magic. You will need to modify (or patch) the application. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-

Re: [python-win32] Access femap API, Type mismatch

2010-12-02 Thread Tim Roberts
,nViewID) > > To me it looks like win32 is not getting the information about the > variable types from com. Sure it is. The type code 16387 is VT_I4 + VT_BYREF, which means a 4-byte integer passed by reference. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. __

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Tim Roberts
, through painful and creative use of CreateProcessAsUser, to create a process as the user that is running on the primary visible desktop. Here's more information, although I don't really think it solves your problem: http://msdn.microsoft.com/en-us/library/ms683502.aspx -- Tim Robe

Re: [python-win32] Checking app windows for certain keywords

2010-12-01 Thread Tim Roberts
ows to display their controls. They treat the entire window as a blank canvas, and use their own internal scheme to display the text. You can't use a window message to read the visible part of a Word document. To control Word, you'd have to use COM. That opens up an entirely new c

Re: [python-win32] Inheritance not applied to objects and containers

2010-12-01 Thread Tim Roberts
objects. You should investigate either SetSecurityInfo or SetNamedSecurityInfo. Both of those will do the propagation automatically. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.o

Re: [python-win32] How to send the Esc key via a telnetlib.Telnetsession?

2010-11-29 Thread Tim Roberts
er bytes you send it, so you just need to create a Python string with that character. You can do: telnetlib.Telnet.write( chr(27) ) or telnetlib.Telnet.write( "\x1b" ) (1B being the hexadecimal value of 27 in decimal) -- Tim Roberts, t...@probo.com

Re: [python-win32] Pythonwin interactive window seems gone ?

2010-11-29 Thread Tim Roberts
n XP. Is it possible it has been minimized? Do you see a small window at the lower left? Have you tried Window->Cascade or Window->Tile? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-w

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
, so it should not be a problem. Here's another option. It is not well known that the newer versions of "depends" have a trace mode. You can launch an executable from inside "depends", and it will trace all of the DLL loads and unloads. That might tell you somethin

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
th cmd.exe and "dir", or > depends.exe? Yes, although "depends" should be smart enough to find it, assuming you have a 32-bit executable. If your root executable is 64-bit, then you will need to install a 64-bit Python. Unlike the 16/32 days, there is no thunking. A 64-bi

Re: [python-win32] Can't see Python27.dll on Win 7

2010-11-23 Thread Tim Roberts
p a command shell and see where the file really lives. If it really lives in system32, you'll need to move 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] python-win32 Digest, Vol 92, Issue 16

2010-11-22 Thread Tim Roberts
the description of those messages carefully. Remember that you will have to use ReadProcessMemory and WriteProcessMemory to access the structure. -- 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] Simple selection of item in list

2010-11-19 Thread Tim Roberts
ndaries, so it's very difficult to control one in another process. If it is within your own process, you can send an LVM_SETITEMSTATE message with the appropriate LVITEM structure. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ py

Re: [python-win32] A question about COM in general

2010-11-11 Thread Tim Roberts
other applications. COM support is already built-in to Python. If you have the option to add a COM interface, that's probably the way to go. -- 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 make Python identify GUI buttons by their label

2010-11-11 Thread Tim Roberts
nize"? Anything you can do from a C application can be done from Python. If you are searching for subwindows, you can call the FindWindow API, which accepts titles. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python

Re: [python-win32] Makepy does not generate all secondary interfaces?

2010-11-09 Thread Tim Roberts
Åsmund Hjulstad wrote: > 2010/11/9 Tim Roberts : >> Åsmund Hjulstad wrote: >>> ... >>> My latest attempt is >>> >>> pisdkcommonlib = ('{76A44786-EBC8-11D3-BDC5-00C04F779EB2}', 0, 1, 0) >>> win32com.client.makepy.GenerateChildFromTy

Re: [python-win32] Makepy does not generate all secondary interfaces?

2010-11-09 Thread Tim Roberts
> ImportError: No module named IPIAsynchStatus2 > > Any pointers appreciated. (Or is this possibly a bug?) A Google search for IPIAsynchStatus2 brings up nothing but your messages. Are you sure that's spelled correctly? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, I

Re: [python-win32] Wrong default value for optional argument in makepy signature.

2010-11-09 Thread Tim Roberts
e of the parameter. However, some people lie about their data types when they make an interface like this. Instead of declaring it a pointer, they'll declare it as an integer. Makepy isn't omniscient. Do you have the IDL that describes the function, or a web page reference? Can you sho

Re: [python-win32] "access violation" debugging advice?

2010-11-08 Thread Tim Roberts
L appears to > run without error with his MSVC apps. It almost seems CPU-load > dependent, but I could be imagining that... I think you're going to need to run the app inside a debugger, and get a traceback to figure out where in the DLL it is crashing. There are just too many possibili

Re: [python-win32] SolidWorks & pywin32?

2010-11-08 Thread Tim Roberts
I get results: > > CustPropMgr.Get2(CustProperty, ValOut, ResValOut) > File ">", line 2, in Get2 > pywintypes.com_error: (-2147352571, 'Type mismatch.', None, 2) Those are output parameters. You probably want this: (ValOut, ResValOut) = CustPropMgr.G

Re: [python-win32] Win32 equivalent of VB doevents() or just use time.sleep()?

2010-11-05 Thread Tim Roberts
7;s exactly the right way. Calling time.sleep(0) will release the CPU if there is anyone else waiting. -- 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 access methods of COM object.

2010-11-05 Thread Tim Roberts
") > ... > The VB example shows: > > Set pps = New PServer That's not the same thing. Is that actually "New PPServerClass"? -- 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] "Could not load file or assembly" using win32com

2010-11-03 Thread Tim Roberts
on installed itself. When you did the upgrade, did you actually run an installer, or did you just copy new files into place? -- 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] BringWindowToTop doesn't work, anyone have try it?

2010-10-22 Thread Tim Roberts
dowToTop(pwin) If it is a bug, it is a bug in the Win32 API. This same code also does not work in a console app written in C. Use SetForegroundWindow instead of BringWindowToTop. That works. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.

Re: [python-win32] Behavior difference between Python using PyWin32 and PERL using OLE

2010-10-21 Thread Tim Roberts
, -2147467259), None) > > > > So, is there a difference/limitation using the COM interface via > Python windows extensions and the OLE interface in PERL? > The "Views" property is supposed to take a boolean, not a string. Shouldn't that be False instead of "False"? -- 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] A question about COM in general

2010-10-19 Thread Tim Roberts
e very cool, but you have to decide what your model is going to be. Boost.Python lets you build Python extension modules easily. If you want your application interface to look like a Python extension module, then it might make good sense. -- Tim Roberts, t...@probo.com Providenza &a

Re: [python-win32] crash on Windows Server 2008

2010-10-15 Thread Tim Roberts
or access violations. So, there's probably some kind of a wild pointer issue, but we can't tell any more. You'll need to run it with a debugger, or add a printf trace log. -- 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] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
Tim Roberts wrote: > > However, I admit that NT security is a twisty maze of little passages, > all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... -- Tim Roberts, t...@probo.

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
I THINK what you really want is to add the service logon right ON the local machine FOR this domain account. You don't want to modify the domain. To do that, I think you want to specify None as the first parameter to LsaOpenPolicy. However, I admi

Re: [python-win32] os.stat() : files without "date modified" : OSError: [errno 22] Invalid Argument

2010-10-12 Thread Tim Roberts
h files > programmatically for a test? > what is the underlying cause for the crash? Can you give us a specific example? Some Windows viruses install a file system filter to render some files inaccessible, and it's possible to set file permissions so that you don't have the right

Re: [python-win32] Windows Services to run an Application (.exe) developed in python

2010-10-07 Thread Tim Roberts
s not connected to the desktop. Usually, you make something a service because it needs to run even when no one is logged in (which means before a desktop is even created, which is why the "no UI" restriction exists). Why does your app need to be a service? -- Tim Roberts, t...

Re: [python-win32] Invalid number of parameters on makepy-generated method

2010-10-01 Thread Tim Roberts
t; return self._oleobj_.InvokeTypes(7, LCID, 1, (24, 0), ((11, > 49),),saveSession ) Curious. 1 means it is a method, (24,0) means that it returns nothing, and ((11,49)) means that it takes an optional Boolean with a default value. That should work just as you wrote it. -- Tim Rob

Re: [python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread Tim Roberts
packages\py2exe\samples\advanced\setup.py for an example of how this is done. -- 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] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Tim Roberts
e point that is being dragged. In this case, that would be a point along the bottom edge of the window. Further, to clear this "sizing in progress" mode, you need to send a WM_SIZE, where you'll need to send the size of the window. So, there may be more to this than you think.

Re: [python-win32] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Tim Roberts
Many COM servers handle this just fine.) Beyond that, you're just hacking, and you'll need to 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] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread Tim Roberts
pper around the MFC CProgressCtrl class. You might be able to adapt that to do what you need, although I'm not sure MFC is any lighter weight than Tkinter. There is a collection of useful dialogs for non-gui programs called "easygui.py". Although it doesn't have a progress bar, p

Re: [python-win32] win32api: How to send WM_SIZING to a Window

2010-09-30 Thread Tim Roberts
terface to see if there is an interface like that? Is this some well-known program? Perhaps one of us can take a look at the interface. -- 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] FW: Problems with recordset object

2010-09-02 Thread Tim Roberts
est like that. We are all unpaid volunteers here. If someone knows the answer, they'll respond as soon as they read your question. If no one knows the answer, no one will respond. No one is going to read your message and say "I think I'll wait until tomorrow to answer this."

Re: [python-win32] Detecting when a system has multiple monitors (desktops)

2010-08-24 Thread Tim Roberts
d position it to (-900, 100), it is placed on the left-hand monitor. -- 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] win32gui and PyHANDLE

2010-08-23 Thread Tim Roberts
I tried using CallAfter to have this happen after the window is displayed, it still didn't work. Did you copy this from a C example somewhere? Can you tell me where? Perhaps I can translate it. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.

Re: [python-win32] win32gui and PyHANDLE

2010-08-19 Thread Tim Roberts
anyway, it matches the C definition, and it works in the 64-bit case as well. -- 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] win32com client Workbooks.Open throws exeption

2010-08-18 Thread Tim Roberts
ns, that your user already has Excel open doing something else? (Although I don't quite know how that would lead to this.) -- 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] running a python script on WinXP by icon double-clicking.

2010-08-04 Thread Tim Roberts
mp>assoc .pyw .pyw=Python.NoConFile C:\tmp>ftype python.file python.file="C:\Apps\Python26\python.exe" "%1" %* C:\tmp>ftype python.noconfile python.noconfile="C:\Apps\Python26\pythonw.exe" "%1" %* Your path will probably be di

Re: [python-win32] Possible to update exe file properties and/or icon via the win32api library?

2010-07-26 Thread Tim Roberts
s. That's the way internationalization is often done. You have one resource-only DLL for each language, and the main program looks up resources there first. But if you want to change what Windows Explorer shows, then you have little choice other than modifying

Re: [python-win32] I'm getting outfoxed by an ActiveX control...

2010-07-23 Thread Tim Roberts
onent? It's difficult for me to tell. If it is a GUI component, then you can't just instantiate it in empty space. You have to host it inside some GUI application. I see that it is a socket-based component. If they are using asynchronous socket processing, that also requires that the

Re: [python-win32] pywin32 services

2010-07-21 Thread Tim Roberts
fashion error when > win32servileutil calls win32service.StartService(hs, None). I don't see anything immediately wrong with that. You're going to need to talk to the CherryPy list. They are a good group of people, and they can confirm that your version numbers are latest and greatest.

Re: [python-win32] sys.path and PyWin32 scripting engine

2010-07-20 Thread Tim Roberts
. That means there will be one Python process fielding all of these requests. If you are creating new instances each time, I would have expected each one to be its own interpreter, but your evidence suggests otherwise. -- Tim Roberts, t...@probo.com Provi

Re: [python-win32] PyWin32 sur intel xeon 64-bit

2010-07-20 Thread Tim Roberts
ut any problems. There is a native 64-bit version of PyWin32, but I've never tried it, mostly because there has never been a need. Some day.. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing l

Re: [python-win32] pywin32 services

2010-07-20 Thread Tim Roberts
ce what to do. There are messages for start, stop, and pause, among others. In response to the "start" message, the Python framework will eventually call SvcRun, which then calls your SvcDoRun. Just because Python makes it easy, that doesn't change the way services work. The

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
s) or the [8] (meaning FindFiles returned something unexpected). Perhaps you should add print win32api.FindFiles(fname) and see what it returns. Do you have an extension on your service script? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc.

Re: [python-win32] pywin32 services

2010-07-19 Thread Tim Roberts
rk share? Services run in a special user account that doesn't know anything about your network shares. -- 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] sys.path and PyWin32 scripting engine

2010-07-19 Thread Tim Roberts
Is it the expected > behavior ? > I'm not sure what you mean by "new scripting engine". Modules are shared between all interpreters in a single process, but when you call Py_NewInterpreter, it is supposed to get its own private copy of sys.modules and sys.path (among several o

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