The block is finished with a return at the end. ![]() The next line is an action. In this case, the action launches an application with the Run command. After that, there’s a double colon (::) to signify the start of an action block. The pound sign (#) is short for the Windows key and c is the C key on the keyboard. Here’s a basic AHK script that launches Google Chrome whenever you press Windows+C: #c:: There are a lot of different actions, hotkey combinations, and control structures, but all scripts will operate on the same principle. They’ll also go away when you sign out of Windows or reboot your PC, of course.Īt its core, AHK does one thing-bind actions to hotkeys. ![]() To exit, pause, reload, or edit a script, right-click the notification icon and select an appropriate option. Scripts will continue to run in the background until you exit them.
0 Comments
Leave a Reply. |