Page 1 of 1

How do i run on keydown

Posted: 11 May 2024, 02:38
by Thunderb
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.]

Re: How do i run on keydown

Posted: 11 May 2024, 10:18
by Rohwedder
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?

Re: How do i run on keydown

Posted: 12 May 2024, 03:54
by Thunderb
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

Re: How do i run on keydown

Posted: 12 May 2024, 05:42
by Rohwedder
Then:

Code: Select all

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