I am trying to create a script which cycles through the rear view camera, flyby camera and the cockpit..
For some reason my script skips the keywait and executes what comes next.. tried it in windows explorer.. and the script is not working at all in game.... the F11 wont work in game for example..
Code: Select all
SendMode Input ;
$RControl::rearview()
Cockpit()
{
SendInput {F9}
SendInput {F9}
return
}
Rearview()
{
SendInput {s}
KeyWait RControl
FlyBy()
}
FlyBy()
{
SendInput {w}
KeyWait RControl
Cockpit()
}
rearview is F11
flyby is F12 but I put in w for testing which failed
please help me