Page 1 of 1
Random time by 5-10% of executing sript
Posted: 28 Jan 2022, 14:53
by nattx
Hello! I'm looking for help with below script to randomize time by 5-10% each time when I trigger it. I don't want to end up always with the same times on each key.
Spoiler Code: Select all
F1::
SetMouseDelay, 0
SetKeyDelay, 0
SetDefaultMouseSpeed, 0
MouseGetPos, StartX, StartY
MouseMove 759,476
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 762,403
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 832,403
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 905,403
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 905,476
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 906,550
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 831,549
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 759,549
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove 833,480
Send {Shift down}{RButton down}
KeyWait, End
Send {RButton up}
Send {Shift up}
MouseMove, StartX, StartY
return
Are those lines providing me diffrent time of each triggered script or just minimal delay on mouse/key click but always the same?
Code: Select all
SetMouseDelay, 0
SetKeyDelay, 0
SetDefaultMouseSpeed, 0
I will be gratefull for every help, thanks in advance!
Re: Random time by 5-10% of executing sript
Posted: 28 Jan 2022, 15:07
by mikeyww
If you want to randomize something, then you could use
Random .