Create a Shortcut Key for Restoring a Specific Window [AutoHotkey Answers]
Posted by Nikos | Posted in General | Posted on 10-02-2010-05-2008
0
Windows only: If you’ve ever wanted to assign a shortcut key directly to your favorite applications, you can do so easily with this simple AutoHotkey script.
The general idea of the function is that you can assign a specific hotkey to a specific window—when you press the shortcut key once, the window will come to the foreground, and if you press it again, the window will minimize. This way you can toggle between the windows you use most often, without having to bother with Alt-Tab.
To make your own AutoHotkey script for restoring a specific window, create a new *.ahk script and paste in the following code:
ToggleWinMinimize(TheWindowTitle)
{
SetTitleMatchMode,2
DetectHiddenWindows, Off
IfWinActive, %TheWindowTitle%
{
WinMinimize, %TheWindowTitle%
}
Else
{
IfWinExist, %TheWindowTitle%
{
WinGet, winid, ID, %TheWindowTitle%
DllCall("SwitchToThisWindow", "UInt", winid, "UInt", 1)
}
}
Return
}
Now that you have the function, you can start using it to create your own hotkeys for specific applications with a line similar to this one, which would assign Alt+X to toggle Firefox between being minimized and active.
!x::ToggleWinMinimize("Mozilla Firefox")
If all this AutoHotkey is a little more than you can understand, be sure to check out our beginner’s guide to AutoHotkey, where we explain how you can use this simple scripting language to turn any action into a keyboard shortcut.
This script is courtesy of the Lifehacker Coders group over on Productive Geek forums, and reader bobbo33 is the AutoHotkey wizard that figured out how to make it work for any window, and solved a long-standing problem I’ve personally had with the WinRestore function. Thanks, bobbo33!

The wizard of tech on Wall Street, Piper Jaffray’s
There’s been a lot of talk recently about
Windows 7 features a guest account that can make it easy for friends and housemates to quickly check their email or the web on your system. Giving it a different name, however, makes it a bit more secure.
Over the last ten months, 
Everybody’s got a wireless network at home, but if you’ve ever wanted to get your iPod touch, iPhone, or other wireless device connected but all you’ve got is a wired network at work, school, or elsewhere, Windows 7 makes this process trivial.
You’ll want to start out by heading into the Network and Sharing Center through the Control Panel, or you can quickly get to it by right-clicking on the network icon in the system tray. Once you are there, find the link for “Set up a new connection or network”.

You’ll notice that the ad hoc networks that you create get added to the quick-select wireless network list-when you disconnect from your ad hoc network—it’s the same as stopping it. Connecting to the network is the same as starting it back up; this way you can quickly switch back and forth between connections with just a few clicks.
The last step is enabling connection sharing through your regular network card, which will allow anybody connected to your ad hoc wireless to use your internet connection. To do so, you’ll want to head into the Network and Sharing Center, click the “Change adapter settings” link on the left, and then find your network connection in the list—it’s very important that you only enable internet connection sharing on the adapter that is actually connected to the internet. In this case, my internet access at work goes through my Local Area Connection, so I’ve enabled it there.