AutoHotkey - AHK - My fav scripts

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 124

  • @stephen7185
    @stephen7185 3 года назад +4

    The concept that drove your sql hotkey saves my life. I have hundreds of lines of code from multiple languages that can all be accessed instantly using hotsrings. Id hate to image where I'd be without it.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад

      Yeah, I would be lost without AHK. It sure saves me a lot of time 😎

    • @JoeGlines-Automator
      @JoeGlines-Automator 2 года назад +2

      I"ve always said "HotStrings are the hidden gems in AutoHotkey". They're a total live saver!

  • @nesimergun5039
    @nesimergun5039 Месяц назад +1

    Nice autohotkey scripts. Date time made my day.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Месяц назад +1

      Awesome! Yes, I use the Date time multiple times a day. Comes in very handy 😎

  • @moderationjpk1
    @moderationjpk1 4 месяца назад +2

    The best AutoHotkey - scripts on the biz! Thanks mate!

  • @polymyxa8233
    @polymyxa8233 Год назад +3

    The best tutorial for autohotkey on youtube. Thank you!!!

  • @sameerasw
    @sameerasw Год назад +3

    Never knew I had such power with using AHK!!!!!!!!!!! thank you.

  • @Ginematic
    @Ginematic 11 месяцев назад +1

    In AutoHotkey v2 you can use Reload function binded to any key, in order to reload a script.

  • @robimegu3712
    @robimegu3712 3 года назад +9

    This is a nice video! I love the concept that you start with ] character. There is no confuses when you write a plain text or an „ .ahk command ”.
    Great job! I want to see more content from you!

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +3

      Hi @Robi Megu, thanks for the kind words, I really appreciate it! Yeah, the concept of using the ] character makes it easy for me to know that it is tied to a .ahk command 😎. I will add more content down the road, stay tuned, and thanks for your support!

  • @_.........................._
    @_.........................._ 2 года назад +2

    ⭐This method can be easily managed with a software called Beeftext. In addition, you can embed shortcut keys in the text and specify the final position of the mouse cursor, such as when adding parentheses. In addition, the clipboard returns to the one before sending properly.

  • @saguoranx
    @saguoranx 2 года назад +1

    Good introduction for new AutoHotKey player like myself.

  • @wehaveablameonworld
    @wehaveablameonworld 9 месяцев назад +2

    your channel is impresive!

  • @JoeGlines-Automator
    @JoeGlines-Automator Год назад +1

    AutoHotkey is crazy powerful!

  • @prashantkumarkatariya1646
    @prashantkumarkatariya1646 3 года назад +3

    great work man you have done great job brother thank you

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      I am happy you like the video, and thank you for the kind comment! 😎

  • @pabloG3d
    @pabloG3d 3 года назад +3

    thx for this, learned a couple of neat tricks!

  • @TABNationAutomation
    @TABNationAutomation 2 года назад +1

    Love making these videos myself with ahk on my channel. keep it up great stuff.

  • @justsurfin5013
    @justsurfin5013 2 года назад +1

    Like the date time stuff. Great for my job as I use dates a lot in document names and folder names. Now I tried to come up with a way to autoinclude subscript in the dates (example: substitute 'May 01' with 'May 1st', 02 with 2nd, etc). Other than a long series of IF statements could not come up with anything.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  2 года назад

      Awesome! Glad it helps your work. As far as appending the 1st, 2nd, 3rd the only thing that comes to mind is using If/Else statements haha

  • @haydar_kir
    @haydar_kir 3 года назад +1

    Thanks. Date time will be very useful for me at work.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      You are welcome! I use the date/time function everyday at work. It’s so much easier to type few letters and get the date/time stamp. Saves me a lot of time.

  • @zvit
    @zvit 3 года назад +2

    Not sure why you have such long code. For example, if you want to type numbers from 1-100 with enters, you can just write a loop in a line or two.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +2

      Yeah, I realize it’s not the most efficient way of printing 1-100. When I was learning AHK at that time, I didn’t know you could loop. Since then, I built a better way of printing numbers 1-n, which n is set as a variable 😎 but yeah I can see why you pointed out the long code haha. Take care!

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      In case you or anyone else wanted the short AHK script to print 1-100, here it is:
      ::]1-100::
      Loop, 100
      {
      Send %A_Index%{,}
      }
      Return

  • @AdrianR.Cabornay
    @AdrianR.Cabornay Год назад +1

    Very very useful, thank you👍.

  • @bobotube76
    @bobotube76 Год назад +1

    Hello! I want to change my writing language from English to Bulgarian with AHK. How can I do this and change the color of the taskbar at the same time? I found a script that changes the typing language using CapsLock. But his keyboard light won't turn on.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Год назад +1

      Hi! I don’t think you can change the function names to a different language. But I may be wrong. I am not sure what you mean by changing the color of the taskbar? Usually changing the appearance of the taskbar is done through the Settings in Windows. Thanks for your comment 😎

  • @thepragmatic6383
    @thepragmatic6383 2 года назад +1

    What application are you using to display the keys on the screen?
    Is it a standalone application or is it incorporated into your editing software?
    Do you have to add them manually when editing the video, or is it automatic?
    Thank you very much, your video is done in a very professional way.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  2 года назад +1

      Hi there! I am using Camtasia for editing and recording, and it has the capability to insert the keys. Also, I have to manually add the keys while editing the video. Thanks for your support and kind words!

  • @iamwakeen
    @iamwakeen Год назад +1

    Hello, complete newbie to AHK here. I was wondering if there was a script that can be used to control individual application volume via knobs (e.g. one knob control main volume, another controls Spotify etc.)

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Год назад +1

      Hello there! Thanks for your comment. I will look into your question and get back to you when I find out more. Thanks 😎

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Год назад +2

      Hi there, I couldn’t find anything that would do what you asked. I am not sure if that’s possible using AHK. You can try QMK/VIA software to try to remap the keys/knobs functions of your keyboard. Not all keyboards are QMK programmable. Thanks 😎

    • @100Bucks
      @100Bucks Год назад +2

      I can try to help you. I'll try my best. For normal button change to make a volume button. Example if you wanted Left arrow to do volume down. You would write the script like this.
      left::
      sendinput {volume_down}
      return
      The way you want is individual apps. You would have to use this.
      #If WinActive , your app goes here
      Look on RUclips for a more clear explanation. You get the app name by hovering the mouse over the app with windows spy.
      So whatever script you wrote with the (#If) it will only be affective on that specific app.
      This is what I use the most for everything.
      #if getkeystate ("shift", "P")
      w::
      send have a nice day{!}
      #if
      return
      The hotkey "w" will only work if "shift " is held down.
      Hoped this help you.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Год назад +2

      Here's an idea to control the volume based on application Play around with it. Hope it helps!
      ; Define your preferred volume increment
      VolumeIncrement := 5
      ; Define the keyboard shortcut for volume control
      ^Up::
      {
      ; Check if Spotify is the active window
      IfWinActive, ahk_exe Spotify.exe
      {
      ; Send volume up command to Spotify
      Send {Volume_Up}
      }
      else
      {
      ; Send volume up command to main volume
      Send {Volume_Up}
      }
      return
      }
      ^Down::
      {
      ; Check if Spotify is the active window
      IfWinActive, ahk_exe Spotify.exe
      {
      ; Send volume down command to Spotify
      Send {Volume_Down}
      }
      else
      {
      ; Send volume down command to main volume
      Send {Volume_Down}
      }
      return
      }
      ; You can modify the above code to customize the volume control behavior
      ; based on your preferences or specific requirements.

    • @iamwakeen
      @iamwakeen Год назад

      Thank you guys for your responses, really appreciate them! I'll try them out once I begin building my first macropad :)

  • @johnv3788
    @johnv3788 Год назад +1

    Can you have a separate document that you can call to input a large amount of text? Like say I have a bunch of 10 - 15 line text documents I use for documentation, could I have AHK output them without making my ahk file a mile long?

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  Год назад +1

      Hi! You can call any document or other AHK script from within a AHK script. You just have to point to it. Let me know if that helps! 😎

  • @CarlosMartinez-ps1je
    @CarlosMartinez-ps1je 2 года назад +1

    Can you help me create a script to "reload" the script after I've made changes? Thanks.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  2 года назад +1

      Hi Carlos, if I understood your question correctly, then there are multiple ways of accomplish this.
      Say you have a master.ahk file, and you make changes in that file, you can create a reload function within the file and assign a Shortcut key. For example:
      F10::
      Run, “%A_ScriptFullPath%”
      Return
      The script above will reload the file when pressing the F10 key.
      Hope this helps 😎

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  2 года назад +1

      Hi Carlos, I thought of something else you can try. You can create a AutoHotkey file called something like ReloadAll.ahk and in that file you can list all the .ahk files you would like to reload. For example:
      Run, "C:\Users\UserName\Documents\AutoHotKeyFile1.ahk"
      Sleep, 10
      Run, "C:\Users\UserName\Documents\AutoHotKeyFile2.ahk"
      Return
      The above script will reload AutoHotkeyFile1.ahk and AutoHotKeyFile2.ahk.
      Then if you have some kind of Master.ahk file that you use on a regular basis, you can assign a shortcut to call the ReloadAll.ahk file like this:
      ^F10::
      Run, "C:\Users\UserName\Documents\ReloadAll.ahk"
      Now, say your Master.ahk file is running in the background, you can press CTRL + F10 keys, and that would call the ReloadAll.ahk file, which in turn would reload the two other .ahk files.
      Hope this makes sense. Thanks :)

  • @Russels_Viper
    @Russels_Viper Год назад +1

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

  • @wayarberry
    @wayarberry 3 года назад +2

    Thanks much. Very practical and clear presentation.

  • @MrHhs006
    @MrHhs006 10 месяцев назад +1

    Is this AutoHotkey ver.2 ?

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  10 месяцев назад +2

      I use AutoHotkey Version 1.1.

    • @RungeCarl
      @RungeCarl 7 месяцев назад +2

      Good question - please let us know when you update to Vs2

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  7 месяцев назад +1

      Looks like v1.1 is deprecated per www.autohotkey.com page. They have v2.0 to download but I haven’t installed it yet

  • @yuvi-choudhary
    @yuvi-choudhary 3 года назад +1

    Can u tell me how to fill form using autohotkey in web!!

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад

      It depends on what browser you use. I played around Internet Explorer a bit but don’t have too much knowledge on that subject

    • @yuvi-choudhary
      @yuvi-choudhary 3 года назад +1

      @@HowToWorkFromHomeUSA ok thnx dude for ur reply !!

    • @yuvi-choudhary
      @yuvi-choudhary 3 года назад +1

      @@HowToWorkFromHomeUSA ok can u help me out .....how to go to particular element on web page .....do I need to use library for it ?

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      Right click on the particular form/box, then select Inspect Element, and from there you can figure out what element to use. As I mentioned, I played with it a little bit but don’t have working knowledge on how to use it. 😎

    • @yuvi-choudhary
      @yuvi-choudhary 3 года назад +1

      @@HowToWorkFromHomeUSA ok thnx a lot !!

  • @Gmovies699
    @Gmovies699 3 года назад +1

    Hello, may you help me for a autohotkey script?
    I am trying to make a autohotkey for excel for jump in excel sheets tabs. If you can plz send me yes. Or send idea.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад

      Hi there, what exactly are you trying to do in Excel with AutoHotkey? I need a better idea of what you are trying to accomplish. Thanks! 😎

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      You can jump between different Excel Tabs by using the CTRL + Page Up or CTRL + Page Down keys.

  • @squirtlesmells8174
    @squirtlesmells8174 3 года назад +1

    How would I create a hotkey that would automatically scroll on my 2nd monitor when I press a hotkey? (Ex. I press L 2 times and the page on my second monitor scrolls down)
    I tried making my own hotkey, but it would only scroll down when I was focused on the window, but I want it to work even when I'm not focused on my 2nd monitor
    :*:LL:: WheelDown

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      Hi there! I can take a look at your request and get back to you once I figure out the script. Thanks for watching!

    • @squirtlesmells8174
      @squirtlesmells8174 3 года назад

      @@HowToWorkFromHomeUSA Any luck?

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      No, I’ve been busy lately, but I’ll keep it on my to to list.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +1

      Are you wanting to scroll a specific application on your second monitor? If so, that approach may be easier because there’s a function in autohotkey to focus on the application/window and then it can send the WheelDown command. If you’re wanting to scroll any app/window on the second monitor, then that may be more challenging. Let me know. Thanks!

    • @squirtlesmells8174
      @squirtlesmells8174 3 года назад +1

      @@HowToWorkFromHomeUSA Yea when I'm playing a game or doing some work on my main monitor, I like reading on my 2nd monitor. I use the brave browser which is basically just google chrome, but better.

  • @Gusrikh1
    @Gusrikh1 3 года назад +2

    Very helpful. Thank you.

  • @user-pl9yq3fc8u
    @user-pl9yq3fc8u 3 года назад +1

    could you help me out pls, i cant seem to get this script to work, this is my first doing any type of coding
    x := 1
    while (x > 0)
    {
    t::7
    e::5
    v::e
    }
    return
    F4::
    x := x*-1
    return

  • @MohammadTawaha
    @MohammadTawaha 3 года назад +1

    Nice, really Thanks

  • @Kiwin412
    @Kiwin412 3 года назад +1

    I have a question Sir, where are the settings to have a color scheme on Notepad for .ahk files ?

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +2

      Hi Kiwin, in Notepad++ you can go to Language at top menu bar, then A -> then select AutoIt and it will set the color syntax. Or you can checkout this link on how to download the .xml syntax highlighting: stackoverflow.com/questions/45466733/autohotkey-syntax-highlighting-in-notepad

    • @Kiwin412
      @Kiwin412 3 года назад +1

      Thanks! I just started to write my own scripts and this is very helpful for debugging

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад +2

      Yeah for sure! It’s helpful when you have the color scheme. Take care and thanks for watching!

  • @kenmosholder1935
    @kenmosholder1935 11 месяцев назад +1

    Thank You!

  • @forkuserman_ap
    @forkuserman_ap 3 года назад +1

    I need the best delay...

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  3 года назад

      Hey there, not sure what kind of delay you need? Can you please explain?

  • @jerric7267774
    @jerric7267774 3 года назад +1

    where can i download AHK?

  • @justforyou9271
    @justforyou9271 4 года назад +1

    Kindly share as soon as possible 🙆

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  4 года назад +1

      Here are the scripts: github.com/how-to-work-from-home/autohotkey/wiki/AutoHotkey-AHK-My-fav-scripts

  • @thethinker6837
    @thethinker6837 4 года назад +2

    Great Video For productivity👍
    Please share this .ahk file link also.

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  4 года назад +1

      Thank you! I am working on a script sharing repository and will share my .ahk files there. Stay tuned!

    • @HowToWorkFromHomeUSA
      @HowToWorkFromHomeUSA  4 года назад +6

      Here are the scripts: github.com/how-to-work-from-home/autohotkey/wiki/AutoHotkey-AHK-My-fav-scripts

    • @thethinker6837
      @thethinker6837 4 года назад +1

      @@HowToWorkFromHomeUSA WOW!! thanks 👍

  • @theo328d
    @theo328d 2 года назад +4

    3:52 doxxed

  • @veejayforever06
    @veejayforever06 4 года назад +1

    Excellent