I'd like to request a feature to introduce a new Repetier-Host specific command named "@skip". This would skip the next upcoming line of G-Code when running through Repetier-Host to allow a sort of conditional G-Code, for distinguishing running through Repetier-Host or from SD.
It would allow generating your G-Code like this:
;@skip
M117 My Message
;@skip
M0 ; Prompt LCD button (Marlin)
;@pause My Message
When running on from SD, this would run the M117 and M0, but when running from Repetier-Host, it would skip those and run the @pause instead! This way you have a single generated G-Code which supports either use case.
Another example is this:
;@skip
M300 S300 P1000
;@sound
When running from SD this would beep the LCD, when running from Repetier-Host it will not beep and instead play the sound defined in Repetier-Host.
I'd love to see a command like the above. Let me know what you think. Also let me know if something like this is already possible in a different way.
Note: it could also take a parameter (@skip 2 which would skip the next 2 G-Code commands), but that's completely optional and might make it more confusing.