simulate function keys

hi,

is it possible to simulate the function keys in a unix script, like simulating an enter key press. if it is possible can anyone tell me how it is ?

If your Operating System has the "expect" program this may be what you are looking for.
Otherwise please expand the post and show examples.