Jump to content
  • 0

Spammer


Splawsh

Question

Posted

Hi friend  

I want spam a text in a alert page (gg.alert)

But I don't know how fix [gg.alert(text*number)]

I use of gg.prompt ::

cfg = gg.prompt({"Type your text Here","number of repeat"," new line","space"},nil,{'text' ,'number','checkbox','checkbox'})

tx = ''..cfg[1]..''

num = ''..cfg[2]..''

but how repeat text to some numbers?

 

****[Tel•ID]****

and question 2). Is a code to paste copied text??

3 answers to this question

Recommended Posts

Guest ATP-RAY2OP
Posted

 

On 4/27/2020 at 8:49 AM, Splawsh said:

Thanks you bro 👌

I made a spammer but it was Ridiculous

see my source😂😂😂

 do not laugh at me👌😂

spammer.lua 1.5 kB · 3 downloads

Well spamming a toast message is most annoying thing, so you can try this

 

function toast(text, repeats)       text=text.. "   "   for i=1,repeats do  gg.setVisible(false)   str=""     for i=1, string.len(text) do    str=str.. string.sub(text,i,i)    gg.toast("\n".. str)     gg.sleep(250)   end  end end  Message ="TRY THIS" --take input from user  Times=5        --take input from user  toast (Message, Times)

toast.lua

Posted
On 4/25/2020 at 6:29 AM, Splawsh said:

I want spam a text in a alert page (gg.alert)

If "spam a text" means "repeat text certain amount of times", then you need to:

1. construct string in which desired text is repeated desired amount of times;
2. pass it as argument to "alert" function.

First step can be done using loop or "string.rep" function. Examples:

-- Using loop
local str = ''
for i = 1, 10 do
  str = str .. 'text to repeat\n'
end
-- Using string.rep function
local str = string.rep('text to repeat\n', 10)

Second step is just to call "alert" function and pass constructed string to it as argument. Example:

gg.alert(str)
On 4/25/2020 at 6:29 AM, Splawsh said:

and question 2). Is a code to paste copied text??

No, there is no function for pasting clipboard contents in GG API, because it's not something that is needed (or even applicable) for GG scripts. And after all, you can paste copied text to text fields manually.

Posted
16 hours ago, CmP said:

If "spam a text" means "repeat text certain amount of times", then you need to:

1. construct string in which desired text is repeated desired amount of times;
2. pass it as argument to "alert" function.

First step can be done using loop or "string.rep" function. Examples:


-- Using loop
local str = ''
for i = 1, 10 do
  str = str .. 'text to repeat\n'
end

-- Using string.rep function
local str = string.rep('text to repeat\n', 10)

Second step is just to call "alert" function and pass constructed string to it as argument. Example:


gg.alert(str)

No, there is no function for pasting clipboard contents in GG API, because it's not something that is needed (or even applicable) for GG scripts. And after all, you can paste copied text to text fields manually.

Thanks you bro 👌

I made a spammer but it was Ridiculous

see my source😂😂😂

 do not laugh at me👌😂

spammer.lua

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.