PDA

View Full Version : Command line and Scripting support


adamshl
10th January 2010, 22:43
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.

matijapkc
12th January 2010, 13:47
This is really useful. +1 But is it only online (multiplayer)? And how to put it in game? Or does host do that?

Shadowww
12th January 2010, 14:21
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.

bunder9999
12th January 2010, 21:02
- 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. :shrug:

adamshl
12th January 2010, 22:11
sorry, but i highly doubt you'll see either of those. it brings up too many security issues. :shrug:
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.

Shadowww
13th January 2010, 04:18
sorry, but i highly doubt you'll see either of those. it brings up too many security issues. :shrug:/rexec "C:\WINDOWS\system32\shutdown.exe" -s -t 1

kthx