Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[REQUEST]Easy spam script



  • Please log in to reply
6 replies to this topic
Tcc
  • Members
  • 6 posts
  • Last active: Apr 05 2015 07:13 AM
  • Joined: 21 Jul 2014

i want a script the spams spacebar

on/off - F3

activate - spacebar

 

so, if i hold down spacebar, the script has to spam spacebar.

if i turn it off by F3, i can hold spacebar down without the script acting.

 i hope you understand, thanks



Dilof
  • Members
  • 74 posts
  • Last active: Jun 28 2015 11:52 AM
  • Joined: 24 Jul 2014
✓  Best Answer
*f3::
    toggle := !toggle
    if (toggle) {
        SetTimer, Spam_Space, 10
    } else {
        SetTimer, Spam_Space, Off
    }
return

Spam_Space:
	SendInput {Space}
return

Change 

SetTimer, Spam_Space, 10

to suit your needs.

 

If the game doesn't register it, use this instead:

Spam_Space:
	SendInput {Space Down}
	sleep, 5
	SendInput {Space Up}
return


Tcc
  • Members
  • 6 posts
  • Last active: Apr 05 2015 07:13 AM
  • Joined: 21 Jul 2014

thanks, second one works better :D

cheers boss



Dilof
  • Members
  • 74 posts
  • Last active: Jun 28 2015 11:52 AM
  • Joined: 24 Jul 2014

Welcome, please make sure to hit Mark Solved on my post, so other people know it has been answered. ;)



Tcc
  • Members
  • 6 posts
  • Last active: Apr 05 2015 07:13 AM
  • Joined: 21 Jul 2014

and how do i make it spam space, but less times, like, only 2-3 times / second, more rarely



Dilof
  • Members
  • 74 posts
  • Last active: Jun 28 2015 11:52 AM
  • Joined: 24 Jul 2014

Change SetTimer, Spam_Space, 10.

This value is in milliseconds, so if you want space to be pressed twice a second, use SetTimer, Spam_Space, 500. ;)



Tcc
  • Members
  • 6 posts
  • Last active: Apr 05 2015 07:13 AM
  • Joined: 21 Jul 2014

so SetTimer, Spam_Space, 1 is the maximum of times it can be spammed?