A Separate Keyboard For Automation. Versatile, Efficient, Convenient | AHK + AHI Tutorial

■ ■ ■ IN THIS TUTORIAL ■ ■ ■
►1) I explain what is AHK and how you can use this amazing tool to be more productive.
►2) I show how a very simple automation can save you tons of time in the long run and make the experience of working on a PC more enjoyable in general.
►3) I provide a step by step guide for the AHK and AHI installation and writing your first scripts.
►4) I show you how you can assign any automated actions to a 2nd keyboard without overriding the keys of your main keyboard.
0:00 - Introduction
1:44 - Paint Demonstration
4:00 - DaVinci Resolve Demonstration
7:32 - AHK installation tutorial
9:27 - Basics of scriptwriting
13:36 - AHI tutorial / 2nd Keyboard setup
18:25 - AHI Script Examples
22:00 - Mouse Automation
25:06 - Sleep - AHK delay command
25:43 - THM (TapHoldManager)
30:29 - The last couple of tips
▼▼▼
( ! ! ! ) The link to the scripts and files that are shown in this video:
drive.google.com/drive/folder...
►►► LINKS TO ONLINE RESOURCES ◄◄◄
► AHK (AutoHotKey) =================
• OFFICIAL SITE: www.autohotkey.com/
► SciTE4AHK ========================
• MAIN LINK: www.autohotkey.com/scite4ahk/
• BACKUP LINK: fincs.ahk4.net/scite4ahk/
► AHI (AutoHotInterception) ========
• DRIVER: github.com/oblitum/Intercepti...
• AHK INTEGRATION: github.com/evilC/AutoHotInter...
► THM (TapHoldManager) =============
• AHK INTEGRATION: github.com/evilC/TapHoldManag...
►Online Help Manual ===============
www.autohotkey.com/docs/AutoH...

Пікірлер: 227

  • @louisgagarin
    @louisgagarin2 жыл бұрын

    Man, I thank you so much! This was all the information I was looking for last 2 weeks! Thank you man!

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Thank you for watching! Extremely happy that my video turned out to be of great help for you! ☺️

  • @albertosauce9872
    @albertosauce98722 жыл бұрын

    Thank you so much for this tutorial! This was by far the most helpful guide for what I wanted to accomplish and thanks to you I am now able to script commands that trigger with the press of a single button on my second keyboard. I'm really looking forward to using this more.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Hello, Alberto! Just as yourself, I was amazed when I first discovered this powerful and versatile addition to AHK. I myself use it on a daily basis and I'm glad you found this tutorial useful! Always glad to help and thanks for watching! 🙂👍

  • @sirgregsan
    @sirgregsan2 күн бұрын

    This is exactly what I was looking for. Incredible. Thanks!

  • @user-xo6ey4ry3d
    @user-xo6ey4ry3d5 күн бұрын

    Best video ever. Never has this been ever done better

  • @Caspar1989
    @Caspar19892 жыл бұрын

    Thank you! Awesome tutorial! I propably wouldn't have figured it out without it!

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    You're more than welcome, Caspar! Always glad to help!

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

    DUDE!!!! Soo grateful for this tutorial. I knew AHK well, but getting my first AHI script running was the problem. You saved me. THANKS!!!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Awesome to hear that! 😃 Glad this tutorial was so helpful for you! AHI is an amazing addition to AHK and I'm sure you can find many cool uses to it along your automation journey!

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

    Hay man, hand down, you have been a great helping understand AHK and finally set my secondary Keyboard!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Hi, Marco! I am really glad that my tutorial was helpful for you! Good luck with automation!

  • @MohammadTawaha
    @MohammadTawaha2 жыл бұрын

    Really Thanks for the paint tools shortcuts man!

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    No bother! I'm really glad that this tutorial was helpful for you! 🙂👍🏼

  • @nguyenvuan
    @nguyenvuan2 жыл бұрын

    Thank you for such a great tutorial! I can start doing my own automation after watching this video.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Glad to hear that, Andy! Happy this tutorial was helpful for you 🙂👍

  • @emmaweber2311
    @emmaweber23112 жыл бұрын

    This video was soooo good - I would actually pay you for a Skillshare course on Automating Windows with AHK

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Thank you, Emma, I appreciate your kind words.🙏🏼 Glad you found this tutorial helpful! My knowledge of AHK isn't that extensive to automate the whole Windows and to create a paid Skillshare course 😅, but I would love to make a couple of more videos on it. If I have time and energy to do so, it would probably be here on KZread, as it makes sense to grow the audience first before even thinking about monetizing it.

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

    Awesome AHK video!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Just as AHK itself! Glad you found it helpful and thank you for watching! 😃👍

  • @cmarinho182
    @cmarinho1824 ай бұрын

    This is amazing. I have being using it for almost 3 years now. Thks

  • @klinnjilsey

    @klinnjilsey

    4 ай бұрын

    Glad for you! Happy to help 😉

  • @clementletou
    @clementletou3 жыл бұрын

    Thanks a lot! I struggled a little but I made it work! I can now use two keyboards and this is amazing!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    You are welcome, Clément! I am really happy for you and I know it's not super easy to set it up. But once you do it, it is truly incredible what is possible with it. Good luck with automation and keep learning!

  • @emmanuelgonzales7468
    @emmanuelgonzales74685 ай бұрын

    thanks for sharing...very nice and very helpful...great work!

  • @klinnjilsey

    @klinnjilsey

    5 ай бұрын

    Thank you. Always glad to help 👍

  • @robbinscott160
    @robbinscott1605 ай бұрын

    Really good Video Thank You very much I never would have known exactly what to do😉

  • @klinnjilsey

    @klinnjilsey

    4 ай бұрын

    Thanks a lot! 🙏Glad the video was helpful! Good luck on your automation journey 😁👍

  • @golamrabbineshat3616
    @golamrabbineshat36162 жыл бұрын

    THANK YOU SO MUCH

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

    TabHoldManager is a god send really.

  • @vardhanmahajan2892
    @vardhanmahajan28923 жыл бұрын

    This video was amazing!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Thank a lot for watching, Vardhan! Hope it was helpful 🙂👍

  • @vardhanmahajan2892

    @vardhanmahajan2892

    3 жыл бұрын

    @@klinnjilsey ohhh, it was immensely helpful, I can't explain how grateful I am!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@vardhanmahajan2892 Always glad to help!

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

    Wooow that's that's what I'm talking about .. you're the best !

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Appreciate your kind words! 😃 Thank you for watching the video! 🙂👍

  • @gregorybell9912
    @gregorybell99123 жыл бұрын

    Very cool, thank you for this great tutorial Klinn!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    You are welcome, Gregory! Hope this was helpful and thank you for watching 🙂

  • @gregorybell9912

    @gregorybell9912

    3 жыл бұрын

    @@klinnjilsey Very helpful. My objective was to research a little more before implementing AHI keyboard filtering for hotkey remapping. This makes it easier to remap wireless keyboards and presenter devices for more flexible online presentations, without impacting the main keyboard. Hadn't seen the TapHoldManager, which looks very useful for the same purpose.

  • @gregorybell9912

    @gregorybell9912

    3 жыл бұрын

    @@klinnjilsey, have you used Power Automate Desktop? I have not, although I'm wondering how it may compare with AHK for some functionality. Also I wonder if PAD could work in conjunction with AHK. Just a thought...

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    ​@@gregorybell9912 Oh, that's awesome! Really glad it was helpful for you. AHI sure is a great tool for working with wireless keyboards. I myself bought a bluetooth NumPad and it is so handy! I can now assign anything to it and switch between different scripts like a breeze.

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@gregorybell9912 Honestly, I'm quite surprised but I've never heard of this Power Automate program. In most cases AHK is enough for me and I like that it is a quite straightforward program in a sense that you literally write what the script should do. And the scripting language is easy enough to not be getting confused too often. I am now learning Python and implementing the same things I did in AHK takes a lot more effort. And although Python is a much more powerful tool, for me AHK still has this perfect balance between the amount of control and scripting difficulty. I'm sorry, but what do you mean by PAD? Do you mean a numeric pad? Or is it a software that I'm not aware of?

  • @TheLichOmoi
    @TheLichOmoi2 жыл бұрын

    the tap-hold script is also glorious

  • @golamrabbineshat3616
    @golamrabbineshat36162 жыл бұрын

    your tutorial-making skill is fantastic, please make more videos like that.

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

    Great tutorial

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Thanks for your comment and for watching! 😃 Best of luck with automating stuff!

  • @anewbieplayer1910
    @anewbieplayer19103 жыл бұрын

    Thanks, this helped a lot

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Glad you found this video helpful and thanks for watching! May I ask, which part of it was helpful for you? Or was it the entire video?

  • @anewbieplayer1910

    @anewbieplayer1910

    3 жыл бұрын

    ​@@klinnjilsey The entire video of course, but the ahi part was the most helpful for me. I don't know how to use ahi and I don't understand any of the "nerdy" term on the github info and this video taught me how to install it and what it is for. If it's not this video, I'm afraid I still don't know how to install ahi.

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@anewbieplayer1910 This is awesome! And I understand you because it was hard for me too to figure out how to setup and work with AHI. There was no AHI tutorial on KZread when I needed it so after I managed to setup AHI and get the hang of it I decided I should share my knowledge with other people who might be interested in AHI because I see a lot of potential in it. So I am really glad this video was helpful for you! Good luck with learning AHK! 🙂👍

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

    Thankyou so much

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    You're welcome! 😉

  • @vardhanmahajan7135
    @vardhanmahajan71353 жыл бұрын

    best video ever!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Thank you for watching! 🙂

  • @HElNZ_
    @HElNZ_2 ай бұрын

    Such a good video

  • @klinnjilsey

    @klinnjilsey

    2 ай бұрын

    Thanks! Enjoy the automation! 😉👌

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

    This is the best ahk tutorial ever , and it is soooo underrated!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    It's my great pleasure to see the appreciation for AHK and for the work I've done to showcase its usefulness. Thank you for watching and good luck on your automation journey!

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

    Finally something that works

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Happy to hear! 🙂👍 Good luck in your automation endeavors!

  • @Higzao
    @Higzao2 жыл бұрын

    THANK YOU!!!!!!!!!!

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    You're welcome!

  • @patrickschardt7724
    @patrickschardt77242 жыл бұрын

    For people that don’t have access to a second keyboard or don’t have room on their desk for one, they could do the following: Partially remap a rarely used button like scroll lock or print screen, so that if pressed once it gets locked in the down state. Then any of the hot keys you mapped to the second keyboard could be mapped to the first keyboard. The outcomes of the hot key would only happen if the “switcher” button is in the down position. When finished, just press that button again to put in the up state, thus disabling the hot keys. Basically the switcher would allow you to use any other key for special hot keys

  • @zeshanmajeed7492

    @zeshanmajeed7492

    Жыл бұрын

    This is mind-blowing idea. Please can you guide me how to achieve this? Or refer me to a video or blogspot that teaches this. This would help me a lot. Thanks

  • @100Bucks
    @100Bucks4 ай бұрын

    Another method which I think is way easier to setup is a program called keyboardsplitter. Keyboardsplitter turns your keyboard into a Xbox controller. If you write scripts Joystick buttons, they don't interfere with regular keyboard keys. Meaning, when you emulate your second keyboard into a Xbox controller. You write scripts with Joy1:: Joy2:: Joy3:: and so on. Also make sure you go to USB game controller options in windows to see which buttons are what. So if windows USB controllers highlights buttton1. You write your script with Joy1. Joy1:: Send easy way to setup second keyboard return

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

    I asked Bing AI for a good explanation about AHK, and it mentioned your video. Your explanation is very helpful, and I hope you make more videos about AHK.

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Oh wow! That's quite flattering to be honest! Thank you for your feedback, Abdulla! I might make some videos on AHK in the future, as I still use it up until this day. But for now I choose to prioritize other things in life, so I don't know when that would happen. I'd love to though if I had time! Thanks a lot for your comment and enjoy the automation! 🙂👍

  • @abdullansour5629

    @abdullansour5629

    Жыл бұрын

    ​@@klinnjilsey Of course I respect that. 🙏شكرا جزيلا لك مرة اخرى على هذا الفيديو القيم

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

    I do not understand what you say. but you are a very good guide. I have watched in great detail and followed your instructions. amazing. all work smoothly. Sincere thanks for the good work you did.😋😋 sorry i use google translate

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Xin chào! 😀 It worked, and that is what matters! Thank you for your comment. I am happy that my tutorial was helpful for you! Enjoy the automation 🙂👍

  • @Missreview102

    @Missreview102

    Жыл бұрын

    @@klinnjilsey you are awesome, everything you do in this video is great, thank you so much!!!!!!!!!!

  • @zyncc
    @zyncc2 жыл бұрын

    way tooo underrated

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Thank you GIGACHAD! 😉

  • @cisfirst1792
    @cisfirst17922 ай бұрын

    great video! Thanks! I hope it can control a bluetooth minipad that utilize several layers in the future.

  • @klinnjilsey

    @klinnjilsey

    2 ай бұрын

    Thank you much and wish you best of luck! 😊👍

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

    Hi, Klinn! Greate video. There are a lot of lessons about AHK on KZread, but all are either old or superficial. Yours is the best. Can you tell me which videos or articles about AHK you studied?

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Hi, thank you for watching! Honestly, just the AHK documentation and their forum. I was simply googling like "how do I do X autohotkey" and with that managed to learn a whole bunch . Even AHI I discovered through Google and the forum. I guess don't underestimate the power of the official documentation and Google! 😃

  • @yummybunny7351

    @yummybunny7351

    Жыл бұрын

    ​@@klinnjilsey thanks for answer. I prefer KZread - its more demonstrably. I can recommend then many repositories in github.

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @@yummybunny7351 To each their own! And thanks, I am not planning on studying AHK any time soon, as I am learning a completely new thing at the moment (React).

  • @brucerothwell7944
    @brucerothwell79442 жыл бұрын

    Good job on this video! QUESTION: It seems to me you are using your text captions that are on your video timeline to drive the creation of your voice narration -- if so, can you share the source of the voice?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Thank you for watching! Wait, do you think this is not my real voice that is on this video? 😆 Or did I get your message wrong? It is a 100% my real voice on this one, so, the source of the voice is myself! 😃

  • @jaxsteel248
    @jaxsteel24810 ай бұрын

    Amazing tutorial ! can you add a third keyboard though ?

  • @klinnjilsey

    @klinnjilsey

    10 ай бұрын

    Haven't tried it personally (surprisingly) but I assume it should be possible, because AHI intercepts sent inputs based on their unique PID/HID. So it shouldn't be a problem to differentiate between multiple devices. Give it a try! I think this is something that would be a lot easier to test rather than theorize about it 😄

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

    what's the IDE software you use here to edit code? it looks so clean

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    I go over it in the "AHK installation tutorial" section. The IDE is called scite4ahk. There is a link in the description to it as well.

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

    sa here, dude =)))

  • @mar8925
    @mar89252 жыл бұрын

    I didn't know that there was a driver for interpreting different keyboards. I thought that had to be done with Lua-Macros (Tom scott's Emoji keyboard). - Thank you so much for making a presentation of AutoHotKey's Usefulness. A rare gem of a video. - I didn't know about automating Da-Vinci with subtitles that was, and still is cool! - I already recommended this video to another person, who is starting out in AutoHotKey. - Thank you, really. The basics that are taught at first are invaluable.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    First of all, thank you for watching the video! I personally think that AHK is a super underrated piece of software. The possibilities that it opens up, including using it in conjunction with the interception driver, are mind-blowing considering how easy it is to start creating your own scripts with it. This is why I decided to make this video - it's an attempt to popularize AHK and introduce to people some of it's interesting features like AHI and THM for which I could barely find any material online, let alone KZread videos. So, yeah, thanks for watching and thank you for recommending this video to another person! I really appreciate that and I'm glad you found something useful in it for yourself.

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

    Personally, I used the ATNSoft Key Manager for a long time to configure hotkeys. I think the Key Manager will be easier for a beginner - there is a user interface, without programming. But for a deeper level, AHK will be more flexible. If we are talking about programs, then as a thank you for your video, and for recommendations to other users, I can advise more: Volume 2 for volume control, Clipdiary for clipboard, f.lux for eyes, qTranslate for quick translation, PuntoSwitcher for switch languages, auto-insertion of text. I think, AHK can replace many functions of Punto. By the way, have you tried mouse gestures? In the browser or as a program in the OS?

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    f.lux is awesome! Had it installed for a long time. Other software you mentioned, I've never used any of them, but Clipdiary looks interesting, I'll give it a try! From what I can suggest, Honeyview for viewing photos is amazing, as you can turn off the interface/UI completely. "nomacs" is not as sleek, but is more powerful in terms of quick photo editing. And I also love AIMP audio player, I think it's a classic 😀 As for mouse gestures, I am a complete stranger to that unfortunately. If you have any cool tricks or tutorials related to it, feel free to share. I'd be interested to look into that!

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

    Never created a soft ever. Not one. I've watched dozens of videos lately and have learned all kinds of interesting stuff about mic

  • @MylonasFilms
    @MylonasFilms2 жыл бұрын

    This is great.! Is there a tutorial anywhere that teaches how to set up and adust THM? a bit more in-depth? The GitHub download looks a little different to your script.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Hi, Stephen! Thanks for watching! I hope it at least was of some help. Now, regarding the THM tutorial, I'm afraid the GitHub tutorial is the most comprehensive one you will ever find. AHI is not very popular and THM is even less popular so it's a niche thing and there's not a lot of teaching material about it. That said, as far as I know, all you need to set it up is to download the archive and copy the files from it to your "Lib" folder. Unfortunately I can't explain you all the details of the usage of THM because all I've been using it for myself is basically being able to press a key, do an action, then release a key, do another action, and also being able to press a key multiple times to trigger different scripts. So, to be honest, I have little idea of other implications of THM besides what I showed in the video. So, if you'd like to learn more, you would probably have to rely on the GitHub tutorial and on what you can find on AHK-related forums online. If you feel adventurous, you can join the Discord server of the creator of THM (name's "evilC") and try asking for help there. Link: discord.com/invite/sFPMv86. Just in case, I will double the way you use THM in your scripts here (you can download the example of the script showcased in the video from the Google Drive link in the description). 1) Include the TapHoldManager library by typing: #include 2) Initialize THM: thm := new TapHoldManager() 3) Assign a function to a key (Control here): thm.Add("Ctrl", Func("Func1")) 4) Type "return" 5) Create a function that this "thm.Add" command refers to. Example: Func1(isHold, taps, state){ if (isHold=0) & (taps=1) & (state=1){ Send, My name is Richard.{Space}{Enter} } }

  • @MylonasFilms

    @MylonasFilms

    2 жыл бұрын

    @@klinnjilsey That's great! go it all working. an amazing script. I used RapidHotKey before this for multiple keyhits but it doesn't have the HOLD feature and it has a couple bugs when working in Davinci Resolve. THM is working in Resolve so it's great. One last thing, in the script, the code "STATE" mine has nothing next to it, and your example above has "1" next to it. Do you know what that means? Should I have a "1" next to it?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    @@MylonasFilms Awesome! 😀 Actually, I've never heard of RapidHotKey library before. But maybe for good since apparently THM is better... 😅 Regarding "state", it is a condition for IF operator. 1) if (a = 1) & (b = 0) 2) if (a) & (!b) 3) if (a = true) & (b = false) All these 3 strings are practically the same. The string #3 is the origin so to speak. Strings 1 and 2 are basically used for the sake of brevity. *true/false - boolean data type **Exclamation point - Negation operator in logic It is commonly used in electrical schemes programming when you wanna tell the device that if a button is pressed (true) for example then do one thing, when it's released (false) - do the other. You can also use it to determine whether a variable exists (has an assigned value to it) or is it empty. You can try out this simple script to see all that in action 🙂: Ctrl & 1:: a := 1 b := 0 if (a = true) & (b = false) Send, Conditions are met{!}{enter} c := "" if (!c) Send, Condition is met{!}{enter} return Ctrl & 2:: determined_variable = 12345 empty_variable = if determined_variable Send, determined_variable is %determined_variable%{enter} if !empty_variable Send, empty_variable is empty HAHA{!}{enter} return Ctrl & 3:: coin := 0 counter := 1 flips := 10 while counter send, Cycle {#}%counter%,{tab}coin = %coin%,{tab} coin := !coin ;basically flipping the coin (changing it from true to false and vice versa) if coin Send, Coin position is Heads{!},{tab} if !coin Send, Coin position is Tales{!},{tab} counter++ send, counter is %counter%{enter} } if coin Send, ---> Final coin position is Heads{!}{!}{!}{enter} if !coin Send, ---> Final coin position is Tales{!}{!}{!}{enter} return

  • @harsrsraerear2599
    @harsrsraerear25993 жыл бұрын

    klinn can u make others videos about ahi? and can u teach how to install drivers like MouClassInputInjection im really lost on how to do that, love u content u got new subscriber and i will show to my friends u videos

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Hi, thanks a lot for watching the video! I'm really glad you found it useful! Regarding making new videos, to be honest, this video took me about 10 days to make it and I'm not sure I'll have time to make new videos any time soon. I'm quite busy recently and making videos like this takes a lot of time. My priority was to make a beginner tutorial and to get people started and I'm not sure I'm gonna expand on this. I also would like to say, that I am not really an expert in AHI so there is not much else I can tell you about. What I know about AHI is how to set it up and how to integrate it into AHK. You can take any AHI template script, copy the code from your ordinary AHK script and paste it inside of the KeyEvent function so that it gets triggered when you press a certain key on your 2nd keyboard. Maybe there is something more to AHI than this but from what I know the most challenging part is setting it up 😆 About the MouClassInputInjection driver, this is the first time I hear about it so I would have to go and learn about it myself 😃 Maybe in the future, but I'm not gonna lie, this is very unlikely. I just hope that this video will help you get started with AHI. For me this was the hardest part. It should be easier from there 😉 Good luck and never stop learning!

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

    Great video and very useful. Hope you could monetize it!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Thank you for watching, Martin! Maybe in the future I could try and monetize the channel, but I'd likely need to create more content for that to happen, which I have no clear plan or intention for. At least for now... 🙂

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

    Hi! can anyone know how to increment value at every single keypress ( for example: when pressing ^q::) ? Thank You

  • @stephgh1flamyphantom230
    @stephgh1flamyphantom23011 ай бұрын

    This video is sooooo fucking good

  • @klinnjilsey

    @klinnjilsey

    11 ай бұрын

    Glad you enjoyed it so much and thank you for watching! 😊👍

  • @mar8925
    @mar89252 жыл бұрын

    One can also turn on dark mode in the help script. Look for the semicircle inside of a circle. Now the help manual will be dark, every time it is used.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    That is sweet! I'll be honest though, I think at this point I'm already kinda used to the white theme 😅, but I'll definitely give it a try. Thanks! This advice definitely comes from an experienced user! 😉

  • @robinreso6240
    @robinreso62402 жыл бұрын

    i have all working do you maybe know how fix stuck keys?thx

  • @Jojo_Does_Thingz
    @Jojo_Does_Thingz11 ай бұрын

    Hi! I currently have a tenkeyless kb and went out and bought a separate numpad to use instead of buying a full kb. Then I thought, since I never use the numpad for much, I could use it as a macro! But whenever I try to map any keys on the numpad to a script, they don't seem to be read it at all. I thought that AHI would be able to help, but I'm still a bit confused on what to do, as I don't recall anything like what I'm going through being discussed in the video. If you or any other commenters have any feedback to help, please let me know! Also, great video! very speedy, too the point, and concise :]

  • @mayreell1779

    @mayreell1779

    10 ай бұрын

    if your macropad support QMK it is possible. If not, you can use USB controller converter. kzread.info/dash/bejne/eY550dWsZLuvl8Y.html&ab_channel=LinusTechTips

  • @Jojo_Does_Thingz

    @Jojo_Does_Thingz

    10 ай бұрын

    @mayreell1779 Hey, thanks for your help! But it turns out my keyboard DOES work, I just forgot to hit the button on it that switches the numpad from only arrow keys to the actual number keys. I felt very stupid after discovering that. But still, thanks for your reply. I'm glad you tried to help! :]

  • @Shrapnel_Music
    @Shrapnel_Music2 ай бұрын

    I'm working on a pure python to do this. I already have it where it will run a keyboardmidi like my yamaha ypt300. It reads the midi, and you can put in any function you want for any key and i laied it out where it's crazy easy to edit. I will say, this keyboard project is harder.

  • @frimlinso1894
    @frimlinso18942 жыл бұрын

    Thanks so much for this! Just one question, how can I "unblock" unassigned keys (so that, for example, I can still use alphanumerics on the secondary keyboard unaffected)? Perhaps some sort of catch-all in an else statement within the KeyEvent block might work, but I'm not sure how to convert key codes back into keys without writing a dictionary including all the keys (although I could adapt your cheatsheet). Thanks again and I really appreciate any further help you can give me!

  • @frimlinso1894

    @frimlinso1894

    2 жыл бұрын

    I managed to get most keys working by doing this: KeyEvent(code, state){ if (state=1) & (code=338) { Send, test working } else if (state=1) { ;Send, Just sent (decimal scan) key code [%code%] ;;; Codes are returned in decimal, while I need to send them in hex SetFormat, IntegerFast, hex code += 0 ; Actual conversion code .= "" ; Necessary due to the "fast" mode SetFormat, IntegerFast, d Send, {sc%code%} } } HOVEVER, modifiers don't work with this code. Any idea how to remedy this?

  • @musical3x

    @musical3x

    Жыл бұрын

    @@frimlinso1894 This kinda works! Was just looking for the same. Have you found a solution that works with modifiers ?

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

    i prefer autoit but its the same @ the end, the video is really friendly and funny also for Kids understandable GJ

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

    Thanks a lot for this amaizing video. I have a question. Do you know about (Hidmacros) as an alternative to (Interceptin) and ----> how to connect it to Autohotkey ? Thanks a lot and I hope you make tutorials for Autohotkey when you have a time.

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Hi! Unfortunately I haven't had a chance to use Hidmacros, so I can't help you with that. But I'm glad you liked the video! I too hope maybe some day I'll get a chance to continue creating educational videos about AHK! Have a great day! 😃

  • @momenkhalaf1

    @momenkhalaf1

    Жыл бұрын

    @@klinnjilseyThank you

  • @momenkhalaf2443

    @momenkhalaf2443

    2 күн бұрын

    ​@@klinnjilsey Please could you guide me how to use Hotkeys with AutoHotInterception ( ^!A ( control and shift and A) to do somthing) ? Thanks

  • @Lightwing
    @Lightwing2 жыл бұрын

    Thank you so much for sharing this! This was definitely one of the most helpful videos of AHK! Have you had any issues with your scripts through RDP? My scripts work fine on my local PC, but not the client I'm working on. It's too locked down to install AHK, so I have to do some workaround. For example, I can't use ctrl, alt, or even Mousemove! Any thoughts?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Hi! Glad to share some of my experience and knowledge with you and that you found it helpful! In regards to RDP, honestly, I have a fairly limited experience with AHK. So that you understand, I had to google what RDP stands for! 😃 I basically have zero experience in that particular field of AHK usage. I can only wish you luck and patience in figuring out the way of doing what you're trying to do! 🙏🏼

  • @Lightwing

    @Lightwing

    2 жыл бұрын

    @@klinnjilsey No worries! Thanks for the response. I figured it out eventually on the AHK forums. I had to change the Local Resources and be mindful on minimizing the RDP 😂 Otherwise, I've made a bunch of hotkeys so far for work and I'm having a blast! I feel comfortable enough to start using THM so I can add more stuff on my macro keyboard 😁

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    ​@@Lightwing Really happy to hear that! 🙌🏼 And it's awesome you got to experience the power of AHK yourself! AHK is an amazing, powerful, yet relatively simple tool that can drastically improve your workflow. And it also makes you think creatively about all the different ways you can use it! Good luck on your automation journey and have fun! 😃

  • @chikenei
    @chikenei2 жыл бұрын

    can use AHI with 15 keyboards? i heard interception doesnt work more than 10 keyboard

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Never had the need to use that many keyboards myself, so, no idea, sorry

  • @robinreso6240
    @robinreso62402 жыл бұрын

    I have your basic script F1::run, notepad working.... But how and where exactly?i want to use: F1:::send, {MButton down} F1 up:::send, {MButton up} i get error no hotkeys allowed regards

  • @creakffm
    @creakffm2 жыл бұрын

    crazy. im lefthand gamer and i walk in a game with the normal arrowkey buttons like. up,down,left,right and i using numpad for other keybinds use heal items and more in a game. i find out in game my character sometimes stop walking because i bind on num2,num4,num6,num8 other thinks. and when i pressed these buttons my character waling like i pressing normal arrowkeys. when numlock is enabled also the keys work. i tried with sharkpeys or remapper change the numpad keys to f1-f9 but all not working. can you guys make a script that the normal numpad functions working but the arrowkeys from numpad disabled. thank you so much. but i need the normal arrowkeys on my keyboard to walk. can u help me with a script for tha

  • @NickyTrend
    @NickyTrend5 ай бұрын

    Hello, I have a problem, I don't know if anyone can give me a hand. I have a script where I have all the functions for my programs and where I directly put the commands and then in the second keyboard script I put only the key combination. Because AHK won't let me put a function inside a function... Now... the script for the second keyboard that you provided works perfectly for me, until there comes a point where it does not do the action I programmed for it, even if it is written correctly. And this is not a problem with the main script, since if on my main keyboard I do the key combination that I programmed, it works. Is there any limit on the lines in the functions? or is there any way to fix this?

  • @klinnjilsey

    @klinnjilsey

    5 ай бұрын

    Hi! I don't think the lines limit should be a concern. It is difficult to address the issue without seeing the script, but from what you told, I can only suggest the following: 1) Make sure all the braces are in the right places, especially where your portion of the script starts and ends, 2) Check if perhaps any of the commands from your portion of the script conflict with the AHI driver (for this unfortunately I cannot offer any specifics) Because from what you're telling the issue is either with the syntax or with the fact that something from my template script conflicts with your script. Hope this helps!

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

    im having an issue, how do u add a modifier to the extra keyboard, should i unsubscribe the modifier butons then add something like:- if (state) & (code=41) { Ctrl:: ;code } Is this flawed, or is there a better way

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    I answered to a user "robin reso" in the comments who struggled to achieve the similar thing. The idea is to use AHI in conjunction with THM add-on, and use a global variable to store the state of a held key (ctrl in your case). Here's a code example (haven't tested it, but should be enough to give you an idea): #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force #include #include #include keyboardId := AHI.GetKeyboardId(0x248A, 0x8367) ITH1 := new InterceptionTapHold(AHI, keyboardId) ITH1.Add("Ctrl", Func("HoldingKey_Ctrl"),0,0) ITH1.Add("a", Func("PressingKey_A"),0,0) global ctrl_key_is_pressed = 0 return PressingKey_A(isHold, taps, state){ if (state) & (ctrl_key_is_pressed){ MsgBox, Hello! } } HoldingKey_Ctrl(isHold, taps, state){ if (state){ ctrl_key_is_pressed = 1 } if (!state){ ctrl_key_is_pressed = 0 } }

  • @s1gma9000

    @s1gma9000

    Жыл бұрын

    @@klinnjilsey i can not thank you enough for this. holy wish u made more videos like this g.

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @@s1gma9000 I wish I had time and opportunity too... 😅 Maybe in the future! Hey, nevertheless, glad this video and my comment were helpful for you!

  • @louisgagarin
    @louisgagarin2 жыл бұрын

    Hi, I am trying to implement tap hold manager on the second keyboard. But in the syntax: ITH1.Add("Z", Func("SomeFunc")). It looks like I have to add hotkeys by their names like z, a, f12, etc... It's sometimes useless for example when I try to add Delete key I don't really know what name is for that delete key. So I prefer AHI default syntax: KeyEvent(code, state) where I just have to type the key code. Can I use this keycode syntax with TapHoldManager?

  • @louisgagarin

    @louisgagarin

    2 жыл бұрын

    In the AHI default syntax: KeyEvent(code, state) { ToolTip % "Keyboard Key - Code: " code ", State: " state } I just press the key and it shows me the keycode. It's so useful. Does THM offers something like this?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Hi! As far as I know there's no way of using key codes in THM, unfortunately. I know it sucks, but that's how it is. I don't why you have problems with "delete" key though. In my script (and I just tested) I use simply "Delete" and it works just fine. If a key has a name, you should be able to see it through Monitor.ahk when that key is pressed. Here's an example which shows a tooltip near the cursor when "delete" is pressed: #SingleInstance force #include thm := new TapHoldManager() thm.Add("Delete", Func("abc"),0,0) return abc(isHold, taps, state){ if (state){ ToolTip, 123 } }

  • @louisgagarin

    @louisgagarin

    2 жыл бұрын

    @@klinnjilsey Delete, home, End, Insert such keystrokes of my 2nd keyboard doesn't get recognized by any possible names. With this simple function: KeyEvent(code, state) { ToolTip % "Keyboard Key - Code: " code ", State: " state } I can know any keystroke's key code by pressing it. Like this, Is there any way to know the key name when I press the key on keyboard?

  • @taranagnew436
    @taranagnew4362 жыл бұрын

    can i make a script that copies a pic and text if on amazon/product link?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    This sounds like a basic Python web scraping project. I wouldn't recommend using AHK for that. It might be possible, but I know Python has specific libraries designed for that which makes it relatively easy even for a beginner. What I would say, even if you're an absolute zero at Python, it would still probably be more straightforward to do what you're trying to do using Python than using AHK. But again, I can't say for sure, as I have very limited experience using AHK for web stuff. My only advice would be try searching "web scraping Python" on KZread and see if it's feasible for you

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

    Hi. What if the PID of two keyboards is the same? Only the numbers after the PIDs is different. HID\VID_25A7&PID_FA67&MI_00\8&18DBDEE0&0&0000 and HID\VID_25A7&PID_FA67&MI_00\8&29A27CC9&0&0000

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

    Hi there I followed your tutorial and it works but sometimes either my keyboard or mouse tends to stop working until I restart, I'm guessing this is cause of AHI, have you ever had this problem, if so how can I fix it, hope you can help

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Hi! To be honest, I never had this issue and I don't really know what may be the cause of it. If this happens even on the simplest scripts, the issue might not be with AHI. There might be some software running in the background that interferes either with AHI or with your windows input (maybe antivirus idk?). Perhaps you change the input mode settings at some point in your script, but I assume this is not the case for you. As a last resort, maybe try reinstalling AHI driver from scratch, making sure you performed all the steps correctly and your driver is up to date. Make sure you retrieved the HID/PID of your additional keyboard correctly. And maybe find another keyboard and try the same things with it. Other than that, I'm afraid this is all I can help you with.

  • @RealSiddVivek

    @RealSiddVivek

    Жыл бұрын

    @@klinnjilsey thank you so much I'll try some of these solutions out and hopefully it will fix the problem

  • @matthiasb5301
    @matthiasb53013 жыл бұрын

    Hello, this is a very nice tutorial. I have a little problem. When I open Monitor.ahk, it doesn't show me a large window like yours. I have just a little window with no "keyboards" or mice" stuff. I only have the two last checkboxes of each column. Is it because I am on a laptop and I didn't plug any keyboard yet? When I right click on Unblocker.ps1, I can't run it as an administrator. I can only open it as a text file. Any idea of what I can do? EDIT : I executed the script directly in PowerShell but the Monitor.ahk window didn't change.

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Hello, Matthias. First of all, thanks for watching! Now, regarding your issue. Personally, I haven't faced this one myself so I can only guess what could be wrong. I myself am on a laptop so it shouldn't be an issue. At the very least it should see your in-built keyboard. If the Monitor.ahk file opens up at all, then you don't need to run the Unlocker.ps1 file. You issue seems to be related to that for some reason the script cannot retrieve the IDs of your connected devices (Including the in-built keyboard). The first thing I would personally do is make sure I've done everything right according to the tutorial. I would maybe uninstall the driver and then install it again. The I would make sure I downloaded the correct version of the AHI archive (0.5.2 in this case). The again, I would just go through the installation process and would do everything again step by step (copying folders and such...). Now, if this doesn't fix it then the issue is likely somewhere in Windows. To test that you can try (if you can) and perform the entire installation process on a different PC/laptop and see if you manage to install AHI there. If you do, then 100% the issue is in Windows. Now here I really don't know what it can be. Maybe one of your folder's name in the path of AHI folder is not in English, but I don't think that could be an issue. There is one thing that you can do that can probably give you an idea of what's going on. Because ultimately what you need Monitor.ahk for is to get VID/PID of a certain device, that's all. Go to Control Panel -> Hardware and Sound -> Device Manager (Or right click on Windows logo on a taskbar and open Device Manager). Now inside Device Manager find "Keyboards" and unfold the drop down menu. There you should see at least one "HID Keyboard Device". Right click on any of those and choose "Properties". In the Properties window select "Details" tab. There you can see a dropdown menu. Click on it and instead of "Device Description" choose "Hardware IDs". There, in the window below, will be a list of all the IDs. The first string should be something like this HID\VID_046D&PID_C232 Here the code you would need to paste inside AHI script would be 0x046D, 0xC232 For me the first HID keyboard in device manager doesn't have this string (apparently because by default the default code for it is 0x0000, 0x0000). But all the rest do. If you managed to get those IDs (for example this: 0x046D, 0xC232) then you can try and paste it in your AHI script and see if it works. If you don't have any keyboards in Device Manager then I really don't know. Try to paste 0x0000, 0x0000 in your script and see if it works with your default keyboard. Otherwise I really cannot do much here and you would probably have to Google it yourself. I hope this will help you to solve your issue. Let me know if it did or if it didn't 🙂👍

  • @matthiasb5301

    @matthiasb5301

    3 жыл бұрын

    @@klinnjilsey IT WORKS!!! Thank you very much for your detailed instructions. I uninstalled the driver and I went to the steps one by one. I think the problem was that I forgot to reboot my computer before copying the x64 and x86 files in the Lib folder.

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@matthiasb5301 Awesome! 😃 Whatever it was, at the end of the day, you installed it and I'm really glad that you did!

  • @chuchuokeke

    @chuchuokeke

    2 жыл бұрын

    @@klinnjilsey I have the same issue, i suspect it is something with the laptop screen size, gui width and length

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    ​@@chuchuokeke I can't say for sure, but a possible solution might be what I replied to the comment above. Try figuring out the VID/PID through Windows rather than trying to resize the Monitor.ahk script. Ultimately what you need Monitor.ahk for is to get VID/PID of a certain device. Monitor.ahk script just makes it easier (in case if it opens/displays correctly) but it's not a must. Again, here's the copy of the instruction I wrote previously: "Go to Control Panel -> Hardware and Sound -> Device Manager (Or right click on Windows logo on a taskbar and open Device Manager). Now inside Device Manager find "Keyboards" and unfold the drop down menu. There you should see at least one "HID Keyboard Device". Right click on any of those and choose "Properties". In the Properties window select "Details" tab. There you can see a dropdown menu. Click on it and instead of "Device Description" choose "Hardware IDs". There, in the window below, will be a list of all the IDs. The first string should be something like this HID\VID_046D&PID_C232 Here the code you would need to paste inside AHI script would be 0x046D, 0xC232 For me the first HID keyboard in device manager doesn't have this string (apparently because by default the default code for it is 0x0000, 0x0000). But all the rest do. If you managed to get those IDs (for example this: 0x046D, 0xC232) then you can try and paste it in your AHI script and see if it works. If you don't have any keyboards in Device Manager then I really don't know. Try to paste 0x0000, 0x0000 in your script and see if it works with your default keyboard." I'd be curious to know if that helped you, so, please, feel free to share.

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

    Will I be able to use it with newest ios version?

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Cannot tell unfortunately as I am an avid Windows user and never had an iOS device in my possession 😃

  • @alovera8592
    @alovera85928 ай бұрын

    my keyboard id is 0x0000, 0x0000 and it's saying it could not manage to find the device :( it is also a PS2 keyboard.

  • @TheLichOmoi
    @TheLichOmoi2 жыл бұрын

    Would there be any benefit of using Lua Macros to intercept the second keyboard vs AHI?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    Never used Lua Macros so can't tell

  • @TheLichOmoi

    @TheLichOmoi

    2 жыл бұрын

    @@klinnjilsey thanks! ill try this out!

  • @TheLichOmoi

    @TheLichOmoi

    2 жыл бұрын

    @@klinnjilsey ah my secondary and main keyboard have the same id :(

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    @@TheLichOmoi I think there is still some way to differentiate between them. As far as I remember, there are other types of IDs that can be used. I hade to do it once when I had similar issue when my Bluetooth keyboard had also the default ID of 0x00000. Try and look it up online. I answered in one of the comments where you can find those other IDs inside Windows and not through monitor.ahk. I also just got an idea, that maybe you can force the ID of a keyboard to change somehow. This is just a theory tho :) All my secondary keyboards so far had different IDs so far, except that Bluetooth one

  • @TheLichOmoi

    @TheLichOmoi

    2 жыл бұрын

    @@klinnjilsey thanks for being so responsive! It looks like it's also interfering with my mouse so I may have to look for an alternative still going forward. Out of nowhere my mouse just won't reconnect correctly

  • @morty7542
    @morty75426 ай бұрын

    I messed something up and my laptop doesn't recognize any exterior device. I uninstalled autohotkey and it still isn't working. Please please what can I do??

  • @klinnjilsey

    @klinnjilsey

    6 ай бұрын

    Have you installed the interception driver? And if so, have you looked into how to uninstall it?

  • @shizune_
    @shizune_3 жыл бұрын

    Is it possible to use the f13-f24 keys with AHK? And if so, what should I type in the ahk file? Thank you in advance!

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    Hi! Actually I've never worked with F13-F24 hidden keys. I now googled and found this topic on the AHK forum. Perhaps this will be useful for you (assuming you haven't already googled it yourself): www.autohotkey.com/boards/viewtopic.php?f=19&t=40286 I also found this video. I guess it's the same, but who knows: kzread.info/dash/bejne/n35h0cuAk9qnZbQ.html I'm sorry, but unfortunately this is all I can do as I don't have any experience remapping those keys with AHK. All I know is how to remap actual physical keys. I wonder, do you have actual F13-F24 keys or do you use F1-F12 with Shift as a modifier? If you use Shift, I guess you can simply assign any action to a "Shift&F__" shortcut and you would get the same result, I suppose. Not sure, but seems logical. By the way, let me know if those 2 sources were helpful for you :)

  • @shizune_

    @shizune_

    3 жыл бұрын

    @@klinnjilsey You can use shift and f_? If that works, then yeah, maybe it could work.

  • @shizune_

    @shizune_

    3 жыл бұрын

    Also where did you get the script.ahk file from?

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@shizune_ I assume you haven't watched the whole video so I created it on 8:10 if that's what you're talking about.

  • @klinnjilsey

    @klinnjilsey

    3 жыл бұрын

    @@shizune_ I didn't mean "f_" literally (f_ is f1-f12). I meant you can type for example: Shift&f1:: Run, notepad.exe ; for example you can run Notepad here return and then write whatever script you want inside. Then when you press Shift+F1 Notepad will be run.

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

    I got AHI working almost a year now....suddenly the script broke.are there any changes or windows updates that may interfere? thx

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    It's hard for me to tell to be honest. Best thing I can suggest is reinstall the interception driver and things related to AHI in general. Otherwise, my expertise is limited here.

  • @robinreso6240

    @robinreso6240

    Жыл бұрын

    @@klinnjilsey thx i will try reinstall

  • @robinreso6240

    @robinreso6240

    Жыл бұрын

    @@klinnjilsey reinstallation solved the problems al is working now thx a lot now adding my controls end scripts

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @robin reso Awesome, glad to hear 😃 Good luck with your scripts!

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

    do you know how to add a mouse to the script? i want to add ----> v & wheelup::{"increase volume"} the script doesnot recognize the mouse.could be maybe bluethoot issue..but i dont really know?

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    I have a wired mouse and this script works on my end: v & WheelUp:: MsgBox, Hello! return Can you try it with a different mouse, preferably wired?

  • @robinreso6240

    @robinreso6240

    Жыл бұрын

    @@klinnjilsey I was hoping that the bluethoot mouse was the issue but no luck. i wil try the newest version of the AHI driver.Maybe that will solve my issue?I hope thx for the info!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @@robinreso6240 Oh, you're trying it with AHI. Here, try this: #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance force #include AHI := new AutoHotInterception() mouseId := AHI.GetMouseId(0x046D, 0xC083) AHI.SubscribeMouseButtons(mouseId, true, Func("MouseButtonEvent")) MouseButtonEvent(code, state){ ;============= Left Button ================= if (code=0)&(state){ send, {LButton Down} } if (code=0)&(!state){ send, {LButton Up} } ;============= Right Button ================= if (code=1)&(state){ send, {RButton Down} } if (code=1)&(!state){ send, {RButton Up} } ;============= Wheel Press ================= if (code=2)&(state){ send, {MButton Down} } if (code=2)&(!state){ send, {MButton Up} } ;============= XButton 1 ================= if (code=3)&(state){ send, {XButton1} } ;============= XButton 2 ================= if (code=4)&(state){ send, {XButton2} } ;============= Wheel Scroll ================= if (code=5)&(state=1){ send, {WheelUp} } if (code=5)&(state=-1){ send, {WheelDown} } }

  • @robinreso6240

    @robinreso6240

    Жыл бұрын

    @@klinnjilsey thx a lot i will test this later in the evening european time. i will let you know later if it work,but thx again!

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @@robinreso6240 Great! Just make sure to paste the PID of your own mouse. That you can find out through "Monitor.ahk" file. After that you can write the commands you need inside the corresponding IF conditions. To combine it with keys, you can use a global flag-like variable, that would change from 0 to 1 if the key is pressed/released (like "v" in your case). There might be a different way of doing that, but that is what works for me for now.

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

    Tomorrow I have a Physics Exam. Yet I am here learning soft soft. I don't even know what I am.

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    We've all been there... And perhaps it would be better for you to fail that exam to feel the pain you need to start changing your life. Besides, most of our educational system sucks! 😃

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

    it says it cannot find the path

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    If you need guidance, could you tell me at what step of the installation process did you get that prompt?

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

    its stuck on the loading screen.. : (

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    The loading screen of what window/app?

  • @Giyu_Tomiyoka513
    @Giyu_Tomiyoka5135 ай бұрын

    alll the vid/pid are same in monitor.ahk 0x0000, 0x0000

  • @klinnjilsey

    @klinnjilsey

    5 ай бұрын

    You can try looking those up in the "Device Manager -> Keyboards -> Right click on a keyboard -> Properties -> Details -> Hardware IDs in the dropdown list" and see if you can find something other than zeros there. If that doesn't work, honestly, no idea what could be the issue 🤷‍♂

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

    L struggled to make soft

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

    Laughs in piracy

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    What specifically are you referring to?

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

    Hi Klin, why on the 2nd keyboard can't send F1-F12 to Adobe Premiere? Although it works perfectly in almost every perfect scene. i tried running it with admin rights, i tried using command #ifwinactive and #ifwinactive ahk_exe Adobe Premiere Pro.exe still not working. please help me!🥲

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Hello! I tried sending F1-F12 keys on my 2nd keyboard inside Premiere and it works... In order to help you, can you please provide some additional information: 1) Are you trying to press F1-F12 keys on your 2nd keyboard or are you trying to send them inside your script (for example: >>> send, {f1} )? 2) Can you send me the part of the code that you're trying to make working? (the one that contains F1-F12) This is my code that works for me: #SingleInstance force #Persistent #include AHI := new AutoHotInterception() keyboardId := AHI.GetKeyboardId(0x248A, 0x8367) ;

  • @Missreview102

    @Missreview102

    Жыл бұрын

    @@klinnjilsey wow! you reply so fast

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    @@Missreview102 😃😎

  • @Missreview102

    @Missreview102

    Жыл бұрын

    Here is the code of the main keyboard ;===============;F1 Delete Ripple Playhead #IfWinActive ahk_exe Adobe Premiere Pro.exe ;Ripple delete clip at playhead!! This was the first AHK script I ever wrote, I think! F1:: Send ^!s ;ctrl alt s is assigned to [select clip at playhead] sleep 1 Send ^+!d ;ctrl alt shift d is [ripple delete] sleep 1 return Andhere is the code on 2nd keyboard ;{===== Head ===== #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #InstallKeybdHook #UseHook On #MaxHotkeysPerInterval 2000 #SingleInstance force #Persistent #include C:\Users\Admin\Documents\AutoHotkey\Lib\AutoHotInterception.ahk #Include, ; #if (getKeyState("F24", "P")) ;

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    ​@@Missreview102 This is really odd, because your code works fine for me... Now I am going to write some seemingly stupid questions, but I'm doing it to make sure you performed these basic steps. This is what would be my thought process when troubleshooting such issue: 1) Does the code on your main keyboard work inside Premiere? ( -> F1:: ... ) (I tried it, it works for me) 2) Do the shortcuts inside Premiere match the shortcuts inside the code? (pressing [Ctrl+Alt+S] results in action -> [select clip at playhead], etc.) 3) Are you sure that the code for F1 key on your second keyboard is 59? (it may be different on different keyboards) 4) Are these two blocks of code (1 - for main keyboard, 2 - for 2nd keyboard) being run from different files (for ex. main.ahk, 2ndKB.ahk)? + 5) Try running your code without this line: #include C:\Users\Admin\Documents\AutoHotkey\Lib\AutoHotInterception.ahk ; make sure you have your AHI folders copied to your ...\Documents\AutoHotkey\Lib folder so that #Include works! 6) I'm not sure about this one, but try placing "return" like here: ... AHI.SubscribeKeyboard(keyboardId, true, Func("KeyEvent")) return ;

  • @louisgagarin
    @louisgagarin2 жыл бұрын

    Hi, I am using TapHoldManager. And I need to remap double tap on "v" to "p". Here's my code: HandleV(isHold, tap, state) { if (tap = 2) { Send p return } Send v } It works fine. But when I type "video" fast it results to "ivdeo". I try to decrease taptime param in the new TapHoldManager() constructor. But if I did that I can't double tap on "v" fast enough. If I increase the taptime, it results "video" to "ivdeo". Is there any way not to block "v" press and add tap hold manager features additive?

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

    This helped a lot

  • @klinnjilsey

    @klinnjilsey

    Жыл бұрын

    Awesome! Glad to hear

  • @gagandeepmina6732
    @gagandeepmina67323 ай бұрын

    --------------------------- Untitled.ahk --------------------------- Error at line 8. Line Text: #include Error: Function library not found. The program will exit. --------------------------- OK ---------------------------

  • @klinnjilsey

    @klinnjilsey

    3 ай бұрын

    Have you copied the library to your User's "Documents" folder? The process is shown in the video. If this doesn't help, try including it in a classic way which if I remember correctly is something like this #Include AutoHotIntercetion.ahk In case of any confusion, feel free to look up "Include" in the Help manual, and also make sure you've installed the library (or that it's been installed) correctly Hope it helps! 👍

  • @ryudesu8360
    @ryudesu83602 жыл бұрын

    THANK YOU!

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    no you 🙂

  • @ryudesu8360

    @ryudesu8360

    2 жыл бұрын

    @@klinnjilsey May I ask, if we want to click on the coordinates that have been marked without the cursor moving and stay in place can it be sir?

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    @@ryudesu8360 I'm not aware of such method myself. I know you can save the initial coordinates by MouseGetPos, then use Mouseclick, and then return the cursor to the initial position. But I don't know if that's good enough for you. I tried googling and some people mentioned ControlClick. But for that you need an active window of some sort. You might give it a try. May I ask, what specifically are you trying to do? Is it gonna for a browser, an app, a game, etc.? Maybe knowing that I can think of something.

  • @ryudesu8360

    @ryudesu8360

    2 жыл бұрын

    @@klinnjilsey I tried that in the game for example to press the skill button. I tried to use this method because after I search for the PC keyboard method as a game controller like on Android it doesn't exist.

  • @klinnjilsey

    @klinnjilsey

    2 жыл бұрын

    @@ryudesu8360 Have you simply tried something like this? (use your x,y coordinates instead of 50,50): Alt:: Skill_1_X:=50 Skill_1_Y:=50 MouseGetPos, Mouse_Init_Pos_X, Mouse_Init_Pos_Y MouseClick, L, %Skill_1_X%, %Skill_1_Y% MouseMove Mouse_Init_Pos_X, Mouse_Init_Pos_Y return

Келесі