Why doesn't this work? It seems to do nothing. I want to hold the up arrow if both mouse buttons are being held, and to let go of the arrow if either of them is released.
pressing := 0 ;false
Loop
{
L := Getkeystate(LButton)
R := Getkeystate(RButton)
if (!pressing AND (L AND R))
{
Send {Up Down}
pressing := 1 ;true
}
if (pressing AND (!L OR !R))
{
Send {Up Up}
pressing := 0 ;false
}
sleep 20
}