Re: [python-win32] win32ui and flashing box

2007-07-26 Thread Richard Bell
Tim, Thanks for the help. Here's what I've got import win32gui import win32ui import time gui_dc = win32gui.GetDC(0) # int handle of DC for screen pycdc = win32ui.CreateDCFromHandle(gui_dc) # PyCDC object pycdc.SetROP2(7)# R2_XOR (i think

Re: [python-win32] SendMessageTimeout() ?

2007-07-26 Thread Mark Hammond
> 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.SendMessageTimeout(win32con.HWND_BROADCA

Re: [python-win32] win32ui and flashing box

2007-07-26 Thread Tim Roberts
Richard Bell wrote: > I'm working on an application that automated IE and want to draw a flashing > box around screen elements. I can find the coordinates OK but am a bit > unclear on how to actually draw a box in such a fashion that when the > flashing stops the screen is as it was before it star

Re: [python-win32] win32com array handling bug?

2007-07-26 Thread Mark Hammond
sorry for the delay: > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Jason Ferrara > Sent: Saturday, 14 July 2007 1:51 AM > To: Mark Hammond > Cc: [email protected] > Subject: Re: [python-win32] win32com array handling bug? ... > I don't think that a tuple of buffers, as yo

[python-win32] win32ui and flashing box

2007-07-26 Thread Richard Bell
I'm a complete neophyte when it comes to window's GUI and need a bit of help. I'm working on an application that automated IE and want to draw a flashing box around screen elements. I can find the coordinates OK but am a bit unclear on how to actually draw a box in such a fashion that when the f

[python-win32] SendMessageTimeout() ?

2007-07-26 Thread Carl Karsten
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. Here is the background of what/why: I am trying to "add a dir to the windows search path." Apparently thi