Hello i just want a script that press m1's continuously + press space in random time (maybe 1-3 times) between to prevent afk and i want a pause button
I complete dumb in scripting and trying to do this for a hour already but my anger issues wont let that slide
i was trying to make a code from few pieces but it just broking few times i had to relaunch my pc because pause button brokes and i cannot stop the script
Help with the script
-
- Posts: 1
- Joined: 05 Aug 2023, 22:59
Re: Help with the script
You can use this to start and stop with one key. And for real even if you are noob, autohotkey has such good documentation for your random example go on https://ahkde.github.io/docs/v1/lib and type random in the search box, everything needed most of the time with examples on the bottom you find there.
What are m1's?
What are m1's?
Code: Select all
SetTimer Click, 1000
F8::Toggle := !Toggle
Click:
if (!Toggle)
return
;YOUR CODE HERE
Random, number, 1, 100 ; random ms to be used by sleep
sleep %number% ; sleeps randomly 1-100 ms
return