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
I Want Simple Script Topic is solved
-
- Posts: 3
- Joined: 23 Jul 2021, 17:58
Re: I Want Simple Script Topic is solved
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
-
- Posts: 3
- Joined: 23 Jul 2021, 17:58
Re: I Want Simple Script
Thanks Workmikeyww wrote: ↑24 Jul 2021, 07:34Code: 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
-
- Posts: 3
- Joined: 23 Jul 2021, 17:58
Re: I Want Simple Script
can be more fast in typing e 10 times
more fast
there are msg tell me 1000ms
i want 1ms
more fast
there are msg tell me 1000ms
i want 1ms
Re: I Want Simple Script
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