Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Setup
- DRINK_POT_MODE := 0
- disable_pot()
- {
- global
- DRINK_POT_MODE := 0
- }
- enable_pot()
- {
- global
- DRINK_POT_MODE := 1
- }
- disable_pot_no_mods()
- {
- mods := modstate()
- if (mods = 0)
- {
- disable_pot()
- }
- Return
- }
- ; state of left modifier keys
- modstate()
- {
- return GetKeyState("LCtrl", "P") + 4*GetKeyState("LWin", "P")
- }
- KS_LCTRL := 1
- KS_LALT := 2
- KS_LWIN := 4
- KS_LBOTH := KS_LCTRL + KS_LALT
- ; ~ prefix doesn't block the actual press
- ; q (and no other modifiers)
- ~*q::
- disable_pot_no_mods()
- Return
- ; f (and no other modifiers)
- ~*f::
- disable_pot_no_mods()
- Return
- ; c (and no other modifiers)
- ~*c::
- disable_pot_no_mods()
- Return
- ; shift+alt+q
- ~*+q::
- mods := modstate()
- if (mods = KS_LALT)
- {
- disable_pot()
- }
- Return
- ; shift+z
- ~*+z::
- disable_pot()
- Return
- ; THIS IS YOUR BOW, TURNS THE SHIT ON
- ; e (and no other modifiers)
- ~*e::
- enable_pot()
- Return
- ~*LButton::
- if (DRINK_POT_MODE = 1)
- {
- Send, {blind}+{F1}
- }
- Return
- pgup::suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement