nice to meet you. Let's start with AutoHotkey, a program that anyone can easily create macros . This video is a basic lesson. We plan to only follow the parts that even those who have never coded before can follow . From this point on, I mix the coding a bit and use the . It might give you a little headache, though. I'm thinking of implementing more features. If you look up AutoHotkey on Namoo Wiki, it says scripting language. That's a programming language. This means that it is not just a macro program. However, it is said that the main purpose of using it is to create macros. We will also learn AutoHotkey to create macros. First, try installing the program together. Let's see how to use it simply. And we'll use a simple yet essential function that we need to know. There are two main programs that need to be installed. First, we will install the AutoHotkey compiler. next. Although not a required program. We'll install an editor to make writing code easier. First, go to autohotkey.com/download/ and download the . Download AutoHotkey Installer. I will leave the address at the bottom of the video. Click this button to download the exe file. You just have to run it right away. So when the download is complete, it will run. You can choose Express Install and install it in no time. This is the end of the installation. So, press exit to complete the installation. Next, we will download the editor. Likewise, I will leave it at the bottom of the video. If you click on the installer here, the installation file is downloaded. Just click on it and the installation will start right away. So install. And there is no need to touch any requirements, just press install. So it's easy to install as well. I think it opens once. Please click OK. There is nothing to touch about this, so click update. Oh, you can turn it off. And click the Yes button to update this too. You can see that it is installed quickly. All you have to do is close it now. Now, let's start using AutoHotkey in earnest. The way you write this is very special. Right-click on the blank screen and select New to create a file. You should see an autohotkey script. If you click on that, a file will be created. Let's name the file test. When I double-click to open the yogurt, nothing happens. So this is not open by double-clicking. You need to right-click to edit it. Then, the editor we installed is automatically launched. This will open the test.ahk file like this. Delete everything because you don't need it. Press Control+s to save. If you save it like this, you can start with an empty state. So let's figure out what the hell to put in this one by one. Now it's f3. It means that pressing f3 will execute some command. Just write the commands you want to automate after this code. If you write msgbox hello world. When you hit f3, a window will pop up with the message hello world written on it. In other words, msgbox can be understood as a command that displays a message in the window. Let 's try to follow along . You can resize with the mouse wheel while holding down the control. Well, first of all, you can do it with f2 instead of f3. You need to put two colons. and a message box. msg is the only way to get it. When you install the editor, a list of which functions can be used is listed below . So, even if you write only msg, you can see that you have to write box like this at the end. And you have to put a comma after msgbox. And it tells you what format to put it in. Don't worry about it now. Like I did before, Hello World. Let's try this. Now, when I press f2. A window called Hello World should appear. I'm going to save it by pressing Ctrl+s. Then a strange file is created. Don't worry about this for now. Just double-click on the file to run it. So if you double-click. It seems like nothing happened . You can see that test.ahk is running in the lower right corner . Pressing f2 in this state will now bring up the Hello World window. Every time you press f2, you can see that Hello World is created. To turn it off here, right-click and press exit. Now pressing f2 won't open the window. In this way, you can specify a command when a specific key is pressed. And send is a command that automatically enters the following words. It's really simple. And the click command is a command that clicks based on the coordinates. However, you should set the coordinates keeping in mind that 00 is the upper left corner . Let's practice the send and click functions. Send What kind of word to put after the comma... Let's say hello. Press Control+s to save and . You can double-click it, but you can also right-click and click run script. If you run the run script, you can see it in the lower right corner. What happens when you press f2 in this state? Because it is a command that automatically enters the requirement keyboard. Hello will come after you. Press f2 to say hello. You can see that Hello enters continuously every time you press it. You can automatically control the keyboard with this simple command. I hope you can understand it like this . I'll turn it off again. And I'll try clicking it once. To click, some coordinates must be entered. How do you find the coordinates? Press the start key to run spy. based on windows. A spy program must have been installed. If you install AutoHotkey, it will be installed automatically. Search for spy. Run windows spy. You should know how to watch this program. Now, the important thing is the mouse position. There are three major mouse positions. There are three types of screen window clients. First of all, screen means screen. If you hover your mouse over the upper left corner of the full screen, you can see that it is 00 and . Windows and the client are pretty much the same. First, let's talk about Windows. A window is a window. So the active window would change every time you click on it. If you select this window. Coordinates are set based on the upper left corner of this window. So if you put it on the upper left like this, it becomes 00. The client is like a window. Excludes any part of the window. Excepted parts are outside. Usually because I'm interested in the inside. Except for the status window and menu. Set the coordinates below this to 00. If you look at the back, there are parentheses. less often used default recommended. Because the default is Windows. Let's run the command to click on 00. It's already running, so I'll turn it off and try again. It goes to 00 when I press f2. You can tell where 00 is. You can see it going to the top left of the window. The last command to look at is image search. This command is a bit difficult. Let me explain it in an easy way. To find the position of a specific image within a certain range. For example, if you want to find the location of that red button within these images. Just take that part and save it as an image file. If you run the above command, . You can even click on the location of the image you want. Because it's hard to understand just by explaining it like this. Let's try it ourselves and get used to it. I've enlarged the screen to make it easier to see. Image search is not working well. We will proceed with 100% original condition. It will do an image search when f3 is pressed. output variable x y. I'm going to find the image and save the location as a variable. I'm going to save it as xy. x1 y1 x2 y2 is the range in which to search the image. I want to click the save button inside this. I'm going to narrow it down to something like this. If you look at the window spy, the text may be a little small. It seems to be around 300 300 on Windows basis. So the range is 00 to 300300. Put the image file name after this. Start button + shift + s to capture. Capture and save. I will save it to the desktop. I will save test.png like this . When running in this state, the image may not be found. I'm not sure how the logic works. Even if the image is slightly different, you can find it. I put a tolerance of 100 or so. The maximum is 255, because if you do that, you'll find things that are too strange. In my experience, it seems to be able to find the image well by setting it to 100. *100 followed by the file name. You can put it like this. And make these coordinates clickable. click xy. This is not the end. To let you know that this xy is a variable. Add % before and after. This is AutoHotkey's own syntax, so you have to follow it. What I just put in several % at once. You can insert them at the same time by holding down the control key and left-clicking. So I think it would be good to use this as well. Save this and run it with a double click. It was already running. Run it by double-clicking it and press the f3 button. I can't find the image when I click on the desktop and press f3. I have to select the window with the image I'm looking for so the mouse moves. Press f3 to find the image, move the mouse over it, and click. There are many other commands besides click. You can change it with mousemove. You don't click, you just move. Even if you press f3 in this state, because there is no designated image on the desktop, . Activate the window and press F3 to get to the right location. rather than clicking in the middle of the image. You can think of it as moving based on the upper-left coordinates of the image . Up to this point, it was a basic AutoHotkey lecture that anyone who knows nothing of coding can follow . How was it? I think everything would have been very easy except image search. It seems difficult because there are a lot of factors that image search goes into. Don't just look with your eyes. It's not that difficult if you try it yourself. Once you get used to it, you will feel more confident. I think it will be very helpful to move on to the next step. Next time I'll build on what I've learned and try to upgrade. Instead, it can get a little more difficult. So the coding will go into a little bit. Because instead, you will be able to do more different things. I think there will be enough value to learn. Let's finish this video. Thank you for watching. Hi.