Help to to make this idea work Topic is solved

Ask gaming related questions (AHK v1.1 and older)
grandson
Posts: 13
Joined: 11 Oct 2020, 14:16

Help to to make this idea work

14 Apr 2021, 07:25

Guys I need a script that works like this, when I press the key (number 2) the script also sends keys 3, 4 and 5, but I need a delay with random values ​​between 34ms to 75ms something like this :


Code: Select all

~ 2 ::
{
send {3} {Random% Sleep},
send {4} Random% Sleep},
send {5} Random% Sleep},
}
return
Last edited by BoBo on 14 Apr 2021, 09:54, edited 1 time in total.
Reason: Moved to Gaming section.
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Help to to make this idea work  Topic is solved

14 Apr 2021, 07:44

Code: Select all

~2::randy(3), randy(4), randy(5)

randy(key) {
 Random, rand, 34, 75
 SetKeyDelay, rand
 Send %key%
}
grandson
Posts: 13
Joined: 11 Oct 2020, 14:16

Re: Help to to make this idea work

14 Apr 2021, 07:46

mikeyww wrote:
14 Apr 2021, 07:44

Code: Select all

~2::randy(3), randy(4), randy(5)

randy(key) {
 Random, rand, 34, 75
 SetKeyDelay, rand
 Send %key%
}
wonderful, thank you very much!

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 81 guests