![]() |
|
[AutoIt]Blur Behind Window - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: [AutoIt]Blur Behind Window (/Thread-AutoIt-Blur-Behind-Window) Pages:
1
2
|
[AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Minimum OS supported is Vista. So doesn't work on XP. This uses the Desktop Window Manager or DWM dynamic link library. 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![]() 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
[AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Minimum OS supported is Vista. So doesn't work on XP. This uses the Desktop Window Manager or DWM dynamic link library. 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![]() 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
RE: [AutoIt]Blur Behind Window - bluedog.tar.gz - 10-30-2011 Sweet, nice share! Spoiler:RE: [AutoIt]Blur Behind Window - bluedog.tar.gz - 10-30-2011 Sweet, nice share! Spoiler:RE: [AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Tnx! btw for the msgtooshort thingy i do something kewl... :> Code: [color=#FFFFF] [/color]You can try :3 RE: [AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Tnx! btw for the msgtooshort thingy i do something kewl... :> Code: [color=#FFFFF] [/color]You can try :3 RE: [AutoIt]Blur Behind Window - SPG.WoLF_TSC - 10-30-2011 Man, I would like Win7 or Vista =) RE: [AutoIt]Blur Behind Window - SPG.WoLF_TSC - 10-30-2011 Man, I would like Win7 or Vista =) RE: [AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Don't worry I'm posting something cool which works on all OS's... I'm going to call it the WirelessInfo UDF ^_^
RE: [AutoIt]Blur Behind Window - 1234hotmaster - 10-30-2011 Don't worry I'm posting something cool which works on all OS's... I'm going to call it the WirelessInfo UDF ^_^
|