Created
September 10, 2010 14:40
-
-
Save stevehorn/573744 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;Use this AutoHotKey script to launch Console2 with the working directory set to the directory you have open in Windows Explorer. | |
| ;Think "open command window here" | |
| ;Shortcut is CTRL+ALT+H | |
| #IfWinActive ahk_class CabinetWClass ; for use in explorer. | |
| ;Open command window here | |
| ^!h:: | |
| Sleep 100 | |
| ClipSaved := ClipboardAll | |
| Sleep 100 | |
| Send !d | |
| Sleep 100 | |
| Send ^c | |
| Run, "C:\Program Files\Console2\Console.exe" -d "%clipboard%`" | |
| Clipboard := ClipSaved | |
| ClipSaved = | |
| return | |
| #IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment