Mharr replied to Rebind dodge? September 10, 2021 @ 3:39:27 am PDT
I have a movement double-tap script for this but it can be kinda annoying while sailing:
SetTitleMatchMode, 2
SetKeyDelay, 0
Dodge()
{
If (GetKeyState("RButton"))
{
Send, {Space}
}
Else
{
Send, {RButton Down}{Space}
Sleep, 100
Send, {RButton Up}
}
}
#IfWinActive Valheim
~w::
If (A_PriorHotkey <> "~w" or A_TimeSincePriorHotkey > 250)
{
KeyWait, w
Return
}
Dodge()
Return
~a::
If (A_PriorHotkey <> "~a" or A_TimeSincePriorHotkey > 250)
{
KeyWait, a
Return
}
Dodge()
Return
~s::
If (A_PriorHotkey <> "~s" or A_TimeSincePriorHotkey > 250)
{
KeyWait, s
Return
}
Dodge()
Return
~d::
If (A_PriorHotkey <> "~d" or A_TimeSincePriorHotkey > 250)
{
KeyWait, d
Return
}
Dodge()
Return
SetTitleMatchMode, 2
SetKeyDelay, 0
Dodge()
{
If (GetKeyState("RButton"))
{
Send, {Space}
}
Else
{
Send, {RButton Down}{Space}
Sleep, 100
Send, {RButton Up}
}
}
#IfWinActive Valheim
~w::
If (A_PriorHotkey <> "~w" or A_TimeSincePriorHotkey > 250)
{
KeyWait, w
Return
}
Dodge()
Return
~a::
If (A_PriorHotkey <> "~a" or A_TimeSincePriorHotkey > 250)
{
KeyWait, a
Return
}
Dodge()
Return
~s::
If (A_PriorHotkey <> "~s" or A_TimeSincePriorHotkey > 250)
{
KeyWait, s
Return
}
Dodge()
Return
~d::
If (A_PriorHotkey <> "~d" or A_TimeSincePriorHotkey > 250)
{
KeyWait, d
Return
}
Dodge()
Return
11:13 am, September 10, 2021