My basic rationale:
- Specifying where to run ("ALL","OTHERS", player name, MAC address)
requires appending a ":" to the first word of the command (e.g. *ALL:
power 0*) so KidsPlay can easily identify location specifiers; I've
never seen a CLI command with a ":" in its first word.
- Commands are joined with ";" because it's what I'm used to. But
from a programmer's perspective, it better represents how KidsPlay
works. Right now it just fires off the commands in sequence, without
waiting for earlier commands to finish, or verifying that earlier
commands worked. When I see *do this && do that*, "&&" looks like a
boolean operator (harkens back to Unix shells), almost like you're
saying "do that" shouldn't occur if "do this" failed. Maybe I should
add a new command or syntax extension to tell KidsPlay to wait for one
command to finish before executing the next one in the macro.
- Words including whitespace (*display "My message here"*) use
regular quotation marks and no URI-escaping so it's easier to use.
Of course you're most welcome to grab any code from KidsPlay if you'd
like.
--
peterw
http://www.tux.org/~peterw/
free plugins: http://www.tux.org/~peterw/#slim
AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay
KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
SettingsManager SleepFade StatusFirst SyncOptions VolumeLock
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=48521
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins