it's kinda cobbled together from looking at other bits, and the main part works for random presses, but while it parses fine it doesn't do hold down far as I can tell. certainly doesn't seem to work when tested. the outside was added to make it more useable, but then it seemed to fall apart. The button needs to be held down to let the camera swing as opposed to rapid fire presses. I am still learning. just can't figure out what I'm doing wrong here know it's prolly something stupid
Code: Select all
\::
Loop, 50
Random, Delay, 1000, 8000
Random, TRd5, 20, 600
cam:
Send, {
Random, var, 1,5
if (var = 1){
Send, {Left down}
Sleep, %TRd5%
Send, {Left up}
}
if (var = ){
Send, {Right down}
Sleep, %TRd5%
Send, {Right up}
}
if (var = 3){
Send, {Up down}
Sleep, %TRd5%
Send, {Up up}
}
if (var = 4){
Send, {Down down}
Sleep, %TRd5%
Send, {Down up}
}
if (var = 5){
Send, {Left down}
Sleep, %TRd5%
Send, {Left up}
}
}
SetTimer, Cam, %Delay%
Return
esc::exitapp ; <- Press escape to exit.
return