A script is stored on a remote control device. When a key is pressed, an
interpreter on the remote control device interprets the script thereby
causing codeset information (for example, key codes and protocol
information) stored on the remote control device to be used to output a
sequence of marks and spaces. Adjacent marks are combined into a larger
mark and adjacent spaces are combined into a larger space. From these
marks and spaces, a mark/space table and a string of timing information
are generated. The mark/space table and the string of timing information
are then used to generate an operational signal that is transmitted from
the remote control device. In one embodiment, only one mark/space table
and one string of timing information is ever present on the remote
control device at one time. This reduces memory requirements, thereby
reducing manufacturing cost of the remote control device.