Intro to AutoHotkey Version 2 | Learn to automate programs with AHK v2

Learn how to Automate your Windows computer with AutoHotkey version 2. In this short video we show you some of the lowest-hanging fruit using AutoHotkey! We discuss HotStrings, HotKeys, Sending mouse clicks and how to get help! Don't forget, we have 4.5 hour Intro to AutoHotkey course that is on sale now: the-Automator.com/IntroAHK?sr...
00:00 Introduction
01:14 Scite4Autohotkey / Installing and Editor
01:53 Creating Hotkeys
02:40 Multiline Hotkeys
02:59 Opening Websites
03:54 Modifier Keys
04:33 Openning Programs / Folders
05:19 Hotstrings
06:04 Hotstrings Options
06:58 Sending Raw text
08:16 Sending special characters/ keys
08:50 Forcing a single instance script
09:06 Sending special characters/ keys (.cont)
10:05 Simulating user input (Clicks)
12:06 Simulating user input (Keyboard)
13:55 Basic Troubleshooting
14:11 The system tray icon
14:43 Bringing up the AHK Help file
15:15 Friday free sessions

Пікірлер: 62

  • @alfonsneumann1878
    @alfonsneumann187811 ай бұрын

    Wow! Amazing! Using autohotkey now for more than 20 years but never found a you tuber dedicated to it (well, I admit I never searched for one ;-) Keep it up!

  • @JoeGlines-Automator

    @JoeGlines-Automator

    11 ай бұрын

    Luckly for you we have over 1,300 videos to binge on. lol

  • @thepragmatic6383
    @thepragmatic6383 Жыл бұрын

    Thank you both for this basic intro to AutoHotkey V2. The help in V2 is indeed very practical to learn the basics, but what is missing is how to link the commands, the functions, in order to achieve the desired goals. But with you two (Joe & Isaias) + ChatGTP, I believe we are in good hands to learn AHK V2, thanks again.

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    People don't want to watch "long videos" so we created a short video to help get people started.

  • @alejandrolucinigarcia7011

    @alejandrolucinigarcia7011

    Жыл бұрын

    Absolutely. 💯*💯 agree!,

  • @HBinswanger
    @HBinswanger3 ай бұрын

    I listened fascinated to the beginning lecture. I can see I need to make more use of Hotstrings, because (as I mentioned) I'm running out of good shifted triggers (plus you have to remember: " now was it ctrl-alt or ctrl-shift or alt-shift?" I was surprised to see the brace requirement: I use Return without braces. I can't get around them, however, when I'm doing If-Then. I've just in the last week learned to use CoordMode to make mousing screen-relative. But it's very important. Especially with three monitors. BTW, one helpful set of Hotkeys I have moves any open window to a standard position on the left, the right, or the center monitor. I use the mouse wheel to trigger--very intuitive. Harry

  • @alejandrolucinigarcia7011
    @alejandrolucinigarcia7011 Жыл бұрын

    Wonderful intro! Well done!

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    Thank you

  • @TheRealMikeNelson
    @TheRealMikeNelson Жыл бұрын

    This is GREAT!! Thanks guys

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    Thank you @mikey!

  • @juansebastianmejia2911
    @juansebastianmejia2911Ай бұрын

    Muchas gracias, estoy recien empezando y no encontraba un tutorial asi de bueno!

  • @alfonsneumann1878
    @alfonsneumann187811 ай бұрын

    And I totally agree: Autohotkey has the the best documentation I have ever seen!

  • @aimanrahman5768
    @aimanrahman5768 Жыл бұрын

    Love you guys

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    Thank you!

  • @oooo0O0oooo
    @oooo0O0oooo Жыл бұрын

    Thank you very much!

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    You bet!

  • @theeddytor3490
    @theeddytor34904 ай бұрын

    now i know why chatgpt was having hard time coding me some script because it was giving me 1.1 script xD

  • @user-cs1pw8jk9p

    @user-cs1pw8jk9p

    4 ай бұрын

    if you dont specify 1.0 or 2.0 to chatgpt, it's your own personal fault...

  • @RADKIT
    @RADKIT Жыл бұрын

    Hello guys great content as always thank you very much😁!, I have a question about version 2 if you have time to answer it, I have a large script in V1 that has GUI with many tabs containing many subroutines, is there a straightforward way to migrate this same script to version 2 like a script that flips the syntax from version 1 to version 2 for example

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    THere is a conversion script however it doesn't do well with GUIs. Personally I'd leave it in V1 the-Automator.com/v1tov2

  • @diogomartini6
    @diogomartini69 ай бұрын

    Hi there! Just getting into AHK now, and starting with V2... it'd be REALLY useful if you could link to a V2 compatible version of the handy script seen at the 10:55 mark of the video. Thanks in advance! I have a feeling I'll be watching lots of your videos soon.

  • @JoeGlines-Automator

    @JoeGlines-Automator

    8 ай бұрын

    As shown in the video it is included in the download

  • @i--dont--know
    @i--dont--know Жыл бұрын

    This is amazing. Where can I download that program + the Help thingy? Thanks

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Жыл бұрын

    Sorry, you're going to have to be a bit more specific... In the video we mentioned the built-in SciTE4AutoHotkey help. That comes with SciTE4AutoHotkey. Is that what you're referring to?

  • @i--dont--know

    @i--dont--know

    Жыл бұрын

    @@JoeGlines-Automator At 14:45 as you talk about F1 for help. I watched 1 more time and yeah it is the SciTE4AutoHotkey app.

  • @jo-iii
    @jo-iii8 ай бұрын

    How do I create a script that creates a notepad file in the current directory I'm in? I'm only using it while in Windows explorer. Using windows 11. Also, the 'hotstrings', when running, only type out 1-2 characters whenever any key is pressed after it's already been triggered, so you'd have to press keys for seconds at a time to for the script to write out the whole string

  • @MrPatrickbuit

    @MrPatrickbuit

    Ай бұрын

    I recommend just writing a bash script for this.

  • @CarlosMartinez-sp4fq
    @CarlosMartinez-sp4fq9 ай бұрын

    Hi there. I have a script using V2 which contains all of my commands and it works great but I can only use it when I use Windows text editor Notepad. I have tried downloading Scite and nothing works after that. Is there a particular Scite version that I can use with V2? Thanks in advance.

  • @JoeGlines-Automator

    @JoeGlines-Automator

    9 ай бұрын

    Yes but it is a bit complicated. This version and install approach helps streamine working with it (but again you'll need to learn how to change the platform / version of AutoHotkey you're working with the-Automator.com/Scite4V2

  • @NickFromNetherlands
    @NickFromNetherlands Жыл бұрын

    read the online manual V2. Copy and paste the demo code in VBcode and run It was the example : Inputbox IB := InputBox("Please enter a phone number.", "Phone Number", "w640 h480") if IB.Result = "Cancel" MsgBox "You entered '" IB.Value "' but then cancelled." else MsgBox "You entered '" IB.Value "'." Working in 10 sec. Amazing. Was trying that in CSharp in Visual Studio with Window.Forms and was looking at the native code. 100 lines OOP . and a message from Microsoft do not change anything in this code it may not work again

  • @Nikronius

    @Nikronius

    3 ай бұрын

    Thats the beauty of scripting languages, you can often do very simple stuff in no time. I would only use Lower level languages (C#, C++, Java) when I care about performance. But for simple stuff, I would definitely not even consider them xD

  • @themultichallengeteam1654
    @themultichallengeteam1654Ай бұрын

    How to add a spacific time between each keyboard press when using the send command

  • @JoeGlines-Automator

    @JoeGlines-Automator

    Ай бұрын

    If you're meaning a delay, you can use a sleep command however that's typically a bad approach because things will change significantly depending on CPU load, etc. We try and "programmaticaly detect" when you want to send/trigger your action. Also we try not to use the send command in general. There are 19 ways to automate programs with ahk and imitating a human is often one of the least reliable.

  • @50PullUps
    @50PullUps7 ай бұрын

    Say, how did you manage to get your OneDrive directory out of the C:? Or did you work some pre-Setup magic and the D: is the system drive?

  • @JoeGlines-Automator

    @JoeGlines-Automator

    7 ай бұрын

    Click on Advanced during installation. YOu can choose where you install it.

  • @50PullUps

    @50PullUps

    7 ай бұрын

    @@JoeGlines-Automatorthank you!

  • @NlCKED
    @NlCKED2 ай бұрын

    I want to click "control" and "shift" together and have it scroll to the top of the page. HELP

  • @williamhagan7539
    @williamhagan75399 ай бұрын

    The instruction @ 1:39 seconds , The Platform button , I can not get those other options . I only have Default ?? Please Help I have looked everywhere for what i did wrong no luck

  • @williamhagan7539

    @williamhagan7539

    9 ай бұрын

    I reinstall everything and i got the platform box to have default , ANSI, then it closed and now i have nothing but Default

  • @JoeGlines-Automator

    @JoeGlines-Automator

    9 ай бұрын

    THen you probably do not have the newest version of SciTE installed. You can check this out the-Automator.com/Scite4V2

  • @williamhagan7539

    @williamhagan7539

    9 ай бұрын

    @@JoeGlines-Automator I went back to your Fix videos and oops i made a error . I had the wrong path Desktop was input not in Program Files . Thank you Guys for these great Videos .

  • @aliyayousuf3437
    @aliyayousuf34377 ай бұрын

    I created a hot key of a in Autohotkey software. the problem i am facing is that when i type a in any text editor not type a execute that code which i created in auto hot key. solve this problem.

  • @50PullUps

    @50PullUps

    7 ай бұрын

    Reinstall Windows

  • @JoeGlines-Automator

    @JoeGlines-Automator

    6 ай бұрын

    Sorry, I'm not understanding your comment / question❓

  • @vp.rossen
    @vp.rossen4 ай бұрын

    I still use v1

  • @JoeGlines-Automator

    @JoeGlines-Automator

    4 ай бұрын

    I do too however, all of our new scripts, are all done in V2. It's much more consistent and easier when you're working on advanced scripts. If you're doing very basic things v1 is fine

  • @tomkmb4120
    @tomkmb412011 ай бұрын

    Why am I getting this error when I've installed to the same program files directory as shown in the video? >"C:\Program Files\AutoHotkey\v2\AutoHotkey32.exe" /ErrorStdOut "C:\Users\Name\Desktop\AutoHotKeyScripts\FIrst_Script.ahk" C:\Users\Name\Desktop\AutoHotKeyScripts\FIrst_Script.ahk (2) : ==> Hotkey or hotstring is missing its opening brace. >Exit code: 2 Time: 0.4865

  • @tomkmb4120

    @tomkmb4120

    11 ай бұрын

    Doing some digging it seems like The IDE used isn't compatible with V2? Even though you're clearly using it here - also when I'm creating files there are not the prerequisite headers that are shown in other videos - is that a difference between v1 and v2?

  • @JoeGlines-Automator

    @JoeGlines-Automator

    11 ай бұрын

    @@tomkmb4120 There are different versions of SciTE4AutoHotkey. You need to make sure you get the version that is for v1 and v2

  • @JoeGlines-Automator

    @JoeGlines-Automator

    11 ай бұрын

    @@tomkmb4120 There are a TON of differences between v1 and v2. They are not backward's compatible

  • @Nikronius

    @Nikronius

    3 ай бұрын

    As mentioned in the video, if you have multiple actions, you must use the brackets. It is complaining about that.

  • @mubasharali5909
    @mubasharali59092 ай бұрын

    What's that editor? How can I access it?

  • @JoeGlines-Automator

    @JoeGlines-Automator

    2 ай бұрын

    That's SciTE4AutoHotkey. the-Automator.com/Scite4V2

  • @Russels_Viper
    @Russels_Viper6 ай бұрын

    Hello there,, I am trying to use a simple script to replace '

  • @JoeGlines-Automator

    @JoeGlines-Automator

    6 ай бұрын

    ::

  • @Russels_Viper

    @Russels_Viper

    6 ай бұрын

    @@JoeGlines-Automator Thanks for replying but why are we using colons at the beginning. When I try to use j::J it works just fine

  • @Nikronius

    @Nikronius

    3 ай бұрын

    @@Russels_Viper because j::J is remapping a hotkey, but what you are looking for is sending a string of characters, you need a hotstring for that... thats why ::

  • @brandon400
    @brandon4005 ай бұрын

    can someone help me. i cant figure out how to fix it i want this combination in base of ctrl + L windows key-> type spotify -> enter -> alt + shift + b ^l:: Send, # Sleep, 200 Send, spotify Sleep, 200 Send, {Enter} Sleep, 1000 Send, !+b return

  • @JoeGlines-Automator

    @JoeGlines-Automator

    5 ай бұрын

    I don't use keystrokes for things like that. I recorded this video to show how you can launch Spotify with AHK v1 or v2 kzread.info/dash/bejne/lYasyLiSg7i2mbQ.html

  • @axelfoley5265
    @axelfoley52657 ай бұрын

    You should realy update the Tutorial page. It links to v1 Syntax that doesnt work with v2

  • @JoeGlines-Automator

    @JoeGlines-Automator

    7 ай бұрын

    I have no idea what you're referring to

  • @MsNeuroSpicEE
    @MsNeuroSpicEE12 күн бұрын

    Scite was confusing that was the interface, the tutorial was as well. I didn’t know I was venting sorry, I probably used the wrong words I’m autistic so I don’t have people to an ask I learn alone and didn’t mean to vent off at anyone. I will figure it out and stay off your channel. I didn’t mean to be disrespectful I know they’re a lot of work