Since you always posted v1 code in your posts above, I would expect that you have AHK v1 already installed (apparently along with AHK v2, which is fine) and used it before.
The shown error message seems to indicate that now you tried to run the script from an editor like eg SciTE4AHK; so make sure to select AHK v1 to run the script (in SciTE, there is a version selector button, if I remember correctly).
Trying to run it outside of an editor, the v2 launcher would probably suggest to install v1, if not already available. Adding
#Requires AutoHotkey v1.1 should avoid any ambiguity for the AHK
launcher, if there should be any.
Regarding the usage of code tags, I have posted an image. Code tags will add one of those fancy and helpful codeboxes everyone else uses (so far, we have edited all your posts containing code (see above) and added them for you). If you have specific questions about steps 1 or 2 shown in the image (or additional ones), please feel free to ask.