Help with the script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
INeedMorePower
Posts: 1
Joined: 05 Aug 2023, 22:59

Help with the script

05 Aug 2023, 23:15

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
Master_X
Posts: 33
Joined: 04 Aug 2023, 13:59

Re: Help with the script

06 Aug 2023, 04:58

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?

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Google [Bot], Mateusz53, Mufkatar, Spawnova, wilkster and 172 guests