help to make clicks more random?

Ask gaming related questions
milo
Posts: 3
Joined: 15 Apr 2016, 12:47

help to make clicks more random?

15 Apr 2016, 13:10

Currently using this code. I would like to vary clicks so they're more random and human looking - between 250-350 (currently 300). I'm noobie so any help appreciated.

Code: Select all

!LButton::
loop, 5
{
send {Lbutton}
Sleep, 300
}
return
User avatar
HinkerLoden
Posts: 93
Joined: 23 Mar 2016, 07:50
GitHub: HinkerLoden

Re: help to make clicks more random?

15 Apr 2016, 14:59

use random function or 2 combine 2

Sleep, % Random(Min,Max)

R1:=Random(Min,MaX);250,300
R2:=Random(MinSpread,MaxSpread);50-100

Rand:=R1 - R2

Think i wrote a function so you can use for every Sleep randomtime you only have to define in a min and max time. Can do the same with the clicks or the mousemovement
milo
Posts: 3
Joined: 15 Apr 2016, 12:47

Re: help to make clicks more random?

15 Apr 2016, 15:18

I'm not expert, should the code look something like this:

!LButton::
loop, 5
{
send {Lbutton}
Sleep, % Random(Min,Max)

R1:=Random(Min,MaX);250,300
R2:=Random(MinSpread,MaxSpread);50-100

Rand:=R1 - R2
}
return
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: help to make clicks more random?

15 Apr 2016, 15:19

Code: Select all

$!LButton::
loop, 5
{
    send {Lbutton}
    Random, x, 250, 350
    Sleep, %x%
}
return
milo
Posts: 3
Joined: 15 Apr 2016, 12:47

Re: help to make clicks more random?

15 Apr 2016, 17:35

Thanks kon and Hinker,

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 13 guests