I want to press End 100 times, with 1 second in between keypresses.
Setkeydelay doesn't work with Sendinput or Send.
I also want to implement key delay only for this line (instead of the entire script). How can I do it?
Delay between continuous keypresses? Topic is solved
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Re: Delay between continuous keypresses?
I personally would just work around the problem:
But I bet there's a fewer-line-consuming way somewhere, I just wouldn't know it because I have a very "spotty" AHK education/I started seriously learning AHK about four months ago.
Code: Select all
Loop, 100
{
Send, {End}
Sleep, 1000
}
Re: Delay between continuous keypresses? Topic is solved
Hallo,
with a Timer:
Hotkey line alternative:
with a Timer:
Code: Select all
$End Up::SetTimer, TEnd,% 10*TEnd:=100
TEnd:
Send, {End}
SetTimer,,% --TEnd?"On":"Off"
Return
Code: Select all
$End Up::SetTimer, TEnd, 1000,% TEnd:=100
- milkygirl90
- Posts: 565
- Joined: 10 Nov 2020, 21:22
Re: Delay between continuous keypresses?
Thank you! I'm using this in conjunction with an auto-paging script on Chrome. Is there a function on ahk I can use to detect the end of a webpage, so it will stop scrolling to the end/break script?
Who is online
Users browsing this forum: tar and 96 guests