How can I add things to the input line with a script, bound to an accelerator key?
This is something that seems useful, coming from a tinyfugue backgroundd.
e.g. I could hit keypad +, and it would send open to the input line,
then hit 8, and it would send north and send the command "open north".
"send to the input line" meaning, make it appear in the command window? (where you can append it, or hit enter and it sends, right?)
You'll use the function SetCommand, it send things to the command window (or sendto command, if youre in a trigger/alias/whatever and don't want to sendto script).
For the appending part, you'll need to do a little scripting, SetCommand will not overwrite something thats already in the command window, so what you could do is try and set always (for speed) and if it returns eCommandNotEmpty (it returns an integer, you can check in your constants file), and then if that is the case, get the stuff from the command window (GetCommand), clear it (Uh, with PushCommand, I guess, since I can't find anything to clear the command window, Nick, we need a ClearCommand), and then re-set it (after changing the string with whatever new thing you want).
And then you'd have to hit enter. Unless you want it to magically know when to send, and when to not send. Which is doable, but you'll probably just want to use send (or sendnopush).