Hi, I wanted to make a simple code which makes mouse left click automatically with random delay, but with random pattern each time. I'm very new to coding so I'll just try to explain this as clearly as possible.
I want to make random variable which changes its value every loop(click), the value on this variable determines on which random delay the click will be performed.
For example
variable1 equals random number from 100 to 80000
if random number is from 100 to 35000, then click will be performed on random delay 0.2s to 2.8s
if random number is from 35000, then click will be performed on random delay 2.8s to 3.6s
and so on
basically I want to make constant clicking seem like it's human clicking
Also I am wondering if it's possible make delay between clicks be on accuracy of 0.0001s instead of 0.1 for example.
If anyone could provide a template for this or any help at all I would be thankful
P.S sorry for my terrible english
Clicks with random delay and unrecognizable pattern
Re: Clicks with random delay and unrecognizable pattern
Try this.
Code: Select all
loop {
Random, num, 100, 80000
if(num < 35000){
Random, delay, 200, 2800
} else {
Random, delay, 2800, 3600
}
Sleep, %delay%
Click
}
Please excuse my spelling I am dyslexic.
Re: Clicks with random delay and unrecognizable pattern
Code: Select all
4::
loop {
Random, num, 100, 80000
if(num < 35000){
Random, delay, 234, 289
} else if(num>=35000 && num<50000){
Random, delay, 156, 356
} else if(num>=50000 && num<79982){
Random, delay, 198, 304
} else{
Random, delay, 1452, 30554
}
Sleep, %delay%
Click
}
9::
Pause
8::
ExitApp
Re: Clicks with random delay and unrecognizable pattern
The hotkeys 8 and 9 are wrong, and the formatting is all over the place but it seem to work.
Edit: and always end a multilined hotkey with a return.
Code: Select all
4::
loop {
Random, num, 100, 80000
if(num < 35000){
Random, delay, 234, 289
} else if(num >= 35000 && num < 50000){
Random, delay, 156, 356
} else if(num >= 50000 && num < 79982){
Random, delay, 198, 304
} else {
Random, delay, 1452, 30554
}
Sleep, %delay%
Click
}
return
9::Pause
8::ExitApp
Please excuse my spelling I am dyslexic.
Who is online
Users browsing this forum: bhoot and 147 guests