Making a key press at random times.
-
- Posts: 2
- Joined: 26 Jun 2022, 07:25
Making a key press at random times.
I need help making the 1 key press at random times between 1 and 30 seconds, thanks.
Re: Making a key press at random times.
Welcome to this AutoHotkey forum!
Code: Select all
Loop {
Send 1
Random rnd, 990, 29990
Sleep, rnd
}
-
- Posts: 2
- Joined: 26 Jun 2022, 07:25
Re: Making a key press at random times.
Thanks for the help, if it isn't any trouble, is there a way I can make it press either !1, !2, !3, or !4? I want it to be a random choice
Re: Making a key press at random times.
Code: Select all
Loop {
Random, key, 1, 4
Send !%key%
Random, rnd, 990, 29990
Sleep, rnd
}