I'm a little confused but what i think you want is in the lines of:
Code:
AppActivate "Calculator"
SendKeys "5"
Simply change the Calculator part to the caption of the program that you are sending keys too.

Gl,
D!m