web-dev-qa-db-ja.com

Vistaの透過的なコマンドプロンプト?

VistaまたはWindows7でわずかに透過的なコマンドプロンプトウィンドウを使用することは可能ですか?

それらはサードパーティの代替手段ですか?

8
duckworth

私は コンソール が好きです、それは透明性とタブ付きのコマンドプロンプトをサポートします。

11
TroyC

ガラス状のエアロ効果をお探しの場合は、 Glass CMD を使用できます。

3
Cristián Romo

現在実行中のすべてのcmdウィンドウとpowershellウィンドウを透過的にするには、これをpowershellターミナルで実行します(これを実行した後に開いたウィンドウは透過的ではなく、システムは変更されません)。

$user32 = Add-Type -Name User32 -Namespace Win32 -PassThru -MemberDefinition '[DllImport("user32.dll")]public static extern int GetWindowLong(IntPtr hWnd, int nIndex);[DllImport("user32.dll")]public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);[DllImport("user32.dll", SetLastError = true)]public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, uint crKey, int bAlpha, uint dwFlags);'
Get-Process | Where-Object { @('powershell', 'cmd') -contains $_.ProcessName } | % {$user32::SetWindowLong($_.MainWindowHandle, -20, ($user32::GetWindowLong($_.MainWindowHandle, -20) -bor 0x80000));$user32::SetLayeredWindowAttributes($_.MainWindowHandle, 0, 200, 0x02)}

PowerShellターミナルウィンドウを常に透過的にするには(これにより、ユーザー固有のPowerShellプロファイルファイルが変更されます):

if (-not Test-Path -Path $profile) { New-Item -path $profile -type file -force }
Add-Content -Path $profile -Value '$user32 = Add-Type -Name ''User32'' -Namespace ''Win32'' -PassThru -MemberDefinition ''[DllImport("user32.dll")]public static extern int GetWindowLong(IntPtr hWnd, int nIndex);[DllImport("user32.dll")]public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);[DllImport("user32.dll", SetLastError = true)]public static extern bool SetLayeredWindowAttributes(IntPtr hWnd, uint crKey, int bAlpha, uint dwFlags);'''
Add-Content -Path $profile -Value 'Get-Process | Where-Object { @(''powershell'', ''cmd'') -contains $_.ProcessName } | % { $user32::SetWindowLong($_.MainWindowHandle, -20, ($user32::GetWindowLong($_.MainWindowHandle, -20) -bor 0x80000)) | Out-Null;$user32::SetLayeredWindowAttributes($_.MainWindowHandle, 0, 200, 0x02) | Out-Null }'
1
grenade

PowerCmdを見てください。 Windows 7(64ビット)用の分割ペインを備えたターミナルエミュレーター も参照してください。

0
Mason Zhang

スティックを振るよりも多くの「ランダムウィンドウに透明度を適用する」ユーティリティが利用可能です。グーグルアップして、それを試してみてください。コンソールを含むほとんどすべてのウィンドウで透明度を調整できます。

0
Goyuix