How do i run on keydown

Ask gaming related questions (AHK v1.1 and older)
Thunderb
Posts: 2
Joined: 11 May 2024, 02:28

How do i run on keydown

11 May 2024, 02:38

Is it possible to run something simple on keydown? Ideally beginning on a keydown input and ending a short while later, no code for keyup, i want to be able to do a quick action in a game a few times with just a single press down.
The game is called "ULTRAKILL" - quite a fast paced game and having to do the full key down and up is messing up timing


[Mod action: Moved topic to the “Gaming” section.]
Rohwedder
Posts: 7718
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How do i run on keydown

11 May 2024, 10:18

Hallo,
apart from Control::, Alt:: and Shift:: all simple Hotkeys are triggered on keydown input.
I.e. what you want is the default.

Code: Select all

q::SoundBeep ; triggered on keydown input
Control::SoundBeep ; triggered on keyup input
Does "ULTRAKILL" also help against real-life mosquitoes?
Thunderb
Posts: 2
Joined: 11 May 2024, 02:28

Re: How do i run on keydown

12 May 2024, 03:54

oh, i was trying to bind the hotkey to Alt::, that makes sense, thanks, is there any way i can use it with alt?
I dont think ULTRAKILL is gonna help with mosquitoes
Rohwedder
Posts: 7718
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How do i run on keydown

12 May 2024, 05:42

Then:

Code: Select all

LAlt::SoundBeep ; left Alt Key: triggered on keydown input
RAlt::SoundBeep ; right Alt Key: triggered on keydown input

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Rohwedder and 39 guests