Javi

AHK

Jun 13th, 2020 (edited)
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn ; Enable warnings to assist with detecting common errors.
  3. #InstallKeybdHook
  4. #UseHook On
  5. #SingleInstance force
  6. SetKeyDelay, 10, 10
  7. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  8. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  9.  
  10. !c::Send,^{Ins}
  11. !v::Send,+{Ins}
  12.  
  13.  
  14. F1::
  15. run, snippingtool.exe,,, process_id
  16. WinWait, ahk_pid %process_id%
  17. WinActivate, ahk_pid %process_id%
  18.  
  19. º::Send,*
  20. !º::Send,\
  21. !7::Send,\
  22. !u::Send,[
  23. !i::Send,]
  24. !n::Send,{{}
  25. !m::Send,{}}
  26. !o::Send,{<}
  27. !p::Send,{>}
  28. !1::Send,|
  29. !2::Send,@
  30. !3::Send,{#}
  31.  
  32. +wheelup::send, {LWin Down}{+}{LWin Up}
  33. +wheeldown::send, {LWin Down}{-}{LWin Up}
  34.  
  35. Send !n
  36.  
  37.  
  38.  
  39. ; Center window on 4K monitor
  40. #c::
  41. WinExist("A")
  42. WinGetPos,,, sizeX, sizeY
  43. WinMove,,,(A_ScreenWidth/2)-(sizeX/2), 0, (A_ScreenWidth/2.2), A_ScreenHeight-50
  44. return
  45.  
  46. +^SPACE:: Winset, Alwaysontop, , A
  47.  
  48.  
  49.  
  50. ^<#v::
  51. Loop, parse, clipboard
  52. {
  53. Random, t, 10, 100
  54. Sleep, %t%
  55. Send %A_LoopField%
  56. }
  57.  
  58.  
  59. #If GetKeyState("CapsLock", "T")=1
  60.  
  61. h::Send,{Left}
  62. ^h::Send ^{Left}
  63. +h::Send {Home}
  64. ^+h::Send +{Home}
  65. l::Send,{Right}
  66. ^l::Send ^{Right}
  67. +l::Send {End}
  68. ^+l::Send +{End}
  69. k::Send,{Up}
  70. ^k::Send,{PgUp}
  71. j::Send,{Down}
  72. ^j::Send,{PgDn}
  73. x::Send,{Del}
  74. ^x::Send,^{Del}
  75. +4::Send,{Ctrl}{Home}
  76. 0::Send,{Ctrl}{End}
  77. <::AppsKey
  78. 1::Run, node msi-keyboard-CLI.js -c red -i light, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
  79. 2::Run, node msi-keyboard-CLI.js -c white -i light, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
  80. 3::Run, node msi-keyboard-CLI.js -k off, C:\Progra~1\nodejs\node_modules\msi-keyboard-cli, "Hide"
  81. #If
Add Comment
Please, Sign In to add comment