Advertisement
HollywoodScotty

Push To Talk; Remapping Scroll Lock Key To Toggle

Mar 30th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #SingleInstance, Force
  2. #NoTrayIcon
  3.  
  4. if not A_IsAdmin
  5. {
  6. Run *RunAs "%A_ScriptFullPath%"
  7. ExitApp
  8. }
  9. return
  10.  
  11. $*ScrollLock::
  12. While GetKeyState("ScrollLock", "P"){
  13. SendInput, {ScrollLock Down}
  14. SetScrollLockState, On
  15. }
  16. SendInput, {ScrollLock Up}
  17. SetScrollLockState, Off
  18. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement