Quote: Originally Posted by allend66
I'm looking to start to automate some of my computer work and wondered which would be a better language to learn, that of autohotkey or Autoit.
Comments and suggestions welcome...
If you are going to use Autohotkey I recommend Autohotkey_L
It has object and array support lacking in ahk basic.
If you do get AutoIt3 I recommend you also get the WinAPIEx UDF package. It's going to be included in the next release. If you're lazy you can wait until then and get the help all integrated. But there's no telling how long to the next AutoIt release. Bacially WinAPIEx has wrappers for many of the Windows API calls you would ordinarily have to call yourself using the DllCall().
The major differece is that ahk has better hotkey implementation especially for the hotkeys only being active in certain circumstances. AutoIt cannot duplicate that behavior smoothly.
AutoIt3 has a cleaner syntax. It's more like Basic with Select Case and Switch statement lacking in ahk.
It's worth it to learn both. One reason is that no matter how well ahk implements the hotkeys, it has no native command line interface. If you want to compile a real console application, it can't do it. AutoIt3 can.
I have some applications where I do the hotkey detection in ahk and the main program in AutoIt3 either by sending the hotkey from ahk or using message passing.
Like anything, it depends on exactly what you're trying to do.