Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 22nd, 2013  |  syntax: Autohotkey  |  size: 1.25 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
  2. ; semicolon, such as this one, are comments.  They are not executed.
  3.  
  4. ; This script has a special filename and path because it is automatically
  5. ; launched when you run the program directly.  Also, any text file whose
  6. ; name ends in .ahk is associated with the program, which means that it
  7. ; can be launched simply by double-clicking it.  You can have as many .ahk
  8. ; files as you want, located in any folder.  You can also run more than
  9. ; one ahk file simultaneously and each will get its own tray icon.
  10.  
  11.  
  12. SetCapsLockState, alwaysoff
  13. CapsLock & i::
  14.         if getkeystate("shift") = 1
  15.                 Send, +{up}
  16.         else
  17.                 Send {up}
  18. return
  19. CapsLock & j::
  20.         if getkeystate("shift") = 1
  21.                 Send, +{left}
  22.         else
  23.                 Send, {left}
  24. return
  25. CapsLock & k::
  26.         if getkeystate("shift") = 1
  27.                 Send, +{down}
  28.         else
  29.                 Send, {down}
  30. return
  31. CapsLock & `;::
  32.         if getkeystate("shift") = 1
  33.                 Send, +{right}
  34.         else
  35.                 Send, {right}
  36. return
  37.  
  38. CapsLock & q::Send !{F4}
  39. CapsLock & tab::Send {space 4}
  40.  
  41. CapsLock & h::
  42. GetKeyState, state, Shift
  43. if state = D
  44.         Send {SHIFTDOWN}{HOME}{SHIFTUP}
  45. else
  46.         Send {home}
  47. return
  48. CapsLock & '::
  49. GetKeyState, state, Shift
  50. if state = D
  51.         Send {SHIFTDOWN}{end}{SHIFTUP}
  52. else
  53.         Send {end}
  54. return