Random repeat of keypress in specific range Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AndyRal123
Posts: 21
Joined: 10 Oct 2020, 12:32

Random repeat of keypress in specific range

Post by AndyRal123 » 17 Nov 2020, 05:15

Hello everyone,


I am working on script that needs random multiple keypress of the same button in the the specific range.
Specifically, to send random multiple right arrow keypresses in the range of 6.
So, one time it presses for ex. 2 times, another time maybe 5 times and so on.
I want to fire that action by hotkey below.

My script for only one right arrow:

Code: Select all

^3::
Send {Right}

I searched help site manual of autohotkey, checked forum and found nothing except random sleep or random interval between multiple keypress. BUT I need random multiple keypress. I would be grateful for any help with this guys. :headwall: :crazy:

thank You for autohotkey
cheers
w0z
Posts: 230
Joined: 19 Jun 2014, 08:21

Re: Random repeat of keypress in specific range  Topic is solved

Post by w0z » 17 Nov 2020, 06:29

Code: Select all

^3::
	Random, rnd, 1, 6
	ToolTip, Sended Right %rnd% time(s)
	Send, {Right %rnd%}
Return
If I was helpful consider Donate me. :beer: , plz :D
AndyRal123
Posts: 21
Joined: 10 Oct 2020, 12:32

Re: Random repeat of keypress in specific range

Post by AndyRal123 » 17 Nov 2020, 13:41

w0z wrote:
17 Nov 2020, 06:29

Code: Select all

^3::
	Random, rnd, 1, 6
	ToolTip, Sended Right %rnd% time(s)
	Send, {Right %rnd%}
Return
Great, I am truly grateful , simply put - this is it! :clap: :P ;)
Your response is very helpful , THANK YOU :))))))))

:)
Cheers
w0z
Posts: 230
Joined: 19 Jun 2014, 08:21

Re: Random repeat of keypress in specific range

Post by w0z » 17 Nov 2020, 14:19

What do you mean?:
AndyRal123 wrote:
17 Nov 2020, 13:41
How can I return ? :)
Cheers
If I was helpful consider Donate me. :beer: , plz :D
AndyRal123
Posts: 21
Joined: 10 Oct 2020, 12:32

Re: Random repeat of keypress in specific range

Post by AndyRal123 » 17 Nov 2020, 22:13

w0z wrote:
17 Nov 2020, 14:19
What do you mean?:
AndyRal123 wrote:
17 Nov 2020, 13:41
How can I return ? :)
Cheers
I am new to forum, and maybe there are some ways we can thank each other.
Post Reply

Return to “Ask for Help (v1)”