• Become a Power user Intro to AutoHotkey Intermediate AutoHotkey Intermediate Objects GUIs are Easy w/AutoHotkey Painlessly switch from V1 to V2

Basics of Creating a Hotkey: Extract from Intro to AutoHotkey in v2

How to create a Hotkey: Intro to AHK in v2 Extract
Intro to AHK v2 Hotkeys Extract


This video teaches viewers how to create hotkeys in AutoHotkey v2 for launching actions and performing various tasks.

  • 00:00 📝 Learn how to create hotkeys in AutoHotkey, which are triggers used to launch actions, in this extract from the Intro to AHK v2 Hotkeys course.
  • 00:49 📝 Creating hotkeys in AHK v2 is as easy as creating hot strings, with the only difference being the syntax for specifying the hotkey and the action, and modifier keys like Control, Alt, Shift, and Windows can be referred to using special characters.
  • 02:09 💡 To create a hotkey in AHK v2, use the character for the modifier key (e.g., control) followed by the desired key (e.g., enter) and separate them with a colon.
  • 03:03 📝 The speaker explains the difference between hotkeys and hot strings, and demonstrates how to create a hotkey that opens a website when a specific key combination is pressed.
  • 04:08 💡 The Run command in AHK v2 allows the user to execute files or open websites with their default application, making it convenient and efficient.
  • 05:12 🔑 You can easily create hotkeys for various actions like opening files, folders, or websites using AHK v2, with the hotkey command taking a hotkey as the first parameter and the corresponding action on the right side.
  • 05:58 💡 The speaker explains how to define and use a function in AHK v2 for performing actions based on a specific hotkey.
  • 06:50 💡 Create dynamic hotkeys in AutoHotkey by defining a variable and using an if statement to determine if the hotkey should be set or not.
hey it’s Joe Glines from the-Automator and this video we’re going to show you it’s an extract from our Intro to Autohotkey course intro and V2 that is and this is going to walk you through how to create HotStrings and Hotkeys right phenomenally helpful you can use them to launch things you can do using them for a lot of different stuff they’re think of them as triggers when you want to do
something is the most often used so in this video here is this is going to walk you through how to set them up I’m going to put up a coupon code or a link that’ll give you 20 percent off if you’re interested in getting the intro to AutoHotkey course it’s a great solid course I think it’s around four hours long most of videos are between three to five minutes this one’s a little bit longer butthey’re very very to the point and easy to follow they’re built for people who don’t know anything about
coding so check it out I hope you liked it please like the video If this helps you because it really helps us out cheers creating HotStrings so again anAuto Hotkey it is just a matter of specifying the Hotkey that you want and the action the only thing that changes a little bit is the syntax of how you do that let me go ahead and show you how to create static and dynamicHotkeys so if we open a new file we have our directives here for single instance and what it requires and in this case let’s
go ahead and create a Hotkey you have the hashtag like this so if I want to create a Hotkey that says Ctrl enter
or Ctrl shift enter I don’t have to write control or you know shift I don’t have to write any of that I just use the character that is designed for it and that’s the reason why on the Hotkeys because you because each each of them has a specific meaning but now to create a Hotkey let’s go ahead and say that I want to show a message box when I hit control enter so what I would do is I would have
to use the character for control which is the correct and then enter as a word like that and then I put two columns one after the Auto which defines that I’m doing a HotString instead of aHotkey here I don’t have the two columns at the beginning but I do have the two columns to divide the action in this case let’s go ahead
and do message box right and this is a test so now when I run this script whenever I hit Ctrl enter on my keyboard I will get this new box this is great as I mentioned it’s really easy and even though this example is very simple you could do many Auto things and actually very cool things for example just to show you how easy it is instead of a message box let’s do something a little bit more practical let’s say that I want to have a website show up whenever I press aHotkey so let’s go ahead and do control okay shift
F1 I can do this Ctrl shift F1 now what I could use in this case is the-Automator
website here I run this up and again as I mentioned this is Ctrl shift plus F1 in this case and this is Control Plus enter right so I’m running my script Ctrl shift F1 just goes ahead and open scrum with that page so just imagine how cool it is that you can create HotStrings and is
the same concept with the Hotkey command instead so this command takes a Hotkey as the first parameter notice that I’m actually putting quotation marks because this is literal text so this would be control so let’s say Ctrl shift enter in this case and then the action goes on the right side but the second side the the action that I’m going to perform is usually a function that you’re going to call and for that reason I do not have to put that in quotation marks because it is a function object and not only that I have
to Define define the function myself so let’s say open desktop this is going to be my function I just name it like that but as that is not literal text this is referring to a function you do not have to put quotation marks there but you do have to define the function somewhere else we will talk about functions later during the course but as a quick overview this function will take one parameter it is the plot key that I press this up and in the braces here I’m going to put the actions that I want to perform with this function in this case
what I want to do is run the desktop so a desktop is a variable that contains the path to my desktop and if I try to run a folder what is going to happen is that AutoHotkey is just going to go ahead and open the folder in Explorer so in this case this is the way to define a dynamic Hotkey which you can of cAutose use option right if you have a variable called option you can determine if it is true or false and if it is true then go ahead and use theHotkey and set theHotkey if it is false don’t set it so this is the way
to create Dynamic Hotkeys the-Automator this is how simple you can create Hotkeys in here

Master the Art of Automation with AutoHotkey Hotkeys and Hotstrings: The Ultimate Beginner’s Guide

AutoHotkey Hotkeys and HotStrings: The quickest way to automate!

One of the first practical things that people can learn to create in AutoHotkey is a simple AutoHotkey hotkey and hotstrings. Hotkeys and hotstrings are a powerful and convenient way to automate tasks on a Windows computer, and they are relatively easy to create and use.

For example, you could create a hotkey to launch a specific program or open a specific folder with just a few keystrokes. You could also create a hotstring to automatically expand a short abbreviation into a longer phrase or sentence, saving time and effort when typing repetitive or commonly-used phrases.

To create an AutoHotkey hotkeys and hotstrings, you will need to use the following syntax:

AutoHotkey Hotkeys:

hotkey:: action

For example, to create a hotkey using the Windows Key and the letter C to launch the Google Chrome browser, you could use the following code:

#c::Run “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” ;Windows key + C to run Chrome

AutoHotkey Hotstrings:

::abbreviation::expanded text

To create a hotstring to automatically expand the abbreviation “btw” into the phrase “by the way,” you could use the following code:
::btw::by the way ;typing btw will get expanded to “by the way”

Once you have created your hotkey or hotstring, you can save it in a script file and run it using the AutoHotkey executable.

Overall, creating an AutoHotkey hotkey and hotstring is a practical and useful skill to learn when starting with AutoHotkey. It can save a significant amount of time and effort and make it easier to perform common tasks on your Windows computer.

We cover both HotStrings and Hotkeys in our Intro to AutoHotkey course Intro to AutoHotkey which have a 200% money-back guarantee! That’s right. If you don’t like it, we pay you!

Maximize Your Productivity with AutoHotkey: Discover the Power of Hotkeys and Hotstrings

Hotkeys and Hotstrings

Both hotstrings and hotkeys in AutoHotkey are powerful tools that can be used to automate tasks on a Windows computer.

Hotkeys are keyboard shortcuts that can be used to trigger a specific action or script. For example, you can use a hotkey to launch a program, open a file, or execute a series of commands. Hotkeys can be created to trigger a specific action when a specific key or combination of keys is pressed.

Hotstrings are similar to hotkeys, but they are triggered by typing a specific string of characters. For example, you could create a hotstring that automatically expands a short abbreviation into a longer phrase or sentence. Hotstrings can be used to save time and reduce the risk of errors when typing repetitive or commonly-used phrases.

Overall, both hotkeys and hotstrings can be powerful tools for automating tasks on a Windows computer. The choice between using hotkeys or hotstrings will depend on the specific needs and requirements of your automation tasks.

The first course I created was on HotStrings.  I have hundreds of them and use them all the time!
In our Intro to AHK Course we dive into HotKeys which are equally powerful and huge time savers!
Hotkeys and Hotstrings Hotkeys and Hotstrings

37 Amazing Windows keyboard shortcuts | Print out this awesome cheat-sheet & begin memorizing them today

37 Must-know Windows keyboard shortcuts / Hotkeys

It’s hard to believe, but I created this document over 20 years ago!  I was watching my classmates fumble around on their computers and put together a list of great Windows shortcuts / Hotkeys that they should memorize.   All but one date back to 1998!  But don’t worry, while I created this a long time ago, they have all stood the test of time!

This used to have 36 Must Know shortcuts but I realized I forgot to at the Windows+V shortcut for the Clipboard history manager in Windows 10+

Amazingly very little has changed since then!  I added one new hotkey (for emoticons)

 

Windows keyboard shortcuts Walkthrough- These are all great hotkeys to memorize