detect red underlined word (spelling error) with autohotkey

Hi,

Is there a way to find out if a word is underlined red (wrong spelling error) in order to use Autohotkey on it if selected?

If not is there a way to check whether a word exists in defined dictionary (spelling) and if it does not, add it using a hotkey?

Regards,
Pascal