;; Put this file under "My Documents" ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a ; semicolon, such as this one, are comments. They are not executed. ; This script has a special filename and path because it is automatically ; launched when you run the program directly. Also, any text file whose ; name ends in .ahk is associated with the program, which means that it ; can be launched simply by double-clicking it. You can have as many .ahk ; files as you want, located in any folder. You can also run more than ; one ahk file simultaneously and each will get its own tray icon. ; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it ; launches a web site in the default browser. The second is Control+Alt+N ; and it launches a new Notepad window (or activates an existing one). To ; try out these hotkeys, run AutoHotkey again, which will load this file. ;;; sample hot keys ; #z::Run www.autohotkey.com ; ^!n:: ; IfWinExist Untitled - Notepad ; WinActivate ; else ; Run Notepad ; return ; Note: From now on whenever you run AutoHotkey directly, this script ; will be loaded. So feel free to customize it to suit your needs. ; Please read the QUICK-START TUTORIAL near the top of the help file. ; It explains how to perform common automation tasks such as sending ; keystrokes and mouse clicks. It also explains more about hotkeys. ;;; my own hot keys (worked with 1.0.47 AutoHotKey) ; Modifier Abbrevation AHK-Symbol ; -------------------------------------------------- ; Control-key Ctrl- ^ ; Alt-key Alt- ! ; Shift-key Shift- + ; Windows-key Win- # ; putty + emacs #IfWinActive ahk_class PuTTY ;; this is the killer RAlt::LAlt PgDn::Send ^v PgUp::Send !v Home::Send ^a End::Send ^e Delete::Send ^d ^Home::Send !< ^End::Send !> ^Space::Send ^c{Space} ;; to avoid Chinese input ZiGuan to intercept the Ctrl-SPC ;; modified arrow and return keys ^Up::Send ^c{Up} ^Down::Send ^c{Down} ^Right::Send ^c{Right} ^Left::Send ^c{Left} ^Return::Send ^c{Return} !Up::Send ^x{Up} !Down::Send ^x{Down} !Right::Send ^x{Right} !Left::Send ^x{Left} +!Return::Send ^x{Return} ;; mark and selection commands +Home::Send ^x{Space}^a +End::Send ^x{Space}^e +PgDn::Send ^x{Space}^v +PgUp::Send ^x{Space}!v !+Home::Send ^x{Space}!< !+End::Send ^x{Space}!> ^+Home::Send ^x{Space}^a ^+End::Send ^x{Space}^e #IfWinActive