the DtTvB Posted June 26, 2006 Posted June 26, 2006 This is my first AutoIt script. From my knowledge of VB.Here is the function, you can place somewhere in your code.Func SetOpacity($hwnd, $opacity) Dim $a $a = DllCall("user32.dll", "long", "GetWindowLongA", "hwnd", $hwnd, "long", -20) DllCall("user32.dll", "long", "SetWindowLongA", "hwnd", $hwnd, "long", -20, "long", BitOR($a, 524288)) DllCall("user32.dll", "long", "SetLayeredWindowAttributes", "hwnd", $hwnd, "long", 0, "long", $opacity, "long", 2) EndFuncUsage: SetOpacity ($hwnd, $opacity)$hwnd - Hwnd of target window$opacity - Opacity value in the scale of 0-255Full Script:transparent.au3 (Makes a translucent window.)fade.au3 (Fades form in, and out.) [right]Please visit: My biggest project, the DtTvB's AutoIt Web ServerOlder Stuff: A Smoother MouseMove :: AutoIt Syntax Highlighter[/right]
GaryFrost Posted June 26, 2006 Posted June 26, 2006 Look for WinSetTrans in the help file SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now