The online racing simulator
Gear shift with inSim
i guys, im trying to simulate a button press, specificaly the s key, which should change gears.
i use the "/press s" command and send it via a IS_MST message with no success.

After reading through the forumas i found this:
https://www.lfs.net/forum/thread/55528

It seems that changing gears (which is what im attempting to do, my gear starts in zero and requiers manual input to change to first gear, then the gears are automatic afterwards) is not possible through simulation of button preses.
How do i start the car in gear 1? am i overlooking a method to simulate button presses? i also attempted using IS_SCH, this didnt work either.
my code:


public void sendmsg(string cmd, int wait) {

insim.Send(new IS_MST()
{
Msg=cmd
});
System.Threading.Thread.Sleep(new TimeSpan(0, 0, wait));
}


void restartListen(InSim insim, IS_RST rst)
{
}
You cannot do this with just InSim alone. You can use WinAPI's FindWindow() and SendMessage() functions to get the HWND of LFS window and send simulated keystrokes to it.
i have used SendKeys to do this. However i have the same problem as insim: i cant sent control comands.

What i am trying to do is have the vehicle automatically shift gears, which happens, but for some reason at the beggining of the race, the car starts in a turned off state and you have to manually shift to first gear

FGED GREDG RDFGDR GSFDG