'Email trigger AutoHotKeys to run?

I am learning to use AutoHotKeys and I have a repetitive task that happens on every email. But it involves a different program outside of google. So I am wondering if someone can help with this. My research is showing I can use HotStrings but never used those and How would I have that trigger AutoHotKeys to turn on?

I am hoping there is just a command I can use but if not I just need to figure out a way to trigger the program to run. I am happy to import my Gmail into outlook or any mail program to make this work.



Solution 1:[1]

Based on the question and no code this is a Hotkey:

!^a:: ; Alt+Ctrl+a
...Do some stuff
Return

This is a Hotstring:

::aye::
...Do some stuff
Return

Notice how the Hotstring is preceded by two colons and the Hotkey is not. Hotstrings are usually used for auto-replace when typing, such as typos or automatically expanding a shorthand notation to a full string. Example:

::tysm::thank you so much

Factually you can use them to fire a script too though like the first example above of a Hotstring. Hope that makes sense :)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 T_Lube