Splawsh Posted April 25, 2020 Posted April 25, 2020 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??
Guest ATP-RAY2OP Posted April 29, 2020 Posted April 29, 2020 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
CmP Posted April 26, 2020 Posted April 26, 2020 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.
Splawsh Posted April 27, 2020 Author Posted April 27, 2020 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
Question
Splawsh
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
Archived
This topic is now archived and is closed to further replies.