; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: Brendan O'Connor ; ; Script Function: ; Hotkey to ; launch cygwin bash shell at the current win explorer location. ; Requires cygwin-in-dir.bat which is just the same as cygwin.bat ; but without the "chdir" line. ; ; AutoHotKey is gpl'd and quite cool, from www.autohotkey.com. ; this script is public domain'd. ; ~^o:: WinGetClass, theclass, A ;MsgBox, The window class is %theclass% if theclass = CabinetWClass goto, startCygwin if theclass = ExplorerWClass goto, startCygwin Exit ;_______________________________________ startCygwin: WinGetActiveTitle, thetitle if thetitle = Documents thetitle = %USERPROFILE%\My Documents if thetitle = My Documents thetitle = %USERPROFILE%\My Documents if thetitle = Desktop thetitle = %USERPROFILE%\Desktop Run, c:\cygwin\cygwin-in-dir.bat, %thetitle%