Advertisement
Guest User

ahk

a guest
Jul 4th, 2023
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 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. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. ; Docs:
  7. ; https://autohotkey.com/docs/Hotkeys.htm
  8. ; https://autohotkey.com/docs/KeyList.htm
  9. ; Ref https://autohotkey.com/board/topic/60675-osx-style-command-keys-in-windows/
  10.  
  11. ; You need to disable "Between input languages" shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys
  12.  
  13. ; Universal shotcuts
  14.  
  15. CapsLock::Control
  16. $!x::Send ^x
  17. $!c::Send ^c
  18. $!v::Send ^v
  19. $!s::Send ^s
  20. $!a::Send ^a
  21. $!z::Send ^z
  22. $!+z::Send ^y
  23. $!w::Send ^w
  24. $!f::Send ^f
  25. $!n::Send ^n
  26. $!q::Send !{f4}
  27. $!r::Send ^{f5}
  28. $!m::Send {LWin Down}{Down}{LWin Up}
  29. $!`::Send {Alt Down}{Shift Down}{Tab}{Shift Up}
  30.  
  31. ; Quick Switch Tab shotcuts
  32.  
  33. $!1::Send ^1
  34. $!2::Send ^2
  35. $!3::Send ^3
  36. $!4::Send ^4
  37. $!5::Send ^5
  38. $!6::Send ^6
  39. $!7::Send ^7
  40. $!8::Send ^8
  41. $!9::Send ^9
  42. $!0::Send ^0
  43.  
  44. ; Chrome shotcuts
  45.  
  46. $!t::Send ^t
  47. $!+t::Send ^+t
  48. $!+]::Send {Ctrl Down}{Tab Down}{Tab Up}{Ctrl Up}
  49. $!+[::Send {Ctrl Down}{Shift Down}{Tab Down}{Tab Up}{Shift Up}{Ctrl Up}
  50. $!l::Send ^l
  51.  
  52. ; input methods
  53.  
  54. ; $+,::Send ^,
  55. ; $+.::Send ^.
  56.  
  57. ; navigation, selection, delete a word/till end
  58.  
  59. $!Left::Send {Home}
  60. $!Right::Send {End}
  61. $!Up::Send {Lctrl down}{Home}{Lctrl up}
  62. $!Down::Send {Lctrl down}{End}{Lctrl up}
  63.  
  64. $#Left::Send {ctrl down}{Left}{ctrl up}
  65. $#Right::Send {ctrl down}{Right}{ctrl up}
  66. $#+Left::Send {ctrl down}{shift down}{Left}{shift up}{ctrl up}
  67. $#+Right::Send {ctrl down}{shift down}{Right}{shift up}{ctrl up}
  68.  
  69. $!+Left::Send {shift down}{Home}{shift up}
  70. $!+Right::Send {shift down}{End}{shift up}
  71. $!+Up::Send {Ctrl Down}{shift down}{Home}{shift up}{Ctrl Up}
  72. $!+Down::Send {Ctrl Down}{shift down}{End}{shift up}{Ctrl Up}
  73.  
  74. !BS::Send {LShift down}{Home}{LShift Up}{Del}
  75. #BS::Send {LCtrl down}{BS}{LCtrl up}
  76.  
  77. $#Space::Send {Ctrl Down}{LWin Down}{Space}{LWin Up}{Ctrl Up}
  78.  
  79. LControl::Escape
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement