You don't say what program you're using but if it's HotkeyNet, very often people get lots of errors of that kind when they save their script in a word processing format (such as RTF) .

The script must be saved in TXT (ansi) format.