; 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. #z::Run www.autohotkey.com ^!n:: IfWinExist Untitled - Notepad WinActivate else Run Notepad return ; ; space as modifier for 'vi' style hjkl cursor keys ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Space & F1::Return ; Mentioned in the hotkeys docs for UP *Space::Send {Blind}{Space} ; Send it explicitly when no other key is pressed before letting go, including any modifiers being held #If GetKeyState("Space", "p") ; Autohotkey_L directive for enabling following mappings when key is physically down y::^Left u::PgDn i::PgUp o::^Right h::Left j::Down k::Up l::Right n::Home .::End m::PgDn ,::PgUp d::Backspace f::Enter g::Delete 1::^1 ;d::^d /::^/ s::^s z::^z x::^x c::^c v::^v F6::^F6 F7::^F7 F8::^F8 #If ;# ;# Mouse keys ;# ;#If GetKeyState("f", "p") ; ;h::Numpad4 ;j::Numpad2 ;k::Numpad8 ;l::Numpad6 ; ;u::Send {NumpadDiv Down} 5 {NumpadDiv Up} ;o::Send {NumpadSub Down} 5 {NumpadSub Up} ;m:: ;,:: ; ;#If ; 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.