How to make my code work
Posted: 09 Aug 2022, 21:57
I have some problems playing multiversus on pc because Down Normal Attack is very hard to do and I'm trying to make a script to make these actions easier, the purpose of my function is When aKey is pressed then do: ArrowDown Hold, key Hold, ArrowDown Release, Wait for aKey Release, key Release
But when i try to run my script i just get Down Attack can be a charged attack so i need to wait the aKey release
But when i try to run my script i just get Down Attack can be a charged attack so i need to wait the aKey release
Code: Select all
#Requires AutoHotkey v2.0-beta
downCombo(key,aKey){
if (GetKeyState(aKey)){
Send "{Down down}"
Send (key Down)
Send "{Down up}"
while (GetKeyState(aKey)){
sleep 20
}
Send (key Up)
}
}
Loop{
WinWaitActive "MultiVersus "
downCombo("x","z")
downCombo("c","v")
}