Clicks with random delay and unrecognizable pattern

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Insomnia
Posts: 15
Joined: 18 May 2016, 13:11

Clicks with random delay and unrecognizable pattern

18 May 2016, 13:31

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
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Clicks with random delay and unrecognizable pattern

18 May 2016, 15:07

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.
Insomnia
Posts: 15
Joined: 18 May 2016, 13:11

Re: Clicks with random delay and unrecognizable pattern

19 May 2016, 11:51

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
I made this and it seems to work because I see constant random clicks, but I can't tell if it's really following this pattern. Anyone care to confirm this code is good?
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Clicks with random delay and unrecognizable pattern

19 May 2016, 13:33

The hotkeys 8 and 9 are wrong, and the formatting is all over the place but it seem to work.

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
Edit: and always end a multilined hotkey with a return.
Please excuse my spelling I am dyslexic.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bhoot and 147 guests