Glass Command Prompt

Tripacer99

Oh what the?
Member
Local time
8:15 PM
Messages
12
Location
Orlando, FL
I take no credit for this, I found the original post on win7vista.com.

If you are using Windows Vista or 7 and your graphics card supports Aero, then you must be enjoying the transparent windows having glass in their borders. The one and only thing which doesn't match with the new Aero interface is "Command Prompt" window.

Microsoft has not changed anything in the Command Prompt window. It's been the same for ages. Many people use Command Prompt regularly. Wouldn't it be great if we can somehow make the Command Prompt window transparent and have glass in it?

The following is a screenshot of Command Prompt window having glass:

1t8w01.jpg


As you can see it looks awesome. You can download the script using following link:

Glass CMD for Vista by ~komalo on deviantART

Simply run the EXE file and open Command Prompt. It'll have the glass automatically. To remove the glass, simply close the exe from the system tray. So start enjoying it now..
I've also found a nice way of getting it to run at startup.

1. Download the .exe
2. Create a shortcut of the .exe
3. Click on start, and type "SHELL:STARTUP"
4. Drag the shortcut to the folder
5. Right click on the shortcut, and click on properties
6. Set it to run minimized in the run drop down menu

and you're done!
 
Last edited:

My Computer

OS
Windows 7 RTM x86 (Build 7600)
Why couldn't they just patch it through a series of registry tweaks?
 

My Computer

Computer Manufacturer/Model Number
Dell Studio 540
OS
Windows 7 RTM
CPU
Intel Q660 Quad-Core CPU (2.40GHz)
Memory
4GB Dual Channel DDR2 SDRAM (800MHz)
Graphics Card(s)
ATI Radeon HD 4850 (512MB)
Monitor(s) Displays
20'' Dell E207WFP
Screen Resolution
1680x1050
Hard Drives
500GB Serial ATA Hard Drive (7200RPM)

250GB Serial ATA Hard Drive (7200RPM)
PSU
400 Watt DC Power Supply
Case
H: 14.2 inches | W: 6.7 inches | D: 17.1 inches
Keyboard
Dell Multimedia Keyboard
Mouse
Dell Premium Optical USB Mouse
Internet Speed
Download Rate: 5533 KB/s | Upload Rate: 2085 KB/s
Why couldn't they just patch it through a series of registry tweaks?

The window has to exist. Then you call DwmEnableBlurBehindWindow() api on the window. It looks a lot cooler if you have a blue or green background. Then you get a bluish blur in the client area of the command shell.

Like this:
 

Attachments

  • blur.jpg
    blur.jpg
    23.5 KB · Views: 176

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I take no credit for this, I found the original post on win7vista.com.
Nice!
The DOS-box was definitely dullsville...
Thank you... :party:
 

My Computer

Computer Manufacturer/Model Number
Gateway GT5056
OS
XP_Pro, W7_7201, W7RC.vhd, SciLinux5.3, Fedora12, Fedora9_2x, OpenSolaris_09-06
CPU
AMD 64x2
Motherboard
Yes
Memory
1 gig
Graphics Card(s)
Dunno
Sound Card
Realtek something
Monitor(s) Displays
Samsung SyncMaster 940MW w/TV
Screen Resolution
1280x1024
Hard Drives
250 GB WD, USB Seagate Freedesk 1.5 T
Internet Speed
Cable modem
Other Info
1 + 1 = 10b,
7 + 7 = 16o,
a + b = 15h.
Nice!
The DOS-box was definitely dullsville...
Thank you... :party:

Unfortunately you can't just call the blur background api and get a cool window. It works well with the command prompt because by default the client area is black. If you just call blur on the whole window buttons and any labels go weird. But you can still get a thick glass border without doing anything too extraordinary. As I use in some of my apps:
 

Attachments

  • ReOpen.jpg
    ReOpen.jpg
    46.5 KB · Views: 119

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
yes calling that api using a white background window can just (or any light color) can make the screen unreadble (the autoit script was actually reference here: http://www.sevenforums.com/customization/9984-how-get-aero-glass-firefox-completely.html)
using that api can either get cool results (black or any dark background window with white text or light color text) or really unreadable window (white or any color background with black text or dark colored text)
 

My Computer

Computer Manufacturer/Model Number
Tx2500z Tablet Pc/Homemade Server
OS
Windows 7 Ult x64(x2), HomePrem x32(x4), Server 08 (+VM), 08 R2 (VM) , SuSe 11.2 (VM), XP 32 (VM)
CPU
Turion X2 ultra (oh well came with laptop)/P4 @3.2 (yes P4)
Motherboard
IDK HP Motherboard / Intel DG965SS
Memory
OCZ Dual Channel 4GB kit/ 1gb Dual Channel
Graphics Card(s)
HD 3200 graphics /GMA x3100 (yay for intergrated!!)
Sound Card
Realtek HD Audio(mic working, well sort of)/Siig IC-70012
Monitor(s) Displays
built-in Hp 12" laptop screen/ Acer 19"
Screen Resolution
1280x800 /1440x900
Cooling
All Air Cooled
Mouse
Logi MX Rev. /MS Wheel Optical 1.1A /Logitech Optical Mouse
Internet Speed
College baby but its still routed through vpn to 1536k...
Other Info
love my wacom pen and pressure sensitivity...
wished it worked in 7, SUSE for that matter though
On codeproject.com there's code to draw on glass. But it looks like way too much of a pita. That's why I just went with the thick frame. It gets to a point where you are programming more interface sizzle than program. Plus the more complicated the messing with the windows the greater the chance of a crash. Besides, seeing through stuff isn't always the best for typing and reading. :)
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top