A poster on one of the other android posts mentioned you can just telnet into the android app if you've got the emulator running.
Its easy to do and the preferred way if you just want to script events. Just telnet into localhost 5554 and you can issue emulator commands.
user@dev:~$ telnet localhost 5554
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
Android console command help:
help|h|? print a list of commands
event simulate hardware events
geo Geo-location commands
gsm GSM related commands
kill kill the emulator instance
network manage network settings
power power related commands
quit|exit quit control session
redir manage port redirections
sms SMS related commands
avd manager virtual device state
window manage emulator window
allows you to send fake hardware events to the kernel
event send send a series of events to the kernel
event types list all type aliases
event codes list all code aliases for a given type
event text simulate keystrokes from a given text
allows you to change Geo-related settings, or to send GPS NMEA sentences
geo nmea send an GPS NMEA sentence
geo fix send a simple GPS fix
you get the idea...