Hold down a key

Solved
mimigenie Posted messages 1180 Registration date   Status Member Last intervention   -  
 bruno -
Hello,

I would like a small program to hold down a key (the up arrow) for an online game.

I found a code that might do that, but I don't know how to use it.

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput?redirectedfrom=MSDN

So if you have some code and an explanation to make it work, please help me out.

Thanks in advance.

Configuration: Acer laptop running Windows 7

--
Forums are made to find answers, but search engines are too.

3 answers

  1. AsmManiac Posted messages 18 Status Member
     
    Hi,

    First, you need to know which programming language you are familiar with, since it's a function of the Windows API and can be used in almost any language (I'm thinking of Basic and C/C++).

    Best regards.
    0