Vista之家(www.vista123.com):【Vista之家译】让Vista的命令提示符背景也透明起来吧
记得以前在软媒论坛闲逛的时候经常遇到追求极致透明的会员,透明主题、透明文件夹背景....当时,就有人问,现在就剩命令提示符的DOS窗口是不透明的了,乌漆抹黑的,跟Aero一点都不协调。那么,现在,就让命令提示符的背景也透明起来吧!Aero万岁!
下载:
可以修改字体和颜色,甚至于,还提供了源代码,懂的可以自行修改并发到软媒论坛上与大家分享。
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


附部分原文:
Glass CMD for Vista
a small AutoIt Script that enables aero on the background of the cmd window
Credits goes to fediaFedia for this Idea and also for the screenshots and beta testing
...
Vista之家(www.vista123.com),爱上网,爱上Vista123.com
Vista之家相关文章


English




