I'm using LFS Script to set controller profiles plus some other LFS related settings for the different cars. It all works very well except for one minor annoyance. If I exit LFS or return to the entry screen, I would like to reset my controllers to a default setting. I've read all of the docs, searched the forums, and tried everything I can think of short of using an external program via InSim.
Here is a rough outline of what I'm doing.
I set some defaults using autoexec.lfs which is called at LFS start.
For every car that is used, the associated *.lfs script calls an external app to apply the controller settings.
The problem.
If LFS is exited using Alt+F4, or drilling down the menus to exit, the last cars settings are still in force. Returning to the entry screen does not re-invoke autoexec.lfs.
My current workaround is to call LFS via a CMD script that resets controllers on LFS exit. This is a bit messy and suboptimal. LFS started via a replay association for example, will bypass the loader script, and therefore miss resetting the controllers.
Does anyone have a suggestion on how to detect LFS entry screen, or signal LFS exit from within an LFS script?
Here is a rough outline of what I'm doing.
I set some defaults using autoexec.lfs which is called at LFS start.
For every car that is used, the associated *.lfs script calls an external app to apply the controller settings.
The problem.
If LFS is exited using Alt+F4, or drilling down the menus to exit, the last cars settings are still in force. Returning to the entry screen does not re-invoke autoexec.lfs.
My current workaround is to call LFS via a CMD script that resets controllers on LFS exit. This is a bit messy and suboptimal. LFS started via a replay association for example, will bypass the loader script, and therefore miss resetting the controllers.
Does anyone have a suggestion on how to detect LFS entry screen, or signal LFS exit from within an LFS script?