There's also https://github.com/go-vgo/robotgo for the Go world.
Curious if you have tried the other method (I have not): https://stackoverflow.com/a/9371563
There are other projects which attempt to do similar things but I sincerely believe Simba is the best program for desktop automation to date.
I helped write it.
Most functionality is documented at http://docs.villavu.com/simba/.
We were considering moving the documentation to GitHub so people were more likely to contribute. There is a function viewer and many of the functions are documented in the source. The autogeneration was abandoned before it was set up because the program does what it was built to do.
Part of it is you need to have some idea what you want to do with the program before you start. Most of the tutorials exist on villavu.com's forums with the goal of automating gameplay.
If the logic grows and automation becomes complex, AutoIt is more suitable.