daily pastebin goal
5%
SHARE
TWEET

AHK

Javi Oct 12th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. F1::
  6. run, snippingtool.exe,,, process_id
  7. WinWait, ahk_pid %process_id%
  8. WinActivate, ahk_pid %process_id%
  9.  
  10. Send !n
  11.  
  12. #If GetKeyState("CapsLock", "T")=1
  13.  
  14. h::Send,{Left}
  15. l::Send,{Right}
  16. k::Send,{Up}
  17. j::Send,{Down}
  18. x::Send,{Del}
  19. +4::Send,{Ctrl}{Home}
  20. 0::Send,{Ctrl}{End}
  21. #If
RAW Paste Data
Top