#IfWinActive, Diablo II ; Only run if this window is active.
e:: ; e key pressed, else exits.
GetKeyState, state, F12 ; Right mouse button.
if state = D ; if F12 is down
Send {F12 up} ; set it up.
else ; If F12 is up.
Send {F12 down} ; set it down.
return
Maybe people would comment code more if not for this ^^ mess




