The online racing simulator
assigning functions to buttons / .lfs scripts
https://en.lfsmanual.net/wiki/Script_Guide#Parameter_reference

It is not possible to assign "block chat" to a button. It is hardcoded to the minus-key "-" and that key is not supported by the /press function.


When assigning functions to buttons, one has to do this workaround via the F1-F12 chat macros.
Would it be possible to allow something like:
/button 9 /run scriptName

Changing brake balance:
Some cars allow to adjust brakebalance/dampers while driving which is very cool.
But it is a bit cumbersome to first open the F11, scroll to correct line with arrow keys, adjust value, close F11 menu.
It would be nice to have some way to just press a button or turn a dial.
(It is somewhat possible via workaround with scripts, like
//move brake balance to front:
/press f11
/press down
/press down
/press left
/press f11

Quote from Gutholz :Changing brake balance:
Some cars allow to adjust brakebalance/dampers while driving which is very cool.
But it is a bit cumbersome to first open the F11, scroll to correct line with arrow keys, adjust value, close F11 menu.
It would be nice to have some way to just press a button or turn a dial.
(It is somewhat possible via workaround with scripts, like
//move brake balance to front:
/press f11
/press down
/press down
/press left
/press f11


This use-case in particular is why LFS is so great on wheels that have rotary encoders. The DFGT, G29/920 and most TM/Fanatec rims have multi-mode rotary encoders to which you can bind the next/increment/decrement/toggle functions to via LFS scripts. While in truth it is actually easier to bind these in iRacing than in LFS for instance, it's nice that it's still possible, and we're still given full freedom of how we set these up. The way LFS currently works allows you the versatility of being able to assign such encoders to multiple functions, not just one setting (e.g. brake bias). This is akin to iRacing's Blackboxes where a rotary encoder can effectively manipulate every single option with a single wheel control.

In my opinion, a far more useful bind would be one that cycles the F11/F12 menus, again akin to the iRacing blackboxes. In the meantime, that too can be set up with LFS scripts.
Quote from Gutholz :It is not possible to assign "block chat" to a button. It is hardcoded to the minus-key "-" and that key is not supported by the /press function.

In the current test patch, you can use the command /press minus (or /shift minus)

In the version I should release this afternoon, there is also a new text command /block X
/block [0/1/2] - block messages (none / user / all)

FGED GREDG RDFGDR GSFDG