I've been using AutoHotkey as well as AutoIt in the past. If I need keyboard macro, I use AHK. But if I need automation that interacts with other apps, I use AutoIt. It's fairly easy to get started writing scripts, but I've never liked the language/syntax of either AHK or AutoIt. One thing I wish I could do this is to write everything in Python, Lua, etc...
Work on modernizing AutoHotkey's syntax has been ongoing for years, and the v2 alpha makes huge (backwards-incompatible) steps to make the syntax simpler and more consistent.
No, I've used just first method and it was working fine. Btw second one seems more easier to transfer pure AutoIt code to Python due to same function names.