Archive for the ‘Windows’ Category
Disable Automatic Window Arrangement (Aero Snap, Windows 7)
The window arrangement feature in Windows 7 (the one that maximises windows to full- or half-screen when you drag them to the screen’s border) might appeal to many users, I however find it rather annoying than helpful.
Therefore I will show an option here that enables you to turn window arrangement off. Open the Windows Registry by entering regedit into a Run… prompt. On the left frame, browse the HKEY_CURRENT_USER\Control Panel\Desktop key and left-click it once. On the right frame, look for the WindowArrangementActive value – double-click it and change it from 1 to 0.
You may have to reboot your system, but afterwards window arrangement should be disabled.
Visualize your HDD space usage on Windows with Disk Space Fan
Of course you can view your disk space usage with the tools and statistics that Windows itself gives you, but if you want a closer and more detailed look at it, then try out Disk Space Fan. Disk Space Fan is a free-ware utility that shows not only how much space you have used on your disk but also what kind of software you have on it, and on top of it, it presents the information in a nice fan-shaped diagram:
You can also go deeper into the categories to gain an even more detailed view. Download Disk Space Fan on http://www.diskspacefan.com/download.html
Disable Windows Explorer Search Query Saving (Windows 7)
This is usually useful if you are not the only one using the computer you are working on and want to hide the keywords you searched for on the Windows Explorer. The way to do it is to open the Local Group Policy Editor by entering gpedit.msc into a Run… prompt, browse this key on the left frame: User Configuration\Administrative Templates\Windows Components\Windows Explorer and left-click it once to see its values on the right frame. Look for Turn off display of recent search entries in the Windows Explorer search box.
Double-click and enable it. The recent search queries will now no longer be displayed in your search bars.
Problem Steps Recorder in Windows 7
It can be really hard to solve computer problems if the only thing you’ve got is a description and nothing else. This is why Windows 7 integrated a Problem Steps Recorder which, if activated, records every action the user of the computer takes with a screenshot and a brief description of the action. Open it by typing psr into a Run… prompt:
The record is saved as a zipped mhtml file, usually only readable by Internet Explorer but also in Firefox if you install the proper add-on (it is called UnMHT, find it here). It displays all the descriptions of the steps taken along with the screenshots made and is also not too large in size, making it easy to share it with someone who might help out with a problem.
Use of Shell, Registry, Keyboard and Voice in VBScript (Windows)
Look here to learn how to create Visual Basic Scripts.
Using Visual Basic Script you can also access elementary Windows services, some them being really useful to irritate your friends. If at any point of the script there is an error stating that the double-quotes used in it are invalid characters, just delete the copied ones and type them again manually.
With the use of a shell, you can make VBScripts run programs and other executables. To do so you have to specify following line in the beginning of the script:
Set objShell = wscript.CreateObject(“wScript.Shell”)
Afterwards you can run commands with
objShell.run program
where you replace program with the program you want to run.
To add an executable to the autostart list via registry, you use the following script:
objShell.Regwrite “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\some_name.exe”,”C:\the\files\path.vbs
Replace the name with any name, it really can be any name, and the path of the file with the correct path. The script will then be executed on every start-up (be careful if you use this in combination with more dangerous scripts).
To make the script itself type as if it was the keyboard, use this script (a shell must be set for this as in the first script shown here):
objShell.sendkeys”key_goes_here”
Replace key_goes_here with the keys the script is supposed to hit. Some of them are embraced by curly brackets, as for example “{CAPSLOCK}”, “{NUMLOCK}”, “{SCROLLOCK}” and “{bs}” (backspace). Most however go without, as do all letter keys and enter (“~”). Combining all the locks with a loop usually gives a great script!
To make Windows’ integrated voice say some words defined by you, use the following script:
Set objVoice = CreateObject(“SAPI.SpVoice”)
objVoice.Speak “blabla”
Replace blabla with some serious things your computer has to say to you.
Disable Updates on Shutdown in Windows
To disable Windows from installing updates when you were about to shut down your computer and have some tea there are two options available in your Local Group Policy Editor. Access it by entering gpedit.msc into a Run… prompt. On the left side you will have a large directory listing where you have to browse Computer Configuration\Administrative Templates\Windows Components\Windows Update.
The two top options are the ones you have to enable by double-clicking, enabling and applying. Windows will then no longer pester you with updates on shutdown.
Messages, Loops and Pauses with Visual Basic Script
Visual Basic Script is a simple scripting language you can use in Windows to compile executable .vbs files. They can be created with a notepad document, save the script by choosing All files in the Save as type drop-down menu and give it a name ending with .vbs (if you leave the first drop-down menu on text-document, notepad will attach an invisible text-document suffix on the created file, no matter if you say so in the document name).
Now to the scripting VBScript can be used to either ease the use of Windows (as seen here) or to prank the hell out of your friends’ computers.
Here are a few useful script lines:
MsgBox “Text goes here!”,extracodes+go+here,”Title goes here!”
This shows a simple Windows Messagebox with a text and a title. The Extracodes determine special characteristics. They are defined in numbers and are seperated with a plus symbol: 0-5 define the available buttons. 0=Ok; 1=Ok,Cancel; 2=Abort,Retry,Ignore; 3=Yes,No,Cancel; 4=Yes,No; 5=Retry. Icons are defined by: 16=Critical Icon, 32=Warning Query Icon, 48=Warning Message Icon, 64=Info Icon. The code 4096 makes the window stay on top. Here is what following code looks like:
MsgBox “Hello hello, I’m a message box with a critical Error!”,2+16+4096,”Critical Error”
However, a simple messagebox will not impress anybody. How about a messagebox that reappears every time you close it? To do that, you need a loop. Simple put these two lines around the commands you want to loop:
do
[...]
loop
The commands will now be infinitely repeated until the script is interrupted. To put an interval into the loop, we let the script pause for a specific period of time. This is done with
wscript.sleep number
Replace number with an amount of milliseconds to wait.
Disable Visual Effects While Playing on Windows 7
The visual effects Windows 7 uses may be very pleasing to the eye, however they use up a lot of resources. If you like to play a lot on your computer this is an obstacle you do not need to face since you can disable compositions and visual themes upon starting a program. To do so, right-click the program’s icon and select Properties. Browse the Compatibility tab and have a look at the options it provides:
The most functional options here are Disable visual themes and Disable desktop compositions. If you check their boxes, these two options will be triggered upon starting the program and deactivated again when the program is closed. This way you save a lot of resources which your games or other applications can grab.
Make Windows XP Boot a Lot Faster
There is a simple registry option in the Windows XP Registry that, if not altered, adds a delay time to the the XP boot process. However you can easily set this delay time to zero if you know where to look for it: Open the Windows Registry by entering regedit into a Run… prompt. The registry is parted in two frames, the one on the left containing a large list of keys and sub-keys, the one on the right displaying the keys’ values. In the list of keys, browse the following:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex
Left-click the ContentIndex-key to see its values, look for StartupDelay and double-click to modify it.
The default value is the hexadecimal number 75300, which is the decimal number 480000. Leave the hexadecimal button active and just change the value to 0 (you can also pick another value; to see which hexadecimal value you have to take for a decimal number, just switch to decimal, enter the value and switch back again).
After making this change, close the registry and reboot Windows to see how fast it has become.














