8

Is it possible to have a slightly transparent command prompt window in Vista or Windows 7?

Are they any 3rd party alternatives?

5 Answers 5

11

I like Console, It supports transparency as well as tabbed command prompts.

5
  • Console is an awesome program. Strongly recommended.
    – Weegee
    Commented Jul 16, 2009 at 3:52
  • Cool, it looks like it has some recent activity. Last time I checked I thought it was a dead project.
    – duckworth
    Commented Jul 16, 2009 at 13:30
  • I tried a couple of ... hours, and didn't quite like it. I think it was the lack of "select+enter" to copy & right button to paste which make me abandon it .
    – OscarRyz
    Commented Jul 16, 2009 at 20:22
  • Tried this on Vista64, no text appears in the console. I can type, and it moves the cursor as if text is there, but nothing is visibly changing.
    – Sampson
    Commented Jul 17, 2009 at 15:38
  • @Oscar Reyes - I have Console 2.0+ configured to do what you want. Commented Mar 11, 2010 at 21:23
3

If you're looking for a glassy, aero effect, you can use Glass CMD.

2
  • Does it support "quick edit mode" ( select + enter to copy, right click to paste? )
    – OscarRyz
    Commented Jul 16, 2009 at 20:26
  • It should, it's just modifying the properties of a regular console window. Let me make sure... Yes, it does. Commented Jul 16, 2009 at 20:52
1

To make all your currently running cmd and powershell windows transparent, run this in a powershell terminal (windows opened after you run this, will not be transparent and your system will not be modified):

$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)}

To make your powershell terminal windows always transparent (this alters your user-specific powershell profile file):

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 }'
0

There are more "apply transparency to any random window" utilities available than you can shake a stick at. Google up one and give it a shot. You can adjust the transparency on pretty much any window, including consoles.

0

Take a look at PowerCmd, see also Terminal emulator with split panes for Windows 7 (64 bit)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .