Originally Posted by
Mavrck48
Winsane,
First, thanks for the great script. However, I was trying to modify it to also include the ability to spam a shift + a key. For example, to spam shift + 5 by holding down shift + 5. I have attempted to modify your code to get this to work, but I can't seem to get it right. This is the code I'm trying. Any ideas?
*5::
Loop
{
GetKeyState, state, 5, p
GetKeyState, shiftstate, Shift, p
if (state = U)
{
break
}
else if (state = D) and (shiftstate = D)
{
Send, +{5}
Sleep, 25
}
else
{
Send, {5}
Sleep, 25
}
}