Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. ; Setup
  2. DRINK_POT_MODE := 0
  3.  
  4. disable_pot()
  5. {
  6. global
  7. DRINK_POT_MODE := 0
  8. }
  9. enable_pot()
  10. {
  11. global
  12. DRINK_POT_MODE := 1
  13. }
  14.  
  15. disable_pot_no_mods()
  16. {
  17. mods := modstate()
  18. if (mods = 0)
  19. {
  20. disable_pot()
  21. }
  22. Return
  23. }
  24.  
  25. ; state of left modifier keys
  26. modstate()
  27. {
  28. return GetKeyState("LCtrl", "P") + 4*GetKeyState("LWin", "P")
  29. }
  30. KS_LCTRL := 1
  31. KS_LALT := 2
  32. KS_LWIN := 4
  33. KS_LBOTH := KS_LCTRL + KS_LALT
  34.  
  35.  
  36.  
  37.  
  38. ; ~ prefix doesn't block the actual press
  39.  
  40.  
  41. ; q (and no other modifiers)
  42. ~*q::
  43. disable_pot_no_mods()
  44. Return
  45.  
  46. ; f (and no other modifiers)
  47. ~*f::
  48. disable_pot_no_mods()
  49. Return
  50.  
  51. ; c (and no other modifiers)
  52. ~*c::
  53. disable_pot_no_mods()
  54. Return
  55.  
  56.  
  57. ; shift+alt+q
  58. ~*+q::
  59. mods := modstate()
  60. if (mods = KS_LALT)
  61. {
  62. disable_pot()
  63. }
  64. Return
  65.  
  66. ; shift+z
  67. ~*+z::
  68. disable_pot()
  69. Return
  70.  
  71. ; THIS IS YOUR BOW, TURNS THE SHIT ON
  72. ; e (and no other modifiers)
  73. ~*e::
  74. enable_pot()
  75. Return
  76.  
  77.  
  78. ~*LButton::
  79. if (DRINK_POT_MODE = 1)
  80. {
  81. Send, {blind}+{F1}
  82. }
  83. Return
  84.  
  85. pgup::suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement