AHK is easy to use: AutoHotKey file tutorial

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 209

  • @rugmintonhowy
    @rugmintonhowy 2 роки тому +6

    OMG thank the lords all the other videos always says you should already know how to open and use it and then tells us advanced stuff when I searched up beginner. Very helpful

  • @davemustaine9687
    @davemustaine9687 5 років тому +45

    FapCEO in a nutshell. Now I can get to company level 10 in a day. Thank You.

  • @invalidname63
    @invalidname63 5 років тому +38

    thanks actually stuck on this for like 30 mins lmao

    • @anthonymoultrie6458
      @anthonymoultrie6458 4 роки тому

      I did all the steps and didnt have the file like he did any tips?

  • @afcu-yt
    @afcu-yt 2 роки тому +1

    how to get to that view part

  • @moneyman6227
    @moneyman6227 3 роки тому +1

    i did everything and when i double click my script it just opens it and doesent do anything like what you said happens, nothing on the bottom pls help

  • @Guigox
    @Guigox 5 років тому +3

    I want to make my keyboard press ALT repeatedly by 0 milliseconds, just the left ALT. what do i do?

    • @onee
      @onee 5 років тому +5

      That is impossible. You can't do that at 0 milliseconds. Your PC needs some time to process that command. It might be possible to do in 1 millisecond. But generally speaking approximately 50 clicks per second or 1 click every 20 millisecond is what most PCs can handle.

    • @Guigox
      @Guigox 5 років тому

      @@onee oof. just nvm. someone made a script for it already long time ago.

    • @grzegorzzawadzki3693
      @grzegorzzawadzki3693 4 роки тому

      SetBatchLines -1

  • @DE-signYourLife
    @DE-signYourLife 4 роки тому +31

    0:57 "Mit...With" Nice, German AND English Content! 😃😉

  • @FebriUltra
    @FebriUltra 4 роки тому

    what the command script if i want to left click and the command type number : 31

  • @dams8352
    @dams8352 3 роки тому

    i have done a script who do a right click wen i press Alt, but it does it only when i release the key and i want it to right click as long as i hold Alt. Anyone know how to do it ?

  • @harleystelle2929
    @harleystelle2929 4 роки тому +6

    could you put the link to the site where you got the script from?

    • @LyraPyxisVT
      @LyraPyxisVT Рік тому

      try this script, its better then this and you can toggle it on and off, pretty basic if you havent figured it out already you would toggle it on and off with alt+X.
      !x::Suspend
      LButton::
      Loop
      {
      SetMouseDelay 10
      Click
      If (GetKeyState("LButton","P")=0)
      Break
      }

  • @Rissoe_Really
    @Rissoe_Really 3 роки тому

    h elp i made a scr ipt that p res ses space e very few se ocnds how do i turn it off

  • @TABNationAutomation
    @TABNationAutomation 2 роки тому +1

    very clear video. I enjoy making the gaming videos with AHK on my channel super popular.

  • @aim__freakz8499
    @aim__freakz8499 4 роки тому +1

    I kinda understand your arguments but it's still more fun for me

  • @voobsscripts
    @voobsscripts 3 роки тому

    when i open it it opens like 50 auto hotkeys and messes up my pc

  • @George_9282
    @George_9282 10 місяців тому +1

    AHK have any vision i mean if u die in a game AHK can see that and if you type in the script "if die press respawn" AHK would press respawn?

  • @psychomaniac189
    @psychomaniac189 6 років тому +15

    how do you do keyboard stuff with AHK? you didn't really explain that

    • @oscarmuffin4322
      @oscarmuffin4322 5 років тому +1

      This was a very shit tutorial. He basically just showed how to copy somebody else's script. Didn't even explain why he was doing things.

    • @LyraPyxisVT
      @LyraPyxisVT Рік тому +1

      i didnt understand this video either, but ive managed to find a easier one to understand, if you havent figured it out
      !x::Suspend
      LButton::
      Loop
      {
      SetMouseDelay 10
      Click
      If (GetKeyState("LButton","P")=0)
      Break
      }

    • @SwordTomato
      @SwordTomato Рік тому

      @@LyraPyxisVT he was wondering about this for 4 years

  • @Swixxe
    @Swixxe 2 роки тому

    when i clicked it it said error at line 1 the program will exit plz help me

  • @dolbbantutan9926
    @dolbbantutan9926 3 роки тому

    whats the code if i want to automate to target the monster then automate click number and rightclick at the same time then spam space bar

  • @ysuri
    @ysuri 3 роки тому

    is it possible to just stay pressed to click and when you stop pressing it stop clicking ?

  • @leedergs
    @leedergs 4 роки тому

    For me I click open and it just crashes the folder popup thing saying windows cannot access this specific device, path or file.

  • @jivinmonging
    @jivinmonging 3 роки тому

    i have a question how to like remove the toggle key after you have set it

  • @KiraGoon
    @KiraGoon 3 роки тому

    will you give me a hint how to run marco with 3d3 window if even it is not active. thank you.

  • @kefir5542
    @kefir5542 2 роки тому

    How to do a script for example if i click "g" it will click "5" on my keyboard and then hold my right mouse button for 1.7 second and after it stop holding the button for 1.7 second it will click "1" on my keyboard? Pls tutorial

  • @ps92809
    @ps92809 5 місяців тому

    how do i make one that clicks once and doesn't unclick

  • @vlex4390
    @vlex4390 3 роки тому

    How do I get it because I don’t know how to find the 8 auto hot key???

  • @dsilencio517
    @dsilencio517 5 років тому

    Sir. i need help, my configuration for game is
    5::
    loop {
    send 1
    }
    return
    but the magic in number 1 is not silky activated,
    I don't know what to do or where to look and if I don't know what I'm looking for how will I know I found it?

    • @dsilencio517
      @dsilencio517 5 років тому +1

      Eu descobri qual é a solução, obrigado pelo seu vide-o você é incrivel!!!!! my solution is:
      5::
      loop {
      send, {1
      DOWN}
      Sleep, 1000
      send, {1
      DOWN}
      }
      return

  • @skatanafate9529
    @skatanafate9529 3 роки тому

    how to change a key in macro? my macro got c to use(autohotkey) can someone help me?

  • @C3NSOR1
    @C3NSOR1 4 роки тому

    Mine not working for windows 10

  • @emir5878
    @emir5878 4 роки тому

    Can anyone help me? I want to write a script where if turn it on(so it has a toggle button) after clicking rightclick it immediately presses the Q button. I dont really know how to do it so if anyone could help reply please

  • @DavidSmith-uz8lw
    @DavidSmith-uz8lw 6 років тому +4

    Iwan, Would you be willing to help me write a script for a hotkey combination to rotate images in File Explorer? I have over 10,000 to rotate and need this desperately.

    • @iwanPlays
      @iwanPlays  6 років тому +3

      Sure, use imagemagick's convert.exe though

  • @JoMama-np3og
    @JoMama-np3og Місяць тому

    Can i do some non-repetitive tasks like counting?

    • @24h_on_yt
      @24h_on_yt Місяць тому

      yes
      and its rlly rlly good for pixle things like doing tasks

  • @beaksaver5361
    @beaksaver5361 2 роки тому

    any chance that someone can make script for me that loops the up arrow key twice followed by the enter key at say 0.5 speed?

  • @Rikulahdesmaki
    @Rikulahdesmaki 6 місяців тому

    What if i need to double click W by just holding it?

  • @maximusbrah
    @maximusbrah 8 місяців тому

    help i do everything but the macro i have doesnt work and nothing works

  • @rogerfn4283
    @rogerfn4283 5 років тому +11

    I want this to open a vbs file (The one that makes you say something) and I want it to say bruh like 50 times

    • @Hayden977
      @Hayden977 5 років тому +2

      You could probably do something similar to this in Batch

    • @omgcyanide4642
      @omgcyanide4642 4 роки тому +1

      Arrival RgR easy run file path

  • @DraxusENG
    @DraxusENG 4 роки тому +3

    thanks bro i tried the actual tutorials provided by the website etc but they were super confusing so thx now i can play undertale with wsad and not arrows : )

  • @zambaplays5060
    @zambaplays5060 7 місяців тому

    how is you windows so minimal? are you using some theme?

  • @Cayme
    @Cayme 3 роки тому

    Hello, i'm trying to send input after i launch a specific .exe to make it fullscreen when it start but i can't get it working. if someone read my message i need help, please.. WinWait G:\Higan\higan.exe
    fWinActive G:\Higan\higan.exe
    Sleep, 1000
    SetKeyDelay, -1, 110
    Send {NumpadAdd}

  • @ofirvitany4542
    @ofirvitany4542 4 роки тому

    How can I capslock another language, so I can write only in the second language I have

    • @iwanPlays
      @iwanPlays  4 роки тому

      Wow, cool idea. Alt-Shift for switching languages is not good enough for you? Well, you would search for ahk keyboard language switch and then ahk ignore caps lock or ahk disable caps lock and then combine the solutions

    • @ofirvitany4542
      @ofirvitany4542 4 роки тому

      @@iwanPlays the problem is that it switched automatically from the language I chose to English, I want to achieve the same result so it will not return to any other language unless I clicked on a specific keyboard key

    • @iwanPlays
      @iwanPlays  4 роки тому

      sounds like you have per-window language enabled and need to disable it superuser.com/a/1095632

    • @ofirvitany4542
      @ofirvitany4542 4 роки тому

      Thx I will try it , and report

  • @robloxfan4271
    @robloxfan4271 2 роки тому

    where's the link for the script?

  • @johncena-xv7ws
    @johncena-xv7ws Рік тому

    i wanna do so it only works in roblox but it makes it not work what so ever

  • @randomssradiatic
    @randomssradiatic 17 днів тому

    how do u add number

  • @chaunerickson6195
    @chaunerickson6195 3 роки тому

    Is there a way to download this script to fool around with?

  • @huntertheog4289
    @huntertheog4289 4 роки тому

    How do you do this script but instead of click its spacebar

  • @marcel1701
    @marcel1701 4 роки тому

    doesn't work for me, when i try to start the script it just doesn't click

  • @luciferr6392
    @luciferr6392 4 роки тому

    thanks for creating this but can you explain why these work the way they do? I created a script from a different youtuber that doesn't work and now im confused.

  • @thechallenger6124
    @thechallenger6124 6 років тому

    can you send me a script too spam the LShift key? ive been trying for hours and do not understand why it isnt working

  • @bababoouey9882
    @bababoouey9882 4 роки тому

    Does anybody know how to rebind keybinds for ryse son of rome

  • @zninjachato
    @zninjachato 4 роки тому +1

    My autohotkey doenst are working on my Windows 10.
    When i active,it works after 1 second or -.
    What i need to do?

  • @user-pl9yq3fc8u
    @user-pl9yq3fc8u 3 роки тому

    Is there a way which makes it so it doesn't repeat the action?

    • @hungmdyung7121
      @hungmdyung7121 2 роки тому

      gyea just put a number after the "loop" like in his script after "loop" put "1" try that or if you want it to loop 5 times the "5" after loop like in my example it will loop space 5 times ever time i hit the middle mouse click or middle button or if you dont indicate a number after the loop than it will consistantly repeat the "spacebar" command to jump until i left go and i use it for csgo counterstrike to bunnyhop -note the sleep timing is in milisec how fast it will repeat in my case 14miliseconds or .0014 which is how often matchmaking server refresh executed commands by players or u can use .0007 for 7miliseconds to double ur chances though u may get kick keys for spamming but i havent yet so u should be okay the 2nd illistration is if i just hit the mouse3 or middle click once it will repeat the "space or jump" key 5 times as fast as 7mili secs or .0007 in between n stop after the one click
      sample 1
      ------------------------------------------
      *MButton::
      Loop
      {
      GetKeyState,state,MButton,P
      If state = U
      break
      Send,{Space}
      Sleep,0014
      }
      sample 2
      -----------------------------------------
      *MButton::
      Loop 5
      {
      GetKeyState,state,MButton,P
      If state = U
      break
      Send,{Space}
      Sleep,0007
      } Ps note the "5" after the "Loop" in ur case you want put "1" to not repeat after one hit of ur script

  • @ChromePyramid
    @ChromePyramid 2 роки тому

    I'm actually learning AHK right now would the script you made actually work in Niddhog without any changes?

  • @CGN-zh4ue
    @CGN-zh4ue 4 роки тому

    Can i see the Code from a AHK file that i become sendet...?

  • @hungmdyung7121
    @hungmdyung7121 2 роки тому

    at the very top of ur script the first line before any other command use this command to control it form running or pausing "^NumpadSub::Suspend" and all you have to do to active the attacks n pausing it, hit "control + minus[the subtraction key on ur keypad not the dash"-" under F9]" the break down below in detail for this tiny execution
    when executed the buttom right side of your windows screen you should see your autohkey script go from the letter "H"[h=MeansThatUrScriptIsActive] to the letter "S"[s=MeansThatUrScriptIsSuspended].. the command before [Numpad] ^[ArrowUp indicator usaully the number 6+shift on ur keyboard-alternative key- is the program autohkey means[Control] or [Ctrl] by default and the [Sub] after [Numpad] is the Subtraction key... if you right click on ur scipt n go to "Help" it will take u to an index of the program.. in search type "List keys" and double click it, this key list is very important for your scripts bekuz you have spell each key that you use case sensitive n thats why i have to break an easy command like "^NumpadSub" which = to "Control+Subtraction[Keypad "-"] everytime you hit this if u added first then ur script the opposing player will execute the attacks n if you hit it again "Control+Subtraction[Keypad "-"] it will stop.. you can actually use any key you want to pause n execute but to use it without interfering with ur basic normal keys you would want to use one of the hotkey modifiers which is Control, Shift, Alt, and even Windows key... which translate to "^ is Control, + is Shift, ! is Alt, # is Win" and those 4 modifier keys will take you to all sorts of reason n commands n when to use, believe me if your new to codiing n programs this is a pretty good basic start, most of the illustration in AutoHotKey are actual guides to coding scripts but if you want to learn it and a beginner try n learn all you can in the index under help.. that will give a few sharp knives to start cutting codes in the development starts of ur quest to learning and break down programing programs.. hope this help gez i went a lito too far its just bekuz thats how i started hahaha

  • @selenarose9774
    @selenarose9774 5 років тому +1

    How to open notepad please answer fast

    • @iwanPlays
      @iwanPlays  5 років тому +1

      Windows key +r and type "notepad" and press enter

    • @alennsaad
      @alennsaad 3 роки тому

      @@iwanPlays this site doesnt work now how can i find the file?

  • @psychomaniac189
    @psychomaniac189 6 років тому

    Iwan. Would you be able to help me make a script with specific arrow buttons to be pressed? press enter, then up 6 times, right 43 times, down 1, over 3, down 5, then press enter.

  • @zeradris
    @zeradris 4 роки тому

    how do u code in notepad++ ?

  • @louboutinss
    @louboutinss 4 роки тому

    my autohotkey is going super slow and i dont know how to fix it

  • @lazergod0491
    @lazergod0491 4 роки тому

    it says.ahk but it shows notepad so i cant run as admin

  • @rasmuss4039
    @rasmuss4039 4 роки тому

    when i use a ahk file nothing happens

  • @stersting2987
    @stersting2987 4 роки тому

    How do I do one with letters?

  • @zulhamsasmita1289
    @zulhamsasmita1289 3 роки тому

    Want to make for walking round and round for my game, but im confused how to do that? Maybe like going forward 1second, then going right 1 second, going down 1 second and going left 1 second

  • @Darylciov
    @Darylciov 4 роки тому

    How do i set speed of send script

  • @lordz7777
    @lordz7777 2 роки тому

    Thanks for the tutorial. But are there any other applications that can handle ahk files available on macOS?

  • @gabrielarkangelo
    @gabrielarkangelo 5 років тому +4

    the cookie game is cursed man..

  • @texturel3s399
    @texturel3s399 4 роки тому

    Is auto hot key a virus, I wanna know so I don't accidentally download malware.

    • @iwanPlays
      @iwanPlays  4 роки тому

      Not if you download it from the official website

  • @alennsaad
    @alennsaad 3 роки тому

    can someone send the ahk file ?

  • @mastadrewdog7467
    @mastadrewdog7467 3 роки тому +4

    how do you detect moving objects? are you able to set a color on a target to make ahk auto aim at it? if so please lmk how thanks!

    • @ichosolemanuel6048
      @ichosolemanuel6048 Рік тому

      Yea theres something called pixelsearch just set the color and region and then with mousemove you can tp the cursor to the found pixel

  • @fishseller.
    @fishseller. 3 роки тому

    idk how to open a thing to type a script

  • @peadubb
    @peadubb 2 роки тому +2

    Thanks so much for the tutorial. Very informative and helpful

  • @s8080_
    @s8080_ 4 роки тому

    How do i make it so it opens a windows function of some sort?
    I want to make it so if i press PrintScreen or Pause/Break It would open the same thing as pressing the following combination:
    WinKey+LShift+S

    • @hungmdyung7121
      @hungmdyung7121 2 роки тому

      i believe it will be sumthing like this without the double brackets
      [[ PrintScreen:: Send, #+s ]]
      if you want to close it after that command i believe you need to add the word "return" after the #+s -----which i believe you can hit print and the snapscreenshot will execute, if you want to continue to add more to ur script then keep going starting and ending with each command execute you want to add with "{"to begin each "}" to end each... note only the Return after the explanation above will close it... it is not a good idea to run many script or scripts in one Ahk scripts or execution file aHk you made i think it iz advice to create many single ones base off the recommendation the guide explains the details below is some fundamental of how i used the keys you mention above to execute..
      PrintScreen = PrtSc (print screen key)
      CtrlBreak = Ctrl+Pause or Ctrl+ScrollLock
      Pause = {Pause or Ctrl+NumLock. While Ctrl is held down, Pause produces the key code of CtrlBreak and
      NumLock produces Pause, so use ^CtrlBreak in hotkeys instead of ^Pause.}
      Break = Deprecated: Use the synonym Pause instead.
      LWin = Left Win. Corresponds to the # hotkey prefix.
      Note: Unlike Ctrl/Alt/Shift, there is no generic/neutral "Win" key because the OS does not support it. However, hotkeys with the # modifier can be triggered by either Win.
      Control = (or Ctrl) Ctrl. As a hotkey (Control::) it fires upon release unless it has the tilde prefix. Corresponds to the ^ hotkey prefix.
      Alt = Alt. As a hotkey (Alt::) it fires upon release unless it has the tilde prefix. Corresponds to the ! hotkey prefix.
      Shift = Shift. As a hotkey (Shift::) it fires upon release unless it has the tilde prefix. Corresponds to the + hotkey prefix.
      LControl = (or LCtrl) Left Ctrl. Corresponds to the ^ hotkey prefix.
      LShift = Left Shift. Corresponds to the + hotkey prefix.
      LAlt = Left Alt. Corresponds to the

  • @kype1337
    @kype1337 4 роки тому +1

    Jest coś na 4life na kopalnie?

  • @NecroxEye
    @NecroxEye 3 роки тому

    discord server link?

  • @mike-zs3cc
    @mike-zs3cc 4 роки тому +12

    Step one: just download an autoclicker (for clicker games)

    • @Trokumukum
      @Trokumukum Рік тому +3

      But it can’t press different keys, only left or right click

  • @Papizh2002
    @Papizh2002 Рік тому

    hey can u help me make a cane script

  • @ruiptaurus33
    @ruiptaurus33 Рік тому

    i need the tab key to hold

  • @vStall
    @vStall 2 роки тому

    Dude made a ahk to play with him self

  • @tntcake6327
    @tntcake6327 5 років тому +1

    where is the system notifaction area?

  • @FutureDreamZz
    @FutureDreamZz 5 років тому +2

    is it possible to make one click once every 20 minutes?

  • @muhamadannasailukmanhakim8256
    @muhamadannasailukmanhakim8256 2 роки тому

    my ahk is unusable and there is no error to the code. why? reinstall doesnt work. even though before it was normal and can be used

  • @brokovnik
    @brokovnik 4 місяці тому

    I diddnt know this guy made a tutorial

  • @SlowKingist
    @SlowKingist 2 роки тому

    can you make an auto parry script for a roblox game so I can troll my friend
    ?

  • @jermsbestfriend9296
    @jermsbestfriend9296 4 роки тому

    This script does not contain the File() command.

  • @whoareyou3194
    @whoareyou3194 6 років тому

    Can u make a key so when u push it will type something

  • @khoeckman2416
    @khoeckman2416 5 років тому +1

    human can never be beaten by computers ;)

  • @si6585
    @si6585 6 років тому

    This is really useful man thx for the video.

  • @kenankiller3878
    @kenankiller3878 5 років тому +1

    thx dude still works in 2020

  • @glob1942
    @glob1942 4 роки тому

    i am confused

  • @voIts.
    @voIts. 2 роки тому

    How about use op auto clicker

  • @kilonov
    @kilonov 3 роки тому +2

    THANK YOU OMG

  • @spdutahraptor777
    @spdutahraptor777 4 роки тому

    This is where powertoys decimates the competition...it's oversimplified for people that have absolutely no idea what they are watching...like me

  • @auroraspostingg8587
    @auroraspostingg8587 3 роки тому

    im still confused

  • @seductive_fishstick8961
    @seductive_fishstick8961 Рік тому

    you are my hero, thank you so much

  • @IDK-pt6rt
    @IDK-pt6rt 4 роки тому

    Wat da link

  • @lopsidedeyes2964
    @lopsidedeyes2964 4 роки тому

    where is the damn site link

  • @patricktolentino873
    @patricktolentino873 6 років тому

    why cant I download it?

  • @kenfinneran9491
    @kenfinneran9491 4 роки тому

    How the heck do you view

  • @st33zy_
    @st33zy_ 2 роки тому

    doesn't work rip

  • @zoltanlaska6556
    @zoltanlaska6556 5 років тому

    Hi!
    I would like to ask for help!
    I wrote a script (AutoHotkey) in the meantime I got x down to do 1 thing and got stuck in two things!
    I would like to bind off and on on one button so if I accidentally press x then
    II. I get to the end of all the trouble things I want to finish in the end and get up again x to start over
    Thank you in advance for your help!
    Apologize to google translator :)

  • @antho2557
    @antho2557 4 роки тому

    i need auto key For the E key

  • @Beep-Bop-Boop
    @Beep-Bop-Boop 6 місяців тому

    KJP has a mop for a haircut.