...so we could code things like the request from ferque6 for a single-line...
cntl>a
as...
gosub>cntl,a
srt>cntl
press cntl
send %GOSUB_PARM%
release cntl
end>cntl
Regards
Allow a parameter on Gosub
Moderators: Dorian (MJT support), JRL
A very simple workaround (and works just fine from a design point of view, since msched scripts normally contain global variables anyway) is:
Let>GOSUB_PARM=cheese
Gosub>cntl
Allowing "cntl>" (SRT) to be recognised as a command is ... dangerous. It hinders new native commands in MSChed. What if a new feature is added that just happens to be named the same as what someone has already?
However, it may indeed save a few lines of code by allowing the
Gosub>cntl,cheese
Let>GOSUB_PARM=cheese
Gosub>cntl
Allowing "cntl>" (SRT) to be recognised as a command is ... dangerous. It hinders new native commands in MSChed. What if a new feature is added that just happens to be named the same as what someone has already?
However, it may indeed save a few lines of code by allowing the
Gosub>cntl,cheese