how to send same key 3 times with SendInput?

Ask gaming related questions
jlodvo
Posts: 24
Joined: 24 Sep 2023, 19:53

how to send same key 3 times with SendInput?

14 Dec 2023, 03:03

hello im using sendtime to time a input key, is thier a way to modify the send input to spam a key like 3-4 times with a delay heres the scrip im using but only send one key at a time, basically i want to control how may key's it press at a time

Code: Select all

XButton1::SetTimer(SendEnd, 10000)
XButton1 up::SetTimer(SendEnd, 0)
F11::SetTimer(SendEnd, 10000)
F12::SetTimer(SendEnd, 0)

#HotIf
SendEnd() => Send('{End}')
jlodvo
Posts: 24
Joined: 24 Sep 2023, 19:53

Re: how to send same key 3 times with SendInput?

14 Dec 2023, 04:50

how to make send press the "end" button multiple times?
User avatar
boiler
Posts: 17706
Joined: 21 Dec 2014, 02:44

Re: how to send same key 3 times with SendInput?

14 Dec 2023, 07:38

Please don’t bump your thread after not even a couple hours. And don’t post the same question in multiple threads,
jlodvo
Posts: 24
Joined: 24 Sep 2023, 19:53

Re: how to send same key 3 times with SendInput?

14 Dec 2023, 21:18

oh sorry i thought one of the message didnt post had internet issue when i posted it gave a error , maybe isp issue
niCode
Posts: 335
Joined: 17 Oct 2022, 22:09

Re: how to send same key 3 times with SendInput?

15 Dec 2023, 02:24

You can change the function to something like this:

Code: Select all

SendEnd() {
    SetKeyDelay(150)
    SendEvent('{End 4}')
}
When the timer goes off and calls the function, it Sends 4 Ends spaced 150ms apart. Obviously change the values to what you need.

Return to “Gaming Help (v2)”

Who is online

Users browsing this forum: vanove and 7 guests