When comparing Cortana vs AutoHotkey, the Slant community recommends AutoHotkey for most people. In the question“What are the best power user tools for Windows?” AutoHotkey is ranked 9th while Cortana is ranked 46th.
Ranked in these QuestionsQuestion Ranking
Pro Can recognize music
You can ask Cortana what music is playing and she will attempt to identify it.
Pro Will let you know when artists you're interested in play in your area
Cortana monitors your Bing search history, social network actions, music played, etc to find out what are your favorite artists and will let you know if they plan to play in your area.
Pro Can map keys to scripts
Pro Fully programmable
With a full programming language powering the hotkeys, including GUIs, it is powerful and flexible
Pro Scripting of common procedures
AHK allows full scripts to be created and used. it is very flexible.
Pro Allows for extremely easy remapping keys and buttons on your keyboard, joystick, and mouse
You can reprogram any key combination, including the Windows key with a syntax like this one:
that automatically remaps the H key to show a message box.
Can interact with any Windows program / dialog / form, filling fields, submitting data, etc., without dependency on the window placement.
Con Functionality is limited on non-Windows devices
While Cortana is available on Android and iOS, certain features on those operating systems are either limited or non-existant. For example, there's no hands-free voice activation on iOS, and on Android it's only available on the homescreen and nowhere else, etc.
Con Programming language is primitive
The base syntax, inherited from the first version of AutoIt, is primitive (a bit like an improved batch syntax). But once used to it, it remains flexible and powerful.