Search found 5 matches

by sSsSss
23 Jun 2021, 09:03
Forum: Ask for Help (v1)
Topic: Holding the key for a time
Replies: 8
Views: 2933

Re: Holding the key for a time

Rohwedder wrote: Hallo,
then perhaps:

Code: Select all

j::
SendMode, Event
SetKeyDelay,, 20
Loop, 5
	Send, {1 Down}
Send, {1 Up}
Return
thank you, working! how can i set the key hold time?
by sSsSss
23 Jun 2021, 02:42
Forum: Ask for Help (v1)
Topic: Holding the key for a time
Replies: 8
Views: 2933

Re: Holding the key for a time

braunbaer wrote:
sSsSss wrote:
22 Jun 2021, 14:11
I wanted the key to be holded for a 100 millisecond for example, but not just pressed with 100 milliseconds sleep
I don't understand what you mean. What is the difference between "holding" the key and "pressing" the key for 100ms?
for example PRESSING is 1. holding is 1111111111111111111111
by sSsSss
22 Jun 2021, 14:11
Forum: Ask for Help (v1)
Topic: Holding the key for a time
Replies: 8
Views: 2933

Re: Holding the key for a time

grantmartin2002 wrote:

Code: Select all

j::
Send {1 down}
Sleep 100
Send {1 up}
return
Thanks for your help! But this is a bit different from what I wanted. I wanted the key to be holded for a 100 millisecond for example, but not just pressed with 100 milliseconds sleep
by sSsSss
22 Jun 2021, 12:24
Forum: Ask for Help (v1)
Topic: Holding the key for a time
Replies: 8
Views: 2933

Holding the key for a time

Hello. I need a script that can hold key 1 (not numpad), but after a certain time (for example, 100 milliseconds) would release.

Ideally, a structure like this:
I click on the key J, and the key 1 is held down for 100 ms, and so that the action can be repeated.

Is that possible?
by sSsSss
22 Jun 2021, 12:17
Forum: Помощь
Topic: Удержание клавиши на время
Replies: 3
Views: 11595

Удержание клавиши на время

Здравствуйте. Нужен скрипт который по нажатию на клавишу начинал удерживать клавишу 1 (не нумпад), а через определенное время (к примеру 100 миллисекунд) отпускал бы. В идеале структура такая: Нажимаю на клавишу J, и зажимается клавиша 1 на 100 мс, и что бы действие можно было повторить. Такое возмо...

Go to advanced search