The online racing simulator
Command line and Scripting support
Hi,

I have a few suggestions for improving command line and scripting support:

- Add support environment variables - like e.g. %windir% or %systemroot% for "/exec" command.
- Remove limit number of characters per line for "/exec" command - because too long path to external program can't be executed.
- Add command "/pause [milliseconds]" - halt execute next lines of script for a specified period.
- Add command "/WaitOnReturn" - wait for return of previous command before execute next line of script.
- Add support for command without a parameter - e.g. "/ff" should return currently set value e.g. 15.
- Add support for command in "/echo" command - e.g. "/echo Force Feedback: '/ff'%" should return "Force Feedback: 15%".

e.g. stats.lfs script:
/echo ^2LFS World statistics: ^7WR
/w wr
/echo ^2LFS World statistics: ^7PB
/w pb
/w fuel
/w laps

Above script returns both "/echo" commands before "/w" commands, because there is a delay during download statistics from LFSW server, here would be helpful command like e.g. "/WaitOnReturn" for halt execute next lines of script before return of previous command.

Between "/echo" and "/w" commands is returned info when I leave the pits, here would be helpful command like "/pause [milliseconds]" to halt execute next lines of script for a specified period.

New version of stats.lfs script could look like this:
/pause 250
/echo ^2LFS World statistics: ^7WR
/w wr
/WaitOnReturn
/echo ^2LFS World statistics: ^7PB
/w pb
/w fuel
/w laps

The final result would look properly.
Attached images
bad_returns.jpg
This is really useful. +1 But is it only online (multiplayer)? And how to put it in game? Or does host do that?
Also /toggle like /press, and /ctoggle for /ctrl key and /stoggle for /shift key.

E.g. /toggle G would make sure your front lights are always on.
Quote :- Add support environment variables - like e.g. %windir% or %systemroot% for "/exec" command.
- Remove limit number of characters per line for "/exec" command - because too long path to external program can't be executed.

sorry, but i highly doubt you'll see either of those. it brings up too many security issues.
Quote from bunder9999 :sorry, but i highly doubt you'll see either of those. it brings up too many security issues.

Exec command works only for a local client or local host but non-remote, so I don't know about security problems you have in mind.
Quote from bunder9999 :sorry, but i highly doubt you'll see either of those. it brings up too many security issues.

/rexec "C:\WINDOWS\system32\shutdown.exe" -s -t 1

kthx

FGED GREDG RDFGDR GSFDG