[AutoIt]Blur Behind Window 10-30-2011, 09:40 AM
#1
Minimum OS supported is Vista. So doesn't work on XP. This uses the Desktop Window Manager or DWM dynamic link library.
Ex:![[Image: j9UwYcSeyLpP2.png]](http://k.minus.com/j9UwYcSeyLpP2.png)
Ex:
Code:
Func _BlurBehindWindow($hWnd,$Activate=1)
Const $DWM_BB_ENABLE = 0x00000001
$Struct = DllStructCreate("dword;int;ptr;int")
DllStructSetData($Struct,1,$DWM_BB_ENABLE)
If $Activate = 1 Then
DllStructSetData($Struct,2,"1")
Else
DllStructSetData($Struct,2,"0")
EndIf
DllStructSetData($Struct,4,"1")
$dll = DllOpen("dwmapi.dll")
DllCall($dll,"int","DwmEnableBlurBehindWindow","hwnd",$hWnd,"ptr",DllStructGetPtr($Struct))
DllClose($dll)
EndFuncEx:
Code:
Run(@ComSpec)
_BlurBehindWindow(WinGetHandle("[CLASS:ConsoleWindowClass]"),1) ;Enable Blur![[Image: j9UwYcSeyLpP2.png]](http://k.minus.com/j9UwYcSeyLpP2.png)
Ex:
Code:
RunWait(@ComSpec)
If ProcessExists("cmd.exe") Then _BlurBehindWindow(WinGetHandle("[CLASS:ConsoleWindowClass]"),1) ;Enable Blur
Sleep(2500)
_BlurBehindWindow(WinGetHandle("[CLASS:ConsoleWindowClass]"),0);Disable Blur
(This post was last modified: 11-02-2011, 05:17 AM by Skullmeat.)
Pierce the life fibers with your drill.




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
Don't worry I'm posting something cool which works on all OS's... I'm going to call it the WirelessInfo UDF ^_^