Skip to content

Instantly share code, notes, and snippets.

@lotherk
Created April 14, 2017 12:14
Show Gist options
  • Save lotherk/400e14722b1970a1c24cae95d70bfbc1 to your computer and use it in GitHub Desktop.
Save lotherk/400e14722b1970a1c24cae95d70bfbc1 to your computer and use it in GitHub Desktop.
diablo 3 mighty macro
if starting:
ticks = 0
def update():
global ticks
ticks += 1
diagnostics.watch(ticks)
if (ticks >= 100):
ticks = 0
if keyboard.getKeyDown(Key.LeftShift) and mouse.leftButton:
keyboard.setPressed(Key.D1)
keyboard.setPressed(Key.D2)
keyboard.setPressed(Key.D3)
keyboard.setPressed(Key.D4)
update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment