Where to learn how to code?

Get help with using AutoHotkey and its commands and hotkeys
Posts: 189
Joined: 02 May 2017, 02:34

Where to learn how to code?

13 Mar 2018, 05:33

Could someone suggest a easy, friendly place to learn? Other than the help files? What language is AHK coded in? Do you know of any tutorials online ( i do not have the time to read a book unfortunately ) where one can learn?

I understand the basics kinda.

Code: Select all

If a != b
Sleep, 200
and so on. What I don't understand is the how the system is built so would be fun to learn and get a better understanding of what I am actually doing. I try to hang in the forum to read peoples requests for help to learn from it, but most requests are beyond my knowledge so I'm bascially reading chinsese while eating soup.
Posts: 5372
Joined: 30 Sep 2013, 06:48

Re: Where to learn how to code?

13 Mar 2018, 06:26

Autohotkey itself is coded in C++ and does a lot of stuff with the Windows API (imagine rather cryptic dll calls and stuff), which is much more complicated than AHK itself.

Imho you are doing the right thing - looking at forum posts. Then, try to play around with the code snippets, look things up in the docs that you don't understand and ask questions, if that doesn't help. Also, try all the examples from the docs and try to change and combine them.

Of course, you can also find many basic concepts in AHK that you could look up elsewhere, for example regular expressions. Another example, objects in AHK are (more or less) similar to object-oriented concepts in other programming languages. So, you could look at general texts about object-oriented programming if you wanted to get a deeper understanding of it. There are videos on Youtube about all kind of general programming topics, including videos about AHK.
Forum member Joe Glines has made a series of very good Youtube videos about webscraping and data handling, if you are interested in these topics.

In the end, there is no magic button to press. I personally did my first programming in the 1980's on Sinclair Spectrum and Amstrad home computers - in the 90's I did a lot of Visual Basic for Applications, a bit later I did some programming with SQL, Java and statistical programming packages - and some other things that I already forgot. That's why I have a certain knowledge about some basic concepts of programming - but I still don't know much compared to others here. One reason is that everyone has another learning curve, of course also based on specific use cases, experiences in the past and different amounts of enthusiasm and time that can be spent. For some people, thinking in algorithms comes natural, for others not so much... often, it can help to plan a complex series of actions in pseudo-code, before you actually program it.

I think you learn the most by actually doing something. Write some code and then review how it can be improved or find out, why it is not working. This can be frustrating at times - but that is part of the learning process :)

Re: Where to learn how to code?

13 Mar 2018, 06:47

The best way to learn is to have an actual interest in what you want to learn. When I started Autohotkey, all I knew how to do was create macros, and wasn't really even good at that. At some point the syntax just clicked and I was referencing the help file for almost everything. I'm confident in saying that if you locked me away in prison for a year with nothing but the AHK help file and with no internet connection, I would be able to learn AHK from scratch. It really is that useful. I haven't seen another programming language as well documented as AHK is. Figure out what you want to do with AHK and start Googling your questions. When you find something that works, make sure you take the time to learn why it works.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], effel, Haan, hasantr, mikagenic, mikeyww, takenbythedesert, TXShooter and 41 guests