Roblox afk script

Ask gaming related questions (AHK v1.1 and older)
lovistovis
Posts: 4
Joined: 10 Feb 2018, 06:12

Roblox afk script

10 Feb 2018, 06:36

Hi, I'm new to ahk and I have been searching for any script the can send a space then and then to Roblox player when it's not focused,
but I can't seem to make it work this is my script:

Code: Select all

#z::
Loop
{
Send {Space down}  ; Press down the Space key.
Sleep 1000  ; Keep it down for one second.
Send {Space up}  ; Release the Space key.
Sleep 1000  ;
}
I made it have to be focused because it didn't work the first time. (I used ControlSend before)
Any help will be super helpful because this game is a lot harder if you don't wait a long time. (like 10h!)
Please help.
Guest

Re: Roblox afk script

12 Feb 2018, 00:45

Why do you need it to sleep in between pressing and letting go of space?

Also, what doesn't work? It just doesn't do anything or does it give an error?

I just recommend using a toggle like what you have, something like,

Code: Select all

Pause On ; This is kind of a toggle, this was tested and adds a space in notepad every second
#z:: ; Remove this should you want to use the toggle (pause) function
loop
{
send, {space}
sleep, 1000
}

#z::Pause ; Now every time you press windows key and Z, it should toggle the script (Pause)
esc::Exitapp ; Just so you can exit the hotkey, or you could use the pause function
lovistovis
Posts: 4
Joined: 10 Feb 2018, 06:12

Re: Roblox afk script

14 Feb 2018, 05:11

It still does nothing at all.
I have no idea what is wrong.
lovistovis
Posts: 4
Joined: 10 Feb 2018, 06:12

Re: Roblox afk script

14 Feb 2018, 05:12

PS: Thx for replying!
lovistovis
Posts: 4
Joined: 10 Feb 2018, 06:12

Re: Roblox afk script

14 Feb 2018, 05:23

It w o r ks wer y we ll th x s oo m ush it s wery h ard typ ing
aUTOhotkeyUser

Re: Roblox afk script

14 Jun 2018, 14:48

Code: Select all

Pause On ; This is kind of a toggle, this was tested and adds a space in notepad every second
#z:: ; Remove this should you want to use the toggle (pause) function
loop
{
send, {space}
sleep, 1000
}

#z::Pause ; Now every time you press windows key and Z, it should toggle the script (Pause)
esc::Exitapp ; Just so you can exit the hotkey, or you could use the pause function 
[Mod edit: [code][/code] tags added.]



IT DINIT WORK :(
aurafyyy
Posts: 1
Joined: 30 Oct 2020, 00:52

Re: Roblox afk script

30 Oct 2020, 00:56

aUTOhotkeyUser wrote:
14 Jun 2018, 14:48
Pause On ; This is kind of a toggle, this was tested and adds a space in notepad every second
#z:: ; Remove this should you want to use the toggle (pause) function
loop
{
send, {space}
sleep, 1000
}

#z::Pause ; Now every time you press windows key and Z, it should toggle the script (Pause)
esc::Exitapp ; Just so you can exit the hotkey, or you could use the pause function



IT DINIT WORK :(
the 2nd version doesn't work, but I just added the same pause function to the first if u wanna use this

Code: Select all

Pause On ;
Loop
{
Send {Space down}  ; Press down the Space key.
Sleep 1000  ; Keep it down for one second.
Send {Space up}  ; Release the Space key.
Sleep 1000  ;
}

#z::Pause ; Now every time you press windows key and Z, it should toggle the script (Pause)
esc::Exitapp ; Just so you can exit the hotkey, or you could use the pause function

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 67 guests