I Want Simple Script Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
da3chouchi
Posts: 3
Joined: 23 Jul 2021, 17:58

I Want Simple Script

23 Jul 2021, 18:10

I Want Script When I Press E
i want the e press 10 times in 1 secends
when i press e i want see in notepadd eeeeeeeeee
sorry for bad english
i want like this
https://www.youtube.com/watch?v=SZko9hG6aoE&t=96s&ab_channel=B1GMANSHOP
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: I Want Simple Script  Topic is solved

24 Jul 2021, 07:34

Code: Select all

$e::
start := A_TickCount, duration := 25
SetKeyDelay, 0, %duration%
Loop, 10 {
 Send e
 left := 10 - A_Index, w := (996 - A_TickCount + start - duration * left) / left
 Sleep, w && A_Index < 10 ? w : 0
}
end := A_TickCount
MsgBox, 64, Time elapsed, % end - start " ms"
Return
da3chouchi
Posts: 3
Joined: 23 Jul 2021, 17:58

Re: I Want Simple Script

24 Jul 2021, 09:24

mikeyww wrote:
24 Jul 2021, 07:34

Code: Select all

$e::
start := A_TickCount, duration := 25
SetKeyDelay, 0, %duration%
Loop, 10 {
 Send e
 left := 10 - A_Index, w := (996 - A_TickCount + start - duration * left) / left
 Sleep, w && A_Index < 10 ? w : 0
}
end := A_TickCount
MsgBox, 64, Time elapsed, % end - start " ms"
Return
Thanks Work :D
da3chouchi
Posts: 3
Joined: 23 Jul 2021, 17:58

Re: I Want Simple Script

24 Jul 2021, 09:40

can be more fast in typing e 10 times
more fast
there are msg tell me 1000ms
i want 1ms
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: I Want Simple Script

24 Jul 2021, 22:46

Your request was "want the e press 10 times in 1 secends". If you need different timing, you can alter the sleep according to whatever number of milliseconds you want. Another example is below.

Code: Select all

$e::
start := A_TickCount
SendInput {e 10}
end := A_TickCount
MsgBox, 64, Time elapsed, % end - start " ms"
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy and 273 guests