F7 - Spam 2 (useful if you just need to spam one ability)
Alt+Q - Salvage macro (select salvage, hover over item that requires salvage confirmation, hit Alt+Q)
XButton1 (side mouse 1) - Spam left click (use to pick up loot)
XButton2 (side mouse 2) - Spam right click (use to spend shards, etc.)
Click (LButton) - Normal click with Alt depressed (assign force stand still to Alt - forces left click to fire ability rather than move)
Control+Click - Normal click bypassing "Alt" keypress (use to trigger pylons, move to another level, etc. -- technically not needed since above will only fire without modifier, but there just in case of conflicts)
Anything else that would be helpful? Let me know I'll work it in.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallMouseHook
#MaxThreadsPerHotkey 2
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
toggle = 0
chatopen = 0
voiceopen = 0
#IfWinActive, Diablo III
$~Enter::
If toggle {
chatopen := !chatopen
}
return
#IfWinActive, Diablo III
$~/::
If !chatopen and toggle {
chatopen := !chatopen
}
return
#IfWinActive, Diablo III
$~Escape::
If chatopen and toggle {
chatopen := !chatopen
}
return
#IfWinActive, Diablo III
F8::
toggle := !toggle
While toggle {
If !chatopen {
ControlSend, , {Blind}2, Diablo III
ControlSend, , {Blind}3, Diablo III
ControlSend, , {Blind}4, Diablo III
sleep 250
}
}
return
#IfWinActive, Diablo III
F7::
toggle := !toggle
While toggle {
If !chatopen {
ControlSend, , 2, Diablo III
sleep 250
}
}
return
#IfWinActive, Diablo III
!Q::
Click
Send {Blind}{Enter}
return
#IfWinActive, Diablo III
$XButton1::
While GetKeyState("XButton1", "p") { ; While it is held down
MouseClick Left
Sleep 50
}
return
#IfWinActive, Diablo III
$XButton2::
While GetKeyState("XButton2", "p") { ; While it is held down
MouseClick Right
Sleep 50
}
return
#IfWinActive, Diablo III
$~LButton::
ControlSend, , {Alt Down}, Diablo III
KeyWait, LButton
ControlSend, , {Alt Up}, Diablo III
return
#IfWinActive, Diablo III
$^LButton::
Send {Blind}{LButton}
return