Glass CMD for Vista
a small AutoIt Script that enables aero on the background of the cmd window.
How to use:
1) Just run it.
Note:
Works for Windows 7 and Vista only.
Screenshot:
[img]https://www.**********/image/70600/cmd.png[/img]
Source Code so far:
Code:
#NoTrayIcon
#include <WinAPI.au3>
#include <Constants.au3>
#include <WindowsConstants.au3>
$ProcessID = Run(@SystemDir & "\cmd.exe","",@SW_HIDE)
WinWait("[CLASS:ConsoleWindowClass]")
$hWnd = WinGetHandle("[CLASS:ConsoleWindowClass]")
EnableBlurBehind($hWnd)
WinSetState($hWnd,"",@SW_SHOW)
Func EnableBlurBehind($hWnd)
If @OSVersion <> "WIN_VISTA" Then
MsgBox(16, "EnableBlurBehind", "You are not running Vista!")
Return
Else
Const $DWM_BB_ENABLE = 0x00000001
Const $DWM_BB_BLURREGION = 0x00000002
Const $DWM_BB_TRANSITIONONMAXIMIZED = 0x00000004
$Struct = DllStructCreate("dword;int;ptr;int")
DllStructSetData($Struct,1,$DWM_BB_ENABLE)
DllStructSetData($Struct,2,"1")
DllStructSetData($Struct,4,"1")
DllCall("dwmapi.dll","int","DwmEnableBlurBehindWindow","hwnd",$hWnd,"ptr",DllStructGetPtr($Struct))
EndIf
EndFunc