Home PowerShell Internals Console Transparent Console
 

Transparent Console

Transparent Console

With just one low level API call, you can transform a boring classic PowerShell console into something sophisticated – provided that your computer uses the Aero theme.Have a look at this article! Rich Hewitt describes how to use the DwmExtendFrameIntoClientArea and points to a piece of PowerShell code written by MVP Oisin that makes it happen. When you play with it, you may want to adjust the console foreground color to keep the text readible. To change console colors like the foreground color, click on the icon at the left side of the console title bar, choose Properties and click on Colors. Then select Screen Text and mix your color with the RGB text boxes to the right.

I put together a little module that includes all of the functionality. You can download the module here:

AeroGlass for PowerShell Console
3.2 KiB
889 Downloads
Details...

You install it like any other module after you unzipped it and made sure it is no longer blocked (right-click the ZIP before you unpack, choose Properties, then click Unblock):

Enable-AeroGlassTheme: Switches a PowerShell console window to glass mode. Note that Aero glass of course needs to be turned on in your GUI.
Disable-AeroGlassTheme: Switches back to normal mode
Enable-TopMost: turns any window into a topmost window that stays above all other windows
Disable-TopMost: disables topmost status

Note that all functions are documented so after you imported the module, you can use PowerShell help:

Import-Module PTSAeroConsole
Help Enable-AeroGlassTheme -Examples

 

facebooktwittergoogle_pluspinterestlinkedinfacebooktwittergoogle_pluspinterestlinkedin  rssrss
AeroGlass for PowerShell Console
AeroGlass for PowerShell Console
PTSAeroConsole.zip
Version: 1.0
3.2 KiB
889 Downloads
Details...
The following two tabs change content below.

Tobias

PowerShell Wizard at scriptinternals
I love to create things and master challlenges. That's why I love PowerShell so much. I am a 10+ year Microsoft MVP, have written more than a 100 IT-related books with Microsoft Press and others, and like to expain complex things in a simple and understandable way. I am giving PowerShell trainings throughout Europe and organize the annual German PS Community Conference.

Latest posts by Tobias (see all)

Comments

  1. wrote on October 2nd, 2012 at 7:45 am

    Baum

    works fine =)
    ty

Add a comment