Page 1 of 1

Randomizer - script?

Posted: 21 Feb 2020, 09:49
by sterger7
So....now some games (cough blizzarD) are trying to dish out suspensions for using a hotkey script in battlegrounds to keep you from afking out. I'm sure they're detecting identical keystrokes happening over and over to do it.

That being said, is there a real simpyl/easy randomizer script? Somethign that will take x number of keys (like 1-9) and just randomize which one it does every 2-4 minutes or whatever?

Re: Randomizer - script?

Posted: 21 Feb 2020, 12:57
by Xtra
Leeching off of others work is unacceptable.
Play the game not ruin it.

Re: Randomizer - script?

Posted: 21 Feb 2020, 13:52
by sterger7
Looking for a way to randomize what the script sends. Didn't need game conduct commentary.

Re: Randomizer - script?

Posted: 01 Mar 2020, 14:16
by Chunjee
are you talking about randomizing sleep time between key presses? simply sleep a random {{x}} time? Needs a little more info.

Here is a script that takes some sets of buttons to press and randomly chooses which ones to do:

Code: Select all

A := new biga() ;REQUIRES https://www.npmjs.com/package/biga.ahk

keycombos := [ ["1","2","{Enter}"]
            ,  ["2", "4", "6"]
            ,  ["7", "2", "3"]
            ,  ["9", "8", "7"]]

; choose a random set to perform
randomSelection := A.sample(keycombos)

; perform that selection with a 1-200 millisecond delay between keys
loop, % randomSelection.Count() {
    SendInput, % randomSelection[A_Index]
    Sleep, % A.random(1,200)
}

Blizzard is pretty big so you may need more than 5 mins of effort to evade their banhammer