[python-win32] attributes fro pywin32 exceptions

2007-07-27 Thread Mark Hammond
Hi all, I need to upgrade the pywin32 exceptions (pywintypes.api_error and pywintypes.com_error) to be real exception objects. Part of this will be giving the exceptions named attributes. pywin32-211 will have many significant changes, so that seems like the right time to make *all* such signif

Re: [python-win32] SendMessageTimeout() ?

2007-07-27 Thread Mark Hammond
Tim writes: > > and just in case I haven't hijacked my own thread enough: > > does > > pywin32-210.win32-py2.5.exe > > have any command line switches so I don't have to hit 'next > next...'? > > > > I believe it is a standard MSI installer, and if so you should be able > to use the normal switches

Re: [python-win32] Have IHTMLWindow2 object need correspondingIHTMLWindow3 object and flash box

2007-07-27 Thread Tim Roberts
Tim Roberts wrote: > ... > If you use the hollow brush, as I suggested, then the driver won't even > be ASKED to fill the interior. > >brush = win32ui.GetStockObject( 5 )# HOLLOW_BRUSH > D'oh, did I really say win32ui? That's wrong. brush = win32gui.GetStockObject( 5 )# HOLLOW

Re: [python-win32] Have IHTMLWindow2 object need correspondingIHTMLWindow3 object and flash box

2007-07-27 Thread Tim Roberts
Richard Bell wrote: > def flash(top, left, bottom, right): > gui_dc = win32gui.GetDC(0) # int handle screen DC > pycdc = win32ui.CreateDCFromHandle(gui_dc) # PyCDC object > pycdc.SetROP2(7)# R2_XOR > brush = win32ui.CreateBru

Re: [python-win32] Have IHTMLWindow2 object need correspondingIHTMLWindow3 object and flash box

2007-07-27 Thread Richard Bell
By way of thanks to Tim (who helped with the flash code) and Mark (who posted the CastTo clue last year) here's a working example that: - opens a browser - navigates to google - finds the query tag - flashes it - finds the button tag - flashes it T

Re: [python-win32] how to get select behavior for non-socket objects

2007-07-27 Thread Brian Martin
Nevermind, I actually decided to read the above book a little more closely and I think I understand things a little more :) On 7/27/07, Brian Martin <[EMAIL PROTECTED]> wrote: > > Question.. Is 'Python Programming on Win32' the only resource we have so > far or are their other more recent bo

Re: [python-win32] how to get select behavior for non-socket objects

2007-07-27 Thread Brian Martin
Question.. Is 'Python Programming on Win32' the only resource we have so far or are their other more recent books out? I'm looking at this win32event.WaitForMultipleObjects call and I'm kind of baffled at where to start. I've got all these native python handles to serial ports and sockets which I u

[python-win32] Have IHTMLWindow2 object need corresponding IHTMLWindow3 object

2007-07-27 Thread Richard Bell
In an application that automates IE I'm trying to get an HTML nodes screen coordinates so I can 'flash' the node. Thanks to this list, I'm able to flash. I can also get the offsets for the node within the 'BODY' tag. Now all I need is the HWND or screen coordinates of the window holding the BOD

Re: [python-win32] SendMessageTimeout() ?

2007-07-27 Thread Tim Roberts
Carl Karsten wrote: > OT question, > Should this effect the PATH in the shell that called addtopath.py? > > os.environ['PATH'] = os.environ['PATH'] + ';' + DirToAdd > > currently I have an inst.bat with lines like this: > > addtopath.py svn-win32-1.4.4\bin > path %path%;"%ProgramFiles%\svn-win32-1.

Re: [python-win32] SendMessageTimeout() ?

2007-07-27 Thread Carl Karsten
Mark Hammond wrote: >> I am pretty sure I need to call >> >> SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, >> (LPARAM) "Environment", SMTO_ABORTIFHUNG, >> 5000, &dwReturnValue); >> >> And can't figure out how. > > import win32gui, win32con > rc, dwReturnValue = win32gui.SendMes