multiple send commands
mshunt
Posts: 23
Just a quick question that I could be answer myself if I had a TP infront of me.
Can a SEND_COMMAND send more than one command in a single command.
I'm guessing not, but like I say without a panel in front of me to test it on today I just can't wait!!!!
Feel free to flame me if I'm being an idiot!
If not, however it would be a useful future feature in my eyes for code optimisation etc...
Can a SEND_COMMAND send more than one command in a single command.
SEND_COMMAND dvTP,"'@PPX PPON-PAGE PPON-ANOTHERPAGE'"
I'm guessing not, but like I say without a panel in front of me to test it on today I just can't wait!!!!
Feel free to flame me if I'm being an idiot!
If not, however it would be a useful future feature in my eyes for code optimisation etc...
0
Comments
it doesn't hurt to send two commands right on top of each other. Most AMX devices can buffer the commands.
So
You can even put them on the same line if it makes you feel better
Like I said I thought not, It would just be a nice feature if you could group a number of commands to the same device in the same SEND_COMMAND
Perhaps that's a feature for Netlinx 4!
I don't really see how that's a feature. You can send multiple commands, you just can't send them in one send_command statement. Given that the syntax can get ugly with quotes and commas, etc, putting many commands in one send_command would be more effort with no gain.
Paul
Granted I understand we're talking about two different things, but the idea is the same.
I would agree, but you can break it out to separate lines like so: See? Multiple lines - haha!
smash it all together in one, really large, incomprehensible line, that's what I do. There's job security in write only code, you know.
That's a joke, of course. There used to be a contest among C language programmers to write the most incomprehensible code to do something like print out 'hello world.' This was back in like 96 or so. Some of the entries were stunning, to say the least. I was never very good at that sort of thing as I was primarily interested in writing Fortran code at the time. Writing Fortran code became particularly lucrative as year 2000 approached. It paid to be a dinosaur back then.
edit: found the link on the first try:http://www.ioccc.org/
Paul