Autohotkey hold key while pressed. Pressing F2 will exit the script entirely.
Autohotkey hold key while pressed.
playing a game that uses holding shift very frequently.
Autohotkey hold key while pressed Code: Select all ^LButton::Send {Volume_Up} ; this sends Volume_Up once when I hold the mouse Jun 16, 2006 · Remapping key when holding down a key - posted in Ask for Help: You guys are great!!!What im trying to do is map most my numpad keys to do some things. F7:: Loop { ControlSend, , {4}, Diablo III Sleep, 6000 } At the moment its initiated with F7, but changing it to (Hold Space) instead of just pressing F7 once would be game breaking for me, unfortunately as a May 31, 2022 · I want to be able to hold the key q, and while holding it, have the t key pressed repeatedly (with a certain time between). and when I just press that key ( which takes less than one Nov 9, 2024 · I am using AHK v2 and try to achieve a simple script which repeats / spams my arrow keys (all four of them) as long as the corresponding arrow key is being held down. Jun 8, 2019 · I have a program where in order to cycle through the various open windows you have to press and hold down the Ctrl and then press F6 to switch to the next window. This is what i did but it doesn't seem to work Oct 21, 2010 · $w:: While GetKeyState("w","P") { Send, w Sleep, 10 ; every 10 miliseconds } Return If it's not fast enough, try SetBatchLines, -1 and/or remove the Sleep . I have watched tutorials but all people ever really cover is the mouseclicks. What can be changed so that when the shift key is pressed and held indefinately, it will only send z once. 2021 8:53 pm. didnt figure that out myself yet. In the first script you initially reset this global variable to 0, then within the loop you check this variable. This keeps on going until I press F2 again. Is there anyone here who wouldn't mind writing that out for me? Also, thanks in advance for anyone who does! ~iiPMG - YouTube Gamer Jul 12, 2021 · AutoHotkey v1 Help; How to press another key while holding down one key. How can I replicate a key press and held down when mouse is clicked and held? Methods I've tried just didn't work. I'm trying to make a "tap tp talk" instead of push to talk. So you be able to click and drag. ) } if GetKeyState("1joy2") { ;this key will be a Toggle key for Auto fire, (Like a StopWatch this will Hold Down repeat-firing till pressed again) if !xtoggle{ xtoggle=1 SetTimer, xtimer, 80 ; . Mar 20, 2021 · I am trying to write a script in autohotkey so that, when I hold i for every one seconds it trigger a specific script for each of the one seconds. i tried RShift:: KeyDown := !KeyDown If KeyDown SendInput {RShift down} Else SendInput… Dec 14, 2014 · Hold shift when pressing arrow keys - posted in Ask for Help: Hi Im not very good at programming but i need help writing a simple script. The ones I have found partly work, but they queue up the keys and continue to press them even after I release the held key. Any tips? Mar 17, 2018 · Re: Hold Key While Pressing Other Keys Without The Held Key Stopping? Post by abcjme » Sat Mar 17, 2018 1:34 pm Nwb wrote: How about use s & d:: and then under the loop use getkeystate for d and write the actions below when keystate is up? Jul 27, 2016 · Here's what I'm trying to do. Then if I have NumPad0 held down the numpad keys do something else. May 1, 2014 · Pressing a key once to hold it down for a set length of time - posted in Ask for Help: Im looking for help making a script that holds a key down for a length of time after it has been pressed once. R) then space bar is held down as if you are in a word document and you hold down the space bar and multiple spaces appear in succession. exe CapsLock::RButton ;this works fine return a::!RButton ;this works fine return z:: ;this doesn't work for some reason Send {LAlt down}{RButton down} ;I need it to press and hold the LAlt then the RButton in that order while i am holding the z key z up:: Send {RButton up}{LAlt up} ;and then release the RButton then the LAlt key in that order when I want to press a key (for example here, q) and have that activate and hold the e key for 10 seconds. How to hold a macro while Physical Key depressed autohotkey: simulate Jul 16, 2021 · spam a key by pressing the same key Post by DrKujo » Fri Jul 16, 2021 1:45 pm so i want a script that can spam a key for example whenever i "HOLD" F it goes "SPAMMING" F until i release the key, it seems easy for me at first but when i tested it out it sent nothing . Mar 15, 2014 · Loop a Key if Holding Down a Certain Hotkey - posted in Ask for Help: Basically i want to have this code work exactly the same but have it only press/loop 4 while im holding space. - If input matches string found in . i tried this: Code: Select all Mar 22, 2022 · Sometimes I stop holding W while still pressing Q and W stops being pressed then after a second it activates again. That counter should be activated by the ScrollDown Key. g. SO basicly i want movement all the time if i hold down any of the 2 keys. May I ask for some help or a direction to be I dont want it to spam the second key, just press and hold it while i press and hold Alt. In other words, it can be started and stopped on command. I'm a beginner. While the counter is actively counting down the script should observe my mousemovements:-press and hold down the [a] key while I move my Oct 21, 2019 · Code: Select all #IfWinActive, ahk_exe ZBrush. 1 and older) Ask for Help (v1) Gaming Help (v1) Run script while key is held down Topic is solved Ask gaming related questions (AHK v1. May 18, 2014 · (Help me!) Hotkey to hold two keys at the same time until a "cool off" key is pressed - posted in Ask for Help: I would like a autohotkey script that will hold down the following buttons: CTRL + W Those buttons will be held until the button ] is pressed. i tried this: Code: Select all Nov 21, 2024 · Hello, looking for help to create script which while holding F ahk will hold Right mouse button then after 20ms start to hold O at the same time with Rbutton but while holding F Left mouse button is pressed it will do Press "/" then release Lbutton and after that it will hold Rbutton and after 20ms O together with Rbutton. if KeyToHoldDownPrev ; There is a previous key to release. For example: Send {b down}{b up} Send {TAB down}{TAB up} Send {Up down} ; Press down the up-arrow key. Oct 29, 2010 · how to hold a key and spam it - posted in Ask for Help: hi i want to know how do i make a script like if i am holding space key and it spams space bar till i have hold down space key thanks Oct 3, 2011 · [solved] - loop while pressed only - posted in Ask for Help: i cant find it pls can you help me to do this to work only if i hold it and when i relase it to make other action?MButton:: Loop { send s } return mbutton Up:: send f mouseclick left return Press one of the "mystery keys" on your keyboard. To clarify the toggle, I want to double-press R quickly to simulate holding the R key down Mar 23, 2022 · So that the key press stops and repeats after 7 seconds. What I want is to push a letter (e. My problem: The action I intend to emulate has a time out of 7 seconds. Code: Select all ^LButton::Send {Volume_Up} ; this sends Volume_Up once when I hold the mouse Dec 22, 2022 · In AutoHotkey, how can I do the following: While SPACE and "either or a combination of [A, S, D, W]" are pressed down at the same time, send key LSHIFT every X milliseconds; do this until SPACE and and A, S, D, W are not pressed. Also the help/tutorialpages from autohotkey itself are very bombastic. so i press down b he starts spamming rmb, i lift b he stops. This is often used in conjunction with remapping keys or buttons. I tried to do it myself but i only got it to either spam shift repeatedly or spam it once, but the f2 key became useless! To be specific, I am trying to get a script where you press the number keys (1-0) for 2 minutes and 30 seconds. I've researched it a lot lately and all of the solutions dont hold the key down, they just tap the key. When I physically pressed the Ctrl+Numpad8 keys on the keyboard, the script that ChatGPT gave me worked fine, but when I pressed the button on my mouse that is binded to the hotkey Ctrl+Numpad8, the script only sent in a the Right key once and then I had press it down again and it will do the same thing again and only sent the right key once. Code: Select all Numpad1:: While GetKeyState("Numpad1","P") ; P checks for you to physically hold it Send {Left}{Right} return May 8, 2018 · Since 1 was the same key that was being pressed in the script I was having problems. but it should leave the f12 key useable as well. Apr 1, 2018 · What OP wants (from orig text) is to press and hold the right mouse button for at least 1. Send "{" KeyToHoldDownPrev " up}" ; Release it. Id like to see a script that will let me do the following, specifically: - Let me physically press (hold, actually) W, which will result in holding Right Control; - Releasing W will release RCtrl; - Retain the Dec 18, 2018 · The difficult part was to instruct AutoHotKey to hold down the mouse button while holding down the key on the keyboard. I'm pretty new to AHK and trying to use the send and sleep commands. Also I downloaded MacroCreator and made a detailed plan. Please see the link in my sig for a list of posts that help you create and stop repeated actions. Then press the same shift key when Nov 20, 2016 · While Numpad1 is pressed I want LEFT and RIGHT arrow keys to be repeatedly pressed and depressed (meaning if you press left arrow key and then let go and press right arrow key and let go and repeat) I have started with this so far but I am clearly missing a few commands and might have it totally wrong even! Aug 20, 2018 · It reacts on how long I press the mouse button but when I tested it in game for some reason I can't turn as fast as I can with pressing the arrow key physically. In short: How do I write an autohotkey script so that when I press, say, F1, it presses the mouse button down and only lets it go after I let go of the key? I did some research on both autohotkey Mar 13, 2017 · If you're referring to holding down the key for that action and having some delay before the action activates (vs. For example, if I were to press the 4 key, the script would hold down the 4 key for a set period of time, say 3 seconds. I have kind of thrown together my process below. 1 and older) Ask for Help (v1) Search; Hold X key (razer sensitivity button) and LButton while Left click is pressed. I figured out how to hold down SPACE but cant get it to hold space and press K after 200ms. If anyone could help me that would be amazing! Similarly, any key name enclosed in braces is pressed and released by default. playing a game that uses holding shift very frequently. So while D is being pressed once every . The hold down of q still needs to be transmitted as normal. holding down some other key such as a modifier), you could do something with GetKeyState as mentioned already. I've been trying to google the answer and didn't find anything that would solve my issue, so i'm turning to you guys for help Mar 1, 2011 · hold keys while mouse moves - posted in Ask for Help: Hi there, Im in need of your help Heres what I would like to do:First of all I need a CountdownTimer that counts down from ~0. While I get the obvious stuff "press key" and then "wait xx ms", I'm not sure how to keep a button pressed. Thanks! May 22, 2023 · I want to toggle holding down the R key by double-pressing it quickly while the R key otherwise retains its normal key behavior, so a brief single press is a brief single press, and holding it down for a few seconds is holding it down for that period. When F2 pressed, it starts a loop that presses F9 every second or so. Input should be ignored if key is not held. wait 1000 ms. The script needs this function for keys 4,5,6 and 7. Aug 24, 2019 · When the control key is held, the mouse wheel functions as normal. Nov 14, 2017 · I dont want it to spam the second key, just press and hold it while i press and hold Alt. May 31, 2022 · I want to be able to hold the key q, and while holding it, have the t key pressed repeatedly (with a certain time between). Nov 6, 2021 · Hold Key spam Post by LadyGamer » Sat Nov 06, 2021 10:31 pm Hello!, im triying to make a script that spams "e" when i hold it, and stops if i release, but it has two problems, it doesn't instantly spam "e", it waits a little until start spaming, i need an insta start spam, also the sleep seems not working, i need a little sleep between each "e Feb 16, 2011 · Id like to hold down a certain key while holding another - posted in Ask for Help: Ive searched through the forums, but couldnt find anything satisfiying, so Im posting this now. Nov 21, 2024 · Hello, looking for help to create script which while holding F ahk will hold Right mouse button then after 20ms start to hold O at the same time with Rbutton but while holding F Left mouse button is pressed it will do Press "/" then release Lbutton and after that it will hold Rbutton and after 20ms O together with Rbutton. It will NOT auto-repeat like you are holding the space. It's easy to start a loop with a key, but the knowledge of this one comman May 5, 2019 · Press the t key to toggle the 1 key being held down so that it types a bunch of 1's indefinitely until I press the t key again. 0) script that holds down the F key, and quits the script when using escape I'm sure some of you out there can improve upon this and make it a little better, but it's a start Jan 17, 2021 · New to Auto Hotkey. 8 seconds to zero. Did you try it? The script I provided will start sending the sequence of keys every 12 seconds when F1 is pressed. Select the menu item "View->Key history" Scroll down to the bottom of the page. for example when I hold this key for 7 seconds something be done 7 times, or when I hold it for 8. 1. Otherwise if the string does not Jun 30, 2015 · While key is down, repeat action? - posted in Gaming Questions: Ive been trying to make a script for Counter-Strike: Global Offensive that repeatedly presses 3 then 1 as you hold down the middle mouse button, this is completely for show and gives no advantage. Any help would be much appreciated! O is being held down, another key is pressed while it being held down, o is released, another key is released. Dec 23, 2017 · Personally, I did this by creating a 2nd script where pressing Ctrl would set a global variable to 1. When F1 is pressed again, it will stop. For example, Send "{Ctrl}a" would press and release Ctrl, then press and release A; probably not what you want. This would mean I dont have to press shift everytime I want the press the ArrowUp and ArrowDown keys. In Apex Legends, you can push a button (lets choose f7) to talk to teamates. Here is what I have, I was wondering if there are any areas that can be improved? \:: send {1234567890} sleep 150000 send {z down} sleep, 11000 send, {z up} return Home Board index AutoHotkey (v1. Feb 16, 2009 · All you need is an asterisk (*). I’m looking to create a hotkey to press and hold Control, then press and hold Alt, then press “W”, then let go of all 3 and do the same after 30 seconds. 25 seconds, it's as if D is only being held down by the program for 1/100th of a second. Try my code. ) Apr 16, 2011 · Now what it's doing is the same thing as before, but with a delay in between in the press of D. I think this code should be more intuitive:;NumPad assignments ; PROCEDURE: Press Q key to open Commo Rose | Click on coordinate {NumpadEnd}:: ; NumpadEnd: Spotted (400,300 . 3 seconds it to the same thing 8 times. When I press the F4 key, I want to hold down the F3 key and press the N I'm seeing a lot of people building contraptions to hold the F key, and I wanted to share my primitive autohotkey (2. This method ; can also be used to repeat an action while the user is holding down a key or button: *NumpadAdd:: MouseClick, left,,, 1, 0, D ; Hold down the left mouse button. Sep 6, 2006 · This is straight from the manual - I haven't done much with pressing keys more than once, but this looks pretty simple. The thing is, I want this triggered by a hot key that uses no modifier; I want it to be triggered by pressing only the PgDn key on its own (with each subsequent press of PgDn sending the F6 key to take me to the next window). I tried multiple ways, but it didn't work at all. Others replaced the mouse click with the key entirely which skipped Action1. so: I press and hold w. Can someone point me in the right direction please? Thanks in advance. NOTE: Some keys do not generate events and thus will not be visible here. I need a script and found AutoHotkey to be the best way to get it done. While this key is held, press K after 200ms. Here's an example of how to toggle a key using the key itself; change the key on the first line to the key you'll be pressing, change the other three to the key you're wanting to hold: Nov 9, 2024 · I am using AHK v2 and try to achieve a simple script which repeats / spams my arrow keys (all four of them) as long as the corresponding arrow key is being held down. 30 . I have tried several different ways of accomplishing this but so far at best I can only get the particular key to be pressed once and then it stops, attempts to Send Like while LAlt is being repeated, every 5 minutes, another key Space is repeated for 3 seconds. 1 and older) Apr 22, 2017 · I've been using autohotkey for a long time now for basic scripts and I love it. It will only send S, not Ctrl-S to Save. 5 seconds, and then, if OP is still holding the right mouse button while the "F" key is pressed down, something happens. ; Otherwise, release the previous key and press down the new key: SetKeyDelay -1 ; Avoid delays between keystrokes. Change one of the F-keys to S and executive it in a Word document. If you are using Notepad and you press a key it starts typing that character over and over, but this is a function of the keyboard driver, the OS still only 'sees' the key as being in the down state until you release it. The first check waits 300ms and if ErrorLevel is NOT set we know the key has been released so 'do the thing' and exit - if ErrorLevel IS set then hold said key down and run another check for 5s If the key is STILL held after 5s, ErrorLevel will be set and we 'do the thing' and exit - if the key was released before 5s are up then we just Sep 3, 2020 · When a key is held down via the method: Send {Key Down}, it does not begin auto-repeating like it would if you were physically holding it down (this is because auto-repeat is a driver/hardware feature). #2 - Posted 21 October 2010 - 07:39 PM Dec 17, 2015 · AHK can emulate that by using {Key down} and {Key up} keystrokes. if shift is pressed, scroll the mouse wheel up as normal. I need to hold a key(s) for one second then stop for five seconds and then repeat until I stop the script. Mar 26, 2015 · Do something while key is held down - posted in Ask for Help: This is my script so far: RShift:: If(GetKeyState(RShift, P = 1) Send {z} else Send {RShift} The problem I have right now is that when the shift key is held down, the program keep sending z. Thanks! LAlt:: RepeatKey := !RepeatKey If RepeatKey SetTimer, SendTheKey, 300 Else SetTimer, SendTheKey, Off Return SendTheKey: SendInput {Ctrl} Return F9:: Send, {a down} ; this bit is unrelated Sleep 50000 Send, {a up} Return Oct 29, 2014 · Loop while pressed - posted in Gaming Questions: Need to press a key at intervals while the key is pressed. 08 of a second }else{ xtoggle=0 SetTimer, xtimer, off };Note, No keys are 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. Mouse Keys work slightly different, but should still work as well. Here's where confusion sets in. This line does exactly that: SetTimer, DoTheThing, % susp ? 0 : "Off" May 19, 2020 · I'm new to using AutoHotKey and don't really have the slightest idea on how to use it. You can use the following modifier symbols to define hotkeys * Wildcard: Fire the hotkey even if extra modifiers are being held down. I thought something like this might work? GetKeyState, state, MButton if state = D Send {3} Send {1} Im pretty new at ahk so this is Nov 20, 2016 · To have something happen while holding down a key, it is fairly common to use the approach of using a While loop and using the built-in GetKeyState() function. I tried this but unsure if it’s right. Your Keyboard driver will take over and emulate a series of rapid up/down key strokes when you are holding down the key. I need something that will actually press the D key, then hold the D key, then release the D key, then repeat. Feb 9, 2021 · Home Board index AutoHotkey (v1. Jan 15, 2019 · I press a button on my keyboard, for example F2. Apr 28, 2014 · thats close, im trying to hold down w, then one second later shift is held down until w is released. Edit: Don't use loops/while-loops for auto-fire. 08 of a second. After it will hold down the z letter key for 11 seconds and then repeat. I want to press the Left shift button down and have it send a double mouse click, then do nothing until the left shift is released, then upon release, send a double cl Jul 8, 2012 · Hold Key for Key Sequence? - posted in Ask for Help: Im trying to find a script that will rapidly press 1, 2, 3 in sequence while holding the ` key. Jun 26, 2021 · Now i press Q+ key (lets say R) ( wich results in an action ) While im still holding CTRL y want to send SHIFT + R now ( or any key) Can we do something like (c::shift) = Release CTRL ( even if its still physically pressed & send SHIFT (so that i can still press another key to send shit+key) Jan 5, 2010 · (It will be in Up state until the next check of "yoda" aprox . if KeyToHoldDown ; There is a key to press down. So I need a script that can reliably hold the button pressed AND another button and work reliably even if that another button is pressed and released multiple times. What i got so far is Feb 2, 2015 · Press a letter key to hold "Space" repeating - posted in Ask for Help: Hello, I am trying to write some code (FYI beginner). Jan 27, 2012 · How to detect if a certain key is pressed and held down? - posted in Ask for Help: How to detect if a certain button is pressed and held down at the moment?For example:n:: [color=red]if o is pressed and being held down:[/color] msgbox, well send on because o is being held down at the moment else send n return Nov 14, 2017 · I dont want it to spam the second key, just press and hold it while i press and hold Alt. Apr 21, 2017 · I want a key to be pressed while I hold ctrl+mouseClick, but it only presses it once. Is there a way to improve the script to get the L/RButtons behave more like the arrow keys? Apr 9, 2022 · Action1 can run while Action2 is actively occurring. Apr 24, 2020 · Walden shows you how to make your AutoHotkey script while your keys are held down. It makes the clicks with the 1 , 2 and 3 keys at the keyboard, in inverse order (left click with the 3, as preserving left click with the index finger but of the other hand, trying to mirror Apr 21, 2017 · I want a key to be pressed while I hold ctrl+mouseClick, but it only presses it once. Nov 11, 2021 · If I press and release the key, I want the button to be pressed only once, but if I hold down the button for some time, I want the button to be repeated. The original method posted here was how I first learned. There can be a little delay between both pressed keys, this i dont mind. And when that Key is released mouse pointer would go back to its previous position. Joystick keys are not added yet (could not test them myself). Apr 8, 2012 · Toggle (Hold Down) a Key - posted in Ask for Help: I would like to be able to press a key on the keyboard once and have an autohotkey script hold that key down, until the keyboard key is pressed again to release it. I tried to do it myself but i only got it to either spam shift repeatedly or spam it once, but the f2 key became useless! Mar 13, 2018 · Use conditional hotkeys. Dec 3, 2012 · When a user presses a key the operating system (OS) interprets it as two distinct events, key-down and key-up. your code only tells it to press once and release once, so it does. All I know is how to stop a script by doing Esc::ExitApp . While I hold my UP Arrow down, it should continue to repeat that UP key press. Surely this is an easy edit to pause? Thanks again. Jan 9, 2013 · I am new to autohotkey and apologize for my lack of programming knowledge, but as stated in the title, I am trying to make it so while I hold down a certain key on my keyboard, the mouse will be held down at a certain location as well. Ive looked around and i cant find any script that does something like this, would be awesome if you can help me, fyi i need this for a game Aug 17, 2007 · that will press the spacebar once and hold it for a really long time. Oct 3, 2014 · Key Sequence While Key Held Down - posted in Ask for Help: This is my first time using AutoHotkey and Im having trouble getting this script to behave the way I want. But i'm having trouble setting up a script like I want it to. Also even after I let go of the mouse button the game still thinks I'm holding it down. Jan 24, 2013 · In the following hotkey, the mouse button is kept held down while NumpadAdd is ; down, which effectively transforms NumpadAdd into a mouse button. Some would hit the key when I initially click the mouse and didn't repeat. " AutoHotkey (v2, current version Dec 16, 2020 · I am new to AutoHotKey. While I hold my LEFT Arrow down etc. Automated Nitpicking: 2) Holding Down a Key / Autofire How to make a key "autofire" when a key is held down. Kinda ghetto but it works! comments sorted by Best Top New Controversial Q&A Add a Comment Nope it's only sending F3. Somewhere near the bottom are the key-down and key-up events for your key. While it does work, I later learned it can cause problems in a script. I understand something I did the script, but nothing happened, it did'nt refreshed with the keys when pressed f5, don't know if i did something wrong But anyway, It don't work with any modifier key, LShift, LAlt, LControl etc, with normal keys it works, both on notepad and the other software i tested. Please could you advise Sep 6, 2018 · See AutoHotkey help "List of Keys" if you want to add more keys. Mar 14, 2018 · Hello, i'm totaly new in this and i would like to create a script that would hold the Shift key anytime i would press and hold the z key. Dec 15, 2023 · return ; Do nothing. I would like the script to run SHIFT+ArrowUp and SHIFT+ArrowDown every time I press the key arrows respectively. Note that using "modifier" keys like ctrl alt shift might make other keys behave differently. The solution: is to have the script press and hold for 7 seconds, release, and immediately press and hold again, repeat to infinity until stopped. To only press (hold down) or release a key, enclose the key name in braces, followed by a space and then the word "down" or "up". What i got so far is Aug 2, 2015 · Spam right click while holding down a key - posted in Ask for Help: Hey, I need help with a script, i want a script that spams the right mouse button for the time im holding down the button b. Just to be clear: I want it to repeatedly send the 1 key input and not send the command to hold the 1 key down without typing anything. Send "{" KeyToHoldDown " down}" ; Press it down. To hold down or release a key: Enclose in braces the name of the key followed by the word Down or Up. This is actually the normal behavior for text editors (MS Windows Keyboard settings lets me change 'Repeat delay' and 'Repeat rate' to fine-tune this too. I tried to do it myself but i only got it to either spam shift repeatedly or spam it once, but the f2 key became useless! Dec 25, 2018 · I'm trying to create a macro that will hold SPACE for 3 seconds. Mar 13, 2018 · Use conditional hotkeys. ini file, then do something. My problem is, I want to Drag and Hold Left Mouse button and keep holding it as long as a Key is being pressed. Apr 9, 2022 · Action1 can run while Action2 is actively occurring. shift is held down Jul 20, 2019 · Re: Toggle: key press and key hold Post by kronos90 » Sat Jul 20, 2019 2:21 pm Rather than that using longer times (as I told before 50, or 100 or 500) the pressing in game become even slower. (Key 2, not numpad) while 2 is pressed { press 2 sleep 100ms } Help would be appreciated for example: i hold down the A key for any time (charachter is strafing left), while im holding down the A key i hit the D key too so it starts to strafe right but when i let the D key go it starts to move left again (Im still holding the A key). That is done differently. #If (GetKeyState("KEY", "P")) Write the hotkeys you want to be triggered only when the key is pressed down here, below #If getkeystate. Last couple of days, I have been looking for one script that suits my need but couldn't find anywhere. Pressing F2 will exit the script entirely. What I would like to do is the following: - Look for input ONLY while F12 key is held. - Version: Designed and tested in AutoHotkey v1. htesjsjgwhaqwskkbeomaothhawpmdixmrkvdigscetdkgtua