It's similar to PP's TransMouse, but different. :)
local hWnd=win.handle("active")
local colorref=win.getpixel1(xmouse,ymouse)
local stylex=dll.call("GetWindowLong|hWnd Int Long",hWnd,-20)
local
toggle=ifelse(select(select(fill("00000000",win.hex(stylex)),4),-1)<"8","+","-")
dll.call("SetWindowLong|hWnd Int Long Long",hWnd,-20,
eval(stylex++toggle++0x00080000))
if(toggle=="+")
dll.call("SetLayeredWindowAttributes|hWnd colorref byte dword bool",
hWnd,colorref,0,1)
quit
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/