I want applescript to input into microsoft excel "No, (tab, tab again), Yes". I can't seem to make this work. I would preferably like it to start whenever I press a hotkey or something, but having to swipe over and activate the script should be ok.
There is a lot of information about how to write Applescript code in general and how to use it to send keystrokes available on the net. System Events, Key Code and Keystroke looks kind of interesting in your case and should get you started.