I'm using build 210 and I've got that method. -Kyle Rickey
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Monday, January 21, 2008 1:05 PM To: Python-Win32 List Subject: Re: [python-win32] transparency on window astralrod wrote: > > I am doing a script to make a window transparent, but when using the > function: > > Win32gui.SetLayeredWindowAttributes (918020.127, int (win32api.RGB > (255255255)), 0) This snippet is clearly wrong, because (a) win32gui is not capitalized, (b) window handles are not floating point numbers, and (c) the RGB function requires three arguments: win32api.RGB(255,255,255) What version of PyWin32 are you running? Mine doesn't include win32gui.SetLayeredWindowAttributes at all. > It always generates an error, so, I tried to see the attributes of the > window with > > Win32gui.GetLayeredWindowAttributes (918020), but indicates that the > paramete is not correct > > The handle what I found with the function win32.FindWindow (None, > "*Python Shell*") Do you mean win32gui.FindWindow? That calls the API directly, and the API doesn't handle wildcards, unless Mark added this in some new release. In addition, Henry is right; you can only call SetLayeredWindowAttributes on a window with the WS_EX_LAYERED style. You can set that style on a window by using SetWindowLong, although there's no telling how the application that owns the window will respond. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32