The online racing simulator
/run fails to assign buttons with ctrl_fXX and alt_fXX commands
I created 2 scripts to run when I change wheels, so I can quickly reassign buttons.
All standard functions work fine (pit_speed, flash, etc.), but the script throws errors for all ctrl_f10, alt_f10 and such lines:
wheel_formula : line 10 - Unknown button function

This is what my script looks like:
// Fanatec wheel with Button Module Endurance

/button 7 left_view
/button 1 right_view
/button 8 horn
/button 12 flash
/button 3 pit_speed
/button 4 tc_disable
/button 10 ignition
/button 23 ctrl_f9 // Indicator left
/button 24 ctrl_f10 // Indicator right
/button 11 ctrl_f11 // Hazard lights
/button 9 ctrl_f12 // Indicators off
/button 2 alt_f1 // toggle headlights
/button 49 alt_f2 // Front ARB +5
/button 50 alt_f3 // Front ARB -5
/button 37 alt_f5 // Rear ARB +5
/button 38 alt_f6 // Rear ARB -5
/button 27 alt_f9 // Status next
/button 32 alt_f10 // Status prev
/button 33 alt_f11 // Brake bal +1
/button 31 alt_f12 // Brake bal -1

** Best answer **
I found when entering similar commands in the chat, the problem you describe comes up if there are two spaces before the comment (//).

When I remove the second space it seems to work fine. That seems too sensitive but at least you should be able to fix your problem now.
Oh, never thought about comment spacing, good thing I included the script Big grin
Removing the extra space does work, thanks for the workaround.

FGED GREDG RDFGDR GSFDG