I have always used autoIt for windows for this but i need to do it on ubuntu or centOS now. Basicly what i want is to send an mouseclick or button after an randomized time example:
~
HotKeySet("{ESC}", "Terminate") ; hotkey for stopping script
While 1
Sleep(Random(120000, 180000)) ;waits random between 2 and 3 minutes before sending a left mouse click
MouseClick("Left")
Sleep(Random(60000, 120000)) ; wait random between 1 and 2 minutes to send O
Send("O")
Sleep(Random(10000, 20000)) ; waits random between 10 and 20 seconds to send a left mouse click
MouseClick("Left")
WEnd
Func Terminate()
Exit
EndFunc
~
is there an program wich can do this? i have looked around but i couldn't find something i can understand. Thanks in advance
~ #!/bin/bash while [ 1 ]; do xdotool click 1 & sleep $ echo $((60 + RANDOM % 120)) done ~ ?
– RapidGainz May 17 '19 at 12:59echo
will print the value, you want to add it directly to sleep:sleep $((60 + RANDOM % 120));
. – pLumo May 17 '19 at 13:07