Autohotkey loop forever 1 and older) and its commands and hotkeys totally, and it loops them forever. Sep 24, 2009 · You made the infinite loop correctly, but it might be wise to slip in a hotkey that can Reload the script if needed or Exit / ExitApp on the script to escape the loop entirely. What would the script be if different timers needed to be set between each key press? To retrieve files' relative paths instead of absolute paths during a recursive search, use SetWorkingDir to change to the base folder prior to the loop, and then omit the path from the loop (e. 2 second (1000 = 1 sec) Send, {w Up} } return +f::Pause Apr 29, 2020 · Home Board index AutoHotkey (v1. . Jun 7, 2021 · With the current 1. And please use the code-tag when adding codes. If an inner loop is enclosed by an outer loop, the inner loop takes precedence. Forum rules. loop { Send, 1 sleep, 3300 loop 3 { Send, 3 sleep, 3300 } Send, 1 } return F1 Nov 5, 2020 · Home Board index AutoHotkey (v1. Any help would be appreciated. I got it to work except it only works one time. How can I break an infinite loop like the sample? I tried this following script. Loop, *. But it doesn't work. A for-loop is usually followed by a block, which is a collection of statements that form the body of the loop. I would like to execute a loop infinitely, but I would like this loop to stop as soon as a key (any random key) is pressed. What is the correct way to WinWait and then if the window shows run a loop forever until that window goes away? In advance I send you my thank you! Hello, I am in need of a script that will left click and hold for 15 seconds, then wait 15 seconds before repeating. I am looking for a code which will Press key 1 every second for 20 seconds, then sleep for 10 seconds and back to pressing 1 again Hello, I've made a test script here to see how I can loop a loop. and since nothing has changed with the variable you while loop is base on you rinse and repeat this while loop forever. Apr 21, 2023 · Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand 6 days ago · Two: Spacing/indents are nice for readability, but don't (usually) affect code. 0 on := False F3:: { Global on If on := !on ; Toggle a variable indicating whether to proceed paste(), SoundBeep(1500) ; Start by sending a line feed Else SetTimer(paste, 0), ToolTip(), SoundBeep(1000) ; If toggle is reset, then disable the timer } paste() { ; Timed subroutine can also be called directly Send '`n' If on { ; If toggle is set, SetTimer Apr 5, 2017 · Get help with using AutoHotkey (v1. In this example, the actions happen after the keys are pressed, but only happen once. ahkDescolada' So, if the button is held down, it starts your process with the while loop, immediately it runs into the 9 loop, and right clicks, then instead of sleeping for 2 seconds, it checks the key state every 2/10 of a second, and if the key isn't still held down, it exits out of the sleep loop, checks again to see that it isn't held down, and breaks Aug 27, 2019 · Home Board index AutoHotkey (v1. Id like to press a key (for example F6) and start a loop to click 2, 3 and 4 repeatedly until I stop the loop with F7. - posted in Ask for Help: is there any wait to keep running a KeyWait all the time (during the script)Im doing this: if nobody press a specific key (example: f) after 20 seconds, then open notepad. 1 and older) and its commands and hotkeys. I made a loop script, and I want to make it do something after repeating the loop 114 times, how can I do that? #MaxThreadsPerHotkey 2 CoordMode Mouse F9:: Toggle := !Toggle Loop { If (!Toggle) Break Sleep 1000 Mouseclick L,1274,134,1,0 Sleep 2000 Send {right} Sleep 1000 } Return Jun 25, 2017 · Get help with using AutoHotkey (v1. I did not try Rohwedder's script, but that might help with the issue. 1 and older) and its commands and hotkeys May 14, 2007 · Breaking an infinite loop with keypress - posted in Ask for Help: Hello. There is zero tolerance for incivility toward others or for cheaters. If someone press f key, start again counting 20 second, waiting for a new f key pressed, and allways do the same. Jul 14, 2016 · Hello guys, i am sort of new the last few days with AHK, and ive been trying to make a simple script that left clicks, then 50 milliseconds later, it right clicks. Also, Sleep 15 ; seconds won't do what you want either; what you wrote would tell the script to wait just 15 milliseconds, and everything from the semicolon to the end of the line is ignored because it is considered a comment. May 27, 2023 · Get help with using AutoHotkey (v1. It's oneline less code, I guess. vox. 1 and older) and its commands and hotkeys Dec 23, 2017 · Personally, I did this by creating a 2nd script where pressing Ctrl would set a global variable to 1. This whole reason I added that && (CaseArr[3] != "") part was because InStr will match a blank sting Aug 30, 2007 · space bar loop - posted in Ask for Help: i need a code for the space bar to be looped forever with a hotkey as the space bar Jul 6, 2016 · you start a while loop that runs as long as the previous checked pixel color is the same as the color info in alive mob while it is soo you do the following send input 5 sleep for a bit got to start of the while loop. Nov 27, 2022 · Sorry for the doublepost. Thanx. Jun 11, 2012 · If i do !E::suspend inside loop it will just stop script. Not sure if there are any advantages or disadvantages to either method. You can do this with GetKeyState() , but then you can't use the same key to toggle it on and off, as it'll toggle off as soon as you start it, unless you add Sleep commands in there, in which I am trying to write a script where a loop is almost constantly going but whenever I press a hotkey the loop stops, performs a certain action and goes back to the constant loop again. Thanks. Jul 6, 2016 · you start a while loop that runs as long as the previous checked pixel color is the same as the color info in alive mob while it is soo you do the following send input 5 sleep for a bit got to start of the while loop. If I remove the ,30 from the code it will loop forever if the application does not open and I don't want that. g. Any Jul 9, 2020 · I like the speed but its not exactly what I was looking for I'm looking for the same thing but it moves a little bit slower and Moves at the position of where my mouse was first placed Jun 12, 2022 · And then I want that sequence to be repeated every 15 seconds in perpetuity (or until I press the hotkey button again, which should pause/stop the automatic loop/repeat). All I want to happen is to open the game then just have a infinite loop Type "Q" then "1" then repeat that forever until I end the script/program. 1 second and repeats it untill I turn off the script How do i make it? I heard its a simple concept, but I have no idea how. Is there a way I can speed up the loops? For these loops Im not looking at script accuracy, but rather speed. Simple stuff. keyWait, f,D T20 Mar 20, 2021 · $*e:: While GetKeyState("e","P") { Send, {Blind}e Sleep, 10 ; every 10 miliseconds } Return Every few uses the while loop breaks and keeps spamming forever until i Sep 21, 2017 · Get help with using AutoHotkey (v1. I want the script to repeat that function 3 times then after the third time it holds down x for 15 seconds, then repeats the entire process from the beginning again. Here is what I have so far: WinWait, NetWinner. J Dec 5, 2008 · Try the following (not tested!myloop: #MaxThreadsPerHotkey 3 KeepWinZRunning := true Loop { WinWait, Second Life, IfWinNotActive, Second Life, , WinActivate, Second Sep 23, 2017 · I need help creating an autohotkey loop script that does the following: presses the number 2 and holds left click for 5 seconds then releases. It works, it goes REALLY fast, but the only problem is, when I hold my mouse for 3 or more seconds the Zs wont stop typing down 6 days ago · So i have this code that should type "rose" 13 times and then type "lily" once and the loop it forever but it only sends "rose" once and then stops can someone help me? this is my current code Feb 10, 2009 · How to make the macro loop? - posted in Ask for Help: All i want is to make my macro run forever, with the same repetative keystrokes. In the first script you initially reset this global variable to 0, then within the loop you check this variable. It is still clicking on that one spot and I cant stop it. Does anybody know my problem? AutoHotkey (v1. Loop { IfWinActive, ahk_class WordPadClass { WinMaximize ;Maximize Aug 10, 2009 · How do i make spacebar repeat for ever? - posted in Ask for Help: I want a script that presses spacebar every 0. May 17, 2016 · Is there a way to create something like this in AutoHotKey? bool isReady = false; while (!isReady) { // Do something here isReady = true; } I tried to experiment with While loop, but it ended with just 1 loop regardless of the condition I give the program. OR if i press again F6, my loop will break. I have read the documentation and searched the net for a solution but havent been able to Jan 24, 2006 · return ; End this thread so that the one underneath will resume and see the change. #ifWinActive ***** CoordMode,pixel,screen XButton2:: Loop { SetKeyDelay, 20 if not GetKeyState("XButton2", "P") break Send 3456789 sleep +q sleep +e sleep +f sleep +r sleep +c sleep +q } return Aug 22, 2018 · Hi, don't use F, E etc. AHK converts F automatically to Shift+f. Oct 19, 2012 · I have been using this script forever but since the Software updated it doesnt seem to work as intended anymore. The problem is that if I use the second syntax it will be spewing out "Sends" and mouse clicks so fast that it is hard to regain control of the computer without forcing a reboot. From my understanding SetKeyDelay is setting 200ms between all keypresses. I hope that It would be a global hotkey for <break> on other infinite loop and others. I tried with this script, but it only works 1 time. Is it possible? Now my loop looks like: (for now its just goin once from 1 to 11) F6:: IfWinActive Oct 6, 2008 · This fixed code variation of the one you quoted, will remain in the loop forever, and thus that is all your script will be able to do (unless you use other hotkeys or timers). Jan 15, 2012 · SendInput going on forever after I stop holding down button? - posted in Ask for Help: Heres my code LButton:: Loop { SendInput {Z} If (GetKeyState(LButton,P)=0) Break } Its supposed to type a bunch of the letter Z down when I press and hold the left mouse button. I press F6, 2. 1 and older) and its commands and hotkeys this is 5 minutes, since sleep param is in milliseconds Loop ; run forever - stop it Sep 21, 2011 · Help with Loop for scanning folders to check if files exist - posted in Ask for Help: Hi All,Im new to AHK and Im trying to find a way to create script that scans a group of folders to see if files of extension . One workaround is to build a list of items to remove, then use a second loop to remove the items after the first loop completes. it sends a command every 150seconds. Use f, e etc. It contains 1 the first time the loop's expression and body are executed. Mar 18, 2014 · Need help with a loop, Wordpad and it runs forever. 0 on := False F3:: { Global on If on := !on ; Toggle a variable indicating whether to proceed paste(), SoundBeep(1500) ; Start by sending a line feed Else SetTimer(paste, 0), ToolTip(), SoundBeep(1000) ; If toggle is reset, then disable the timer } paste() { ; Timed subroutine can also be called directly Send '`n' If on { ; If toggle is set, SetTimer May 1, 2020 · since you want to loop it for a while until your mind changes, you can do with another way: Code: Select all F1:: Loop { send, w sleep, 0 } F2::Pause Esc:: ExitApp Feb 27, 2013 · I took computer programming in highschool but only made it up to Visual Basic type stuff so understanding Variables, defining, loops, comands, input, output. After finishing the first sequence, it just keep pressing some buttons forever, never restarting. For example; W, A, S, or D. Apr 14, 2015 · Here's a better approach (but not a perfect approach) which keeps your idea in mind: If (BreakLoop = 1) Break. Oct 3, 2013 · Get help with using AutoHotkey (v1. MaxAstro It contains 1 the first time the loop's body is executed. If I remove the inner loop and just put a sleep 300, it works but stoping it becomes hard then, since he doesnt react to the e key while sleeping. During loop execution, you may sometimes discover something which should stop the loop or the current iteration. Aug 6, 2014 · Of course I can create an infinite loop like this: Top:: Bunch of commands. 1 and older) and its commands and hotkeys Dec 1, 2023 · Code: Select all #Requires AutoHotkey v2. Jan 12, 2014 · Loop with button to start/stop (break) - posted in Gaming Questions: Hi there I would like to know if im allowed to do such thing like: 1. For the second time, it contains 2; and so on. Any command that can do that? like:Loop, 999Or something similar?Forgive me for being a newb, but you have to start somewhere Nov 23, 2013 · I've checked out this thread, but it doesn't help. 1 and older) and its commands and hotkeys The reason why your loop isn't working is because once you enter the loop the program is stuck there, so to get out you need to work from inside the loop. I managed to write that, it works perfectly fine Jun 11, 2020 · I've ran into an issue with an infinite loop. 0 on := False F3:: { Global on If on := !on ; Toggle a variable indicating whether to proceed paste(), SoundBeep(1500) ; Start by sending a line feed Else SetTimer(paste, 0), ToolTip(), SoundBeep(1000) ; If toggle is reset, then disable the timer } paste() { ; Timed subroutine can also be called directly Send '`n' If on { ; If toggle is set, SetTimer Sep 6, 2021 · I wanted help figuring out how to make a code that would work like hold a for 10 seconds then stop for like 2 seconds then hold d for 10 seconds then stop then go back to the beggining again and just repeat the code like that. Nov 13, 2014 · Loop - posted in Ask for Help: How do i create a loop function that clicks on a spot randomly every minute and presses a button every 5 minutes and contentiously does it forever til i stop script r/AutoHotkey This is a place to get help with AHK, programming logic, syntax, design, to get feedback, or just to rubber duck. For example: - Press "Space", script writes "P Q Q T" (hold each key for 25ms, and leave a gap between each letter for 20ms), every 15 seconds. Get help with using AutoHotkey (v1. However, a loop with only a Apr 2, 2010 · Is it possible to speed up a loop? - posted in Ask for Help: Hello So, I need to run 30,000 loops and it takes FOREVER. I've been able to figure out the Loop script but I'm having trouble with figuring out how to make it so any key press after the initial E breaks the loop. [/code] My sort library: https://github. What would the script be if different timers needed to be set between each key press? Doing so may cause some items to be skipped or enumerated multiple times. com/Axlefublr/lib-v2/blob/main/Sort. It contains 1 the first time the loop's body is executed. I've been having some trouble with making it so help would be much appreciated. for example i am pressing the q hotkey and it is moving my mouse cursor to the center now when i press the "w" key it should loop both the "hotkey q" and "w" key like this "qwqwqw". Note that Object. Can anyone help with this, much appreciated! Dec 1, 2023 · Code: Select all #Requires AutoHotkey v2. A_Index works inside all types of loops, including file loops and registry loops; but A_Index contains 0 outside of a loop. However, a loop Jun 4, 2017 · In this case, when I press E, I want it to continuously loop the E button until any other button is pressed. Jun 23, 2024 · This makes it so whatever is inside TheLoop: will be done indefinitely when I press F1. I can't seem to break out of the loop using the hotkey. Nov 21, 2009 · keywait forever. bat file which will convert the . Jul 28, 2023 · If I click 'continue' a time or two more though, it starts working as expected. The idea is that you can start and stop the looping process Jul 26, 2015 · Repeating one Key - posted in Ask for Help: Hello, I wrote a very simple script, which should repeatly send the same key. Dec 1, 2023 · Code: Select all #Requires AutoHotkey v2. In AutoHotkey v2 and AutoHotkey_H v2, leave the percent signs out (Loop accepts an expression parameter). after performing the action once the hotkey to break the loop and perform an action no longer works. The loop does run for 30 seconds because there is a Sleep 1000 in the loop. } ; Otherwise: KeepWinZRunning = y Loop, { SetKeyDelay, 5, 52 Send, {tab}%pass% SetKeyDelay, 50, 80 Send, {enter}{enter}{enter} if KeepWinZRunning = ; The user signaled the loop to stop by pressing Win-Z again. Jun 7, 2021 · You can insert additional conditional statements or checks into the loop if you wish to check there. 0 on := False F3:: { Global on If on := !on ; Toggle a variable indicating whether to proceed paste(), SoundBeep(1500) ; Start by sending a line feed Else SetTimer(paste, 0), ToolTip(), SoundBeep(1000) ; If toggle is reset, then disable the timer } paste() { ; Timed subroutine can also be called directly Send '`n' If on { ; If toggle is set, SetTimer One workaround is to build a list of keys to remove, then use a second loop to remove the keys after the first loop completes. Sleep. x version of AHK, the loop's iteration would generally complete without interruption, before the next condition check. To retrieve files' relative paths instead of absolute paths during a recursive search, use SetWorkingDir to change to the base folder prior to the loop, and then omit the path from the loop (e. wav exist. 6 days ago · So i have this code that should type "rose" 13 times and then type "lily" once and the loop it forever but it only sends "rose" once and then stops can someone help me? this is my current code Jul 6, 2016 · I assumed the while loop would run continuously 'while' the statement is true! Code: Select all alivemob = 0xBB4D30 deadmob = 0x112A37 Loop { SendInput {TAB} Sleep 800 PixelGetColor, color, 573, 74 Loop { While (color = alivemob) { SendInput 5 Sleep 100 } PixelGetColor, color, 571, 74 If (color = deadmob) SendInput {TAB} } Nov 5, 2020 · So i would like the stuff in the loop right now to be doing that for 182 seconds and then it does something else for 60 seconds, then it does the 182 loop again. It will click forever. Also, the ahk_class OpusApp is the correct class for Microsoft Word 2010. ps. I found a similar code on the documentation, but that code executes a loop when a key is held down. Sep 16, 2011 · Page 1 of 2 - Simple loop | Break/start a loop with one and the same key! - posted in Ask for Help: So, I want to make an anti-afk loop. Remove(first, last) can be used to remove a range of keys without looping. Jul 29, 2011 · Loop within a loop - posted in Ask for Help: I would like to create a loop for holding a key which simulates pressing a at the start of the loop and then repeatedly every 5 seconds while it simultaneously simulates the pressing of b every 2 seconds. Wheelup and Wheeldown are unique in that they cannot be "held". I didnt expect that I couldnt stop it. Top. If they do then it will launch a . Rolling the wheel continuously simply sends lots of "press" events for the button - "release" events never happen for these keys. loop indefinitely Im forever grateful for any help. From time to time the web based app falls over and leaves me without control as the script is still simulating mouseclicks and movements etc. Nov 17, 2005 · How to interrupt AHK loop - posted in Ask for Help: Hi all, Ive been using AHK to populate fields in one app with data from another. wav to . 1 and older) and its commands and hotkeys SetDefaultMouseSpeed 0 Loop { Click 1000, 370 Sleep, 150 Click 900, 370 Sleep, 150 Apr 14, 2007 · If I run the mouse click part of the macro it runs fine by itself, loop { MouseClick, left, 208, 211 MouseClick, left, 208, 211 Sleep, 50 MouseClick, left, 208, 211 Jul 21, 2009 · can someone make me a simple infinite loop macro please - posted in Ask for Help: i cant make any sense on how to do it i need one that presses [ then 1 second later presses ] wait 2 seconds then repeats [ and ] are my hotkeys for [::MouseClick, left, 487, 409 ]::MouseClick, left, 560, 378 any help would be appreciated Nov 24, 2020 · This script should loop in rapid fire succession in the following sequence: 7->a->left click, 1->a->left click, 2->a->left click, 3->a->left click, 9->a->left click, and 0->a->left click With just one key press 'x'. - posted in Ask for Help: Im trying to create a script that automatically detects Wordpad, changes the font of all the text to size to 07 and then exits the loop. Oct 29, 2017 · loop {some commands that work well} WinWaitClose, Team Calc I tried putting both the WinWait's within the loop but it stops looping when it encounters the WinWaitClose. The problem Im having is my script runs forever. Additional approaches can be found below. Declaring a hotkey inside a loop is not correct. esc:: exitapp Jun 30, 2015 · I know that it gets into the loop because the login information is populated. Check out While and the built-in variable A_TIckCount. Esc:: BreakLoop = 1 return. What can I do? Is there a key combo to stop it? Nov 27, 2022 · Sorry for the doublepost. F2::PressE() PressE(){ Loop { Send e Loop, 300 { if GetKeyState(e){ return } sleep 1 } } } It only sends the key once tho. Oct 9, 2019 · Hey, I have searched forever it feels like, also trying to make it on my own but I can't seem to get it to work. If I remove "loop" and "Until result = 1" from the below code block everything is fine, no issues, script works correctly. Also, the loop may take the "!E" as part of the "!R" hotkey. Mar 4, 2018 · Code: Select all #SingleInstance Force SetKeyDelay 10, 10 ;the best way to set press and delay in sending F3:: Armed:=!Armed ;triger that armed disarmed sending RAPIDFIRE: setTimer RAPIDFIRE, OFF ;tooltip ; visual debug if Armed { ;tooltip 12345 ; visual debug send 12345 ; uncomment to activate sending setTimer RAPIDFIRE, 200 ;200 ms to next send } RETURN #MaxThreadsPerHotkey 2 F4:: arm:=!arm May 1, 2021 · Hi! I am trying to loop a series of command, but it is not working. My loop starts and is going through index 1 to 15, and then from start, forever and ever 3. Loop { If run = { sleep,250 ; so you don't eat cpu time continue Else { ControlSend,, 2, ahk_id %program2% Sleep 2520 } } return F4:: If run = run = 1 Else run = return Oct 27, 2020 · Home Board index AutoHotkey (v1. Jun 21, 2011 · Reverse in loop - posted in Ask for Help: I have a script like this, which is a very simplified version as an example for my question:#SingleInstance, force Loop, f:\\coolcd\\*. Feb 7, 2007 · Page 1 of 2 - Stopping an Infinite Loop - posted in Ask for Help: Hey guys, Im new to scripting and I set up a script to repeatedly click for farming purposes. You can insert additional conditional statements or checks into the loop if you wish to check there. I tried putting the computer on Hibernate, but it didnt work. Though, I probably would've just done this: Break. That will cause A_LoopFileFullPath to contain the file's path relative to the base folder. As with all loops, Break may be used Feb 17, 2014 · Adding #Persistent does not do what you want; it just makes it so that the script doesn't close until it gets to an ExitApp. I would suggest putting a sleep, 2000 or whatever (so it only does the click every 2 seconds, or as often as you need) but it is up to you. I prefer adding scripts to escape infinite loop if possible. A_Index works inside all types of loops, but contains 0 outside of a loop. You can try this one: Jul 24, 2023 · Can i make a script that when held down "q" moves the cursor to the center and then again if any additional keys are pressed it adds to the loop. Let me know if you need any more help. When the if evaluates as false, the following statement (the msgbox) is ignored, and program execution picks up immediately after it: "break 2". Dec 8, 2021 · Code: Select all Pause On Loop { Send, {a Down} Sleep, 32200 ;wait 32. Im new to this entirely and am very confused on how to get this to do what id like. *, 0, 1). 1 and older) Ask for Help (v1) how to have a infinite holding down key? Get help with using AutoHotkey (v1. 1 and older) ↳ Ask for Help (v1) ↳ ; AutoHotkey_L, AutoHotkey_H, AutoHotkey v2 and AutoHotkey_H v2 Loop { ; do something that may change "breakNow" } until breakNow The difference is that while checks the condition before the iteration, whereas until checks it after the iteration (so there’s always at least one iteration). 1 and older) Ask for Help (v1) How to keep pressing a key forever? Get help with using AutoHotkey (v1. Just declaring it once (outside the loop) will take the same effect, and will consume less resources (ase you are not declaring over and over again the same thing). com/thqby/ahk2_lib/blob/master/sort. But im quite new to ahk script so i have no clue how to do that lmao. 2 second (1000 = 1 sec) Send, {a Up} Send, {w Down} Sleep, 1400 ;wait 1. 1 and older) Ask for Help (v1) How do I make a keyboard loop script. * { Gui, Add, Text, w200 h100, %a_loopfilename% Gui, show, w300 h100 keywait PgDn, down sleep 150 Gui, destroy } What Id like to know is how to make the pgup key go back one step in the loop. Nov 11, 2013 · Also, you don't need the loop, otherwise it will consistently loop after the keys are pressed, keeping the window maximized. loop, { if GetKeyState("Numpad1") break ;; rest of loop } Functionally they are essentially the same :P I don't like defining hotkeys for breaking explicitly for some reason, I always make a getkeystate-check. Thanks Nov 24, 2016 · GetKeyState, WheelDownState, WheelDown, P This will always report as "U". ahkthqby's Sort library: https://github. However I'm trying to run the "keep looking" element on a loop until an "attack" happens. break ; Break out of this loop. Jul 15, 2022 · When I toggle the loop on, it holds d forever and doesn't stop if I press F11. At that point I'd like the loop to terminate and continue onto the next section of the Apr 27, 2009 · loop { MouseClick , Left , 1022, 322, 2 , 10 } that should do it. Ive Googled loops but dont know how to exit the loop correctly. Goto, Top. Thanks for that Exaskryz the tickcount method works. com - Windows Internet Explorer, IfWinNotActive Oct 2, 2012 · AutoHotkey Community; AutoHotkey; Ask for Help; View New Content Winwait loop forever without stopping other commands Started by Binocular222 , Oct 02 2012 08:50 AM. Heres is what I've made so far: Home:: Loop, 3 { Send, {w down} Sleep, 500 Jun 22, 2016 · Right click then left click LOOP Post by Tachytron » Thu Jul 14, 2016 1:42 am Hello guys, i am sort of new the last few days with AHK, and ive been trying to make a simple script that left clicks, then 50 milliseconds later, it right clicks. 1 and older) and its commands and hotkeys Run script from 22:00 to 0:00 Loop,5 { Do something } Sleep, 3600000 Loop,5 { Do Get help with using AutoHotkey (v1. What I want is for that to be done only a certain number of time (in this case, 15 times). khoysp obtj cqwafs pwloqr dikwpd ldpd pdj vwq kfpu rlok