I find AutoIt's BASIC-like syntax is a little nicer for complex tasks than AutoHotKey, although AutoItX (usable from C++, VB, C#, F#, and other managed languages) is the nicest to use of all.
Yes, you can make native-looking Universal Windows Apps with WinJS, distributed through the Store. They can call the same Windows Runtime API's as C++ or C# can. Many of Microsoft's built-in apps use WinJS.
XAML provides the declarative approach that you're suggesting, and was available ~10 years ago.
I played with it a bit at the time and was amazed it never took off. Probably it was just too far ahead of its time; JavaScript was still stuck in its "oh, that's what you use to make icons dance on crappy web pages" bad-reputation era.
anyway on win JS, have an upvote, but my advice is to stop extending html into some javascript/xml hybrid.
i think a functional approach there would be really sweet
lets extract the logic from the view, so its way more easy to maintain than also when you create a control on the fly you can see the difference in keystrokes: can you actually make native controls in win10 or windows mobile with this? that would be really cool also.