Random names out of a file

onepfa

New member
Good day i need again something special

I have a txt file which includes 19000 random names and i need out of them everytime the macro runs a new pick from the txt file to paste into a form

I have set up the path but now i dont know what to do next
To get a random name and to paste it into a form


 

FrameXX

Well-known member
You first need to know how to separate one name from others with regex, without actually using any part of that name (because every name is else). That might be hard when names are separated only by a new line, but I think it should be possible, however not with my knowledge of regex.
 

onepfa

New member
You first need to know how to separate one name from others with regex, without actually using any part of that name (because every name is else). That might be hard when names are separated only by a new line, but I think it should be possible, however not with my knowledge of regex.
What would be better to seperate? I have read something befor i posted this thread like this https://www.macrodroidforum.com/index.php?threads/send-a-random-concise-word.555/
But i dont get into it how it works
I need a step by step what i have to add
 

MacroDroidDev

Administrator
Staff member
I think the general approach would be something along the lines of generate a random number between 1 - 19,000 into a variable using the set variable action.

Then you will need some kind of regex that will find the nth token (where n is the random number) using the text/string manipulation action in MacroDroid. Unfortunately I'm not a regex guru myself but I'm sure there must be some way to do it detecting elements between new lines.
 

FrameXX

Well-known member
I think I found the right the right regex

(.*)(?=(\n.*){2}$)

Just replace the number '2' with random number you generated.

Use option extract > first match

You can try simple macro I created


Website I found solution on.
 
Last edited:

Dm114

Well-known member
I think I found the right the right regex

(.*)(?=(\n.*){2}$)

Just replace the number '2' with random number you generated.

Use option extract > first match

You can try simple macro I created


Website I found solution on.
Be careful, as far as I know, it seems that the number (2 in your example) is limited to 9!
 

onepfa

New member
I think I found the right the right regex

(.*)(?=(\n.*){2}$)

Just replace the number '2' with random number you generated.

Use option extract > first match

You can try simple macro I created


Website I found solution on.
Thanks

But now i dont know how to complete the work to let it be paste into the form

I have added it like this i dont know if this is right

 

FrameXX

Well-known member
Thanks

But now i dont know how to complete the work to let it be paste into the form

I have added it like this i dont know if this is right

Paste option is under UI interaction.

You are propably going to need to generate random from 0 - 18999, not a 1 - 10.
 
Last edited:

FrameXX

Well-known member
Be careful, as far as I know, it seems that the number (2 in your example) is limited to 9!
Ouch!

I tryed and there seems to be no problem I just need to start from 0 and end on number lower by 1 than number of all names. That means 0 - 18999 for @onepfa.
 
Last edited:

tanutanu

Well-known member
Good day i need again something special

I have a txt file which includes 19000 random names and i need out of them everytime the macro runs a new pick from the txt file to paste into a form

I have set up the path but now i dont know what to do next
To get a random name and to paste it into a form


I would like to give warning again:(

Stop involving the innocent, faithful and trustworthy guys unless you declared you NEVER dare to violate any laws or any T&Cs, and NEVER invade any rights of any parties. Around 20K unique strings are super beyond the personal use.
The company and artists have valid reason to earn profits. You should not do exploiting or cheating. Don't skim money relying on others' help.

Furthermore, I afraid such a giant company put pressure on Google to limit the OS basic features. It widespreadly affects not only total amount of an indie developer's effort and his income but also users' benefits. It is the same things as a burglar doing.
I never understand and accept even if we have the difference of social, civic and information literacies. I really hope it my misunderstandings.
 

onepfa

New member
Ich möchte noch einmal warnen:(

Hören Sie auf, die unschuldigen, treuen und vertrauenswürdigen Leute einzubeziehen, es sei denn, Sie haben erklärt, dass Sie es NIEMALS wagen, Gesetze oder AGB zu verletzen und NIEMALS in die Rechte irgendeiner Partei einzudringen. Rund 20.000 einzigartige Saiten sind über den persönlichen Gebrauch hinaus super.
Das Unternehmen und die Künstler haben triftige Gründe, Gewinne zu erzielen. Sie sollten nicht ausbeuten oder betrügen. Sparen Sie kein Geld ab, indem Sie sich auf die Hilfe anderer verlassen.

Außerdem befürchte ich, dass ein so riesiges Unternehmen Druck auf Google ausübt, die grundlegenden Funktionen des Betriebssystems einzuschränken. Es wirkt sich weit verbreitet nicht nur auf den Gesamtaufwand eines Indie-Entwicklers und sein Einkommen aus, sondern auch auf die Vorteile der Benutzer. Es ist das Gleiche wie bei einem Einbrecher.
Ich verstehe und akzeptiere nie, selbst wenn wir den Unterschied zwischen sozialer, staatsbürgerlicher und Informationskompetenz haben. Ich hoffe wirklich, dass es meine Missverständnisse sind.
Sorry for your miss understanding of my needs
Its only for personal use most things i need are for my own websites i have to stress test them i input easy apps or apps everyone knows or already knstalled to get faster answers after i recode them for my personal apps tio use to test and to stop such activity on my own cloud,store.

Scammers ripped much money out of my pocket with this methods so i need to stop it and i need to know how i can stop it.

Thank for your understanding

Now the best solution for this here is yotube music because there are 2 name fields and they have to be random also the month day year of birth and male or female if i recode it to my custom cloud form i can grab my needing out of this and i have all informations in one makro to copy and past to my needings.
 

tanutanu

Well-known member
Sorry for your miss understanding of my needs
Its only for personal use most things i need are for my own websites i have to stress test them i input easy apps or apps everyone knows or already knstalled to get faster answers after i recode them for my personal apps tio use to test and to stop such activity on my own cloud,store.

Scammers ripped much money out of my pocket with this methods so i need to stop it and i need to know how i can stop it.

Thank for your understanding

Now the best solution for this here is yotube music because there are 2 name fields and they have to be random also the month day year of birth and male or female if i recode it to my custom cloud form i can grab my needing out of this and i have all informations in one makro to copy and past to my needings.
OK, that's a relief:)
I'm very sorry for my misunderstandings. I really want to hear the words to deny my suspicions crystal clearly because I want to believe nobody do so in this forum.
However, some are doing actually. Take a look at the chaotic macro store. It is flooded by a bunch of auto pilot macros:( I have experiences to write codes to fight against a bunch of Chinese farmers in my commercial base virtual worlds in those days. That's nightmares:( That's why I hate such a scam.
 

tanutanu

Well-known member
Sorry for your miss understanding of my needs
Its only for personal use most things i need are for my own websites i have to stress test them i input easy apps or apps everyone knows or already knstalled to get faster answers after i recode them for my personal apps tio use to test and to stop such activity on my own cloud,store.

Scammers ripped much money out of my pocket with this methods so i need to stop it and i need to know how i can stop it.

Thank for your understanding

Now the best solution for this here is yotube music because there are 2 name fields and they have to be random also the month day year of birth and male or female if i recode it to my custom cloud form i can grab my needing out of this and i have all informations in one makro to copy and past to my needings.
So, what kind of products are you selling on your online store? I don't consider 20K unique account strings for testing is defined as " personal use" though...OK, it wound be a difference of culture or different set of values.

If you have your own cloud, there are a lot of implementable techniques to slow down such brute force attackings, and it's easy to write a macro to check up, if you are a professional. If you can't, the heart of the problem is that the way of your store operation itself is unsuitable for you.
I can't still agree to talking about a part of "attacking tips" in public space even if you don't mean to do so.
 
Last edited:

onepfa

New member
It dont need to be professional i always hire some freelancer but i also want to lern something about automation.
I dont agree that a list of 20k or even 1k of different things are not for private use.
It dont needs to be such big but good to know if this is possible to do.
The question could also be how can i get a random outcome of a given list of text path. Can be used for a lottery or something other to get out a random number of 50 numbers.

By the way im selling cryptos since 4 years.
The cloud is in the really beginning servers are set up and the storage is now near to 1PB ready to be filled by users.

If i could hire a freelancer who knows about macrodroid i would do but there are no one who can fill my requiremts so i have to do it myself and to ask here.
 

tanutanu

Well-known member
It dont need to be professional i always hire some freelancer but i also want to lern something about automation.
I dont agree that a list of 20k or even 1k of different things are not for private use.
It dont needs to be such big but good to know if this is possible to do.
The question could also be how can i get a random outcome of a given list of text path. Can be used for a lottery or something other to get out a random number of 50 numbers.

By the way im selling cryptos since 4 years.
The cloud is in the really beginning servers are set up and the storage is now near to 1PB ready to be filled by users.

If i could hire a freelancer who knows about macrodroid i would do but there are no one who can fill my requiremts so i have to do it myself and to ask here.
Asking the logic to extract 50 lines from 1K, 20K or 100M itself is ok, it doesn't the matter. The point of my concern is what your purpose is. You explained these unique strings are used as dummy accounts for testing your site. It is to say business use, not personal, in the world where I'm living in.

On your previous posts in another topic, you wrote you needed thousands of fake accounts to set a bunch of bots to Spotify(I'm not sure the reason why Jacob knew that though).
At this time, you told me 20K accounts are just for stress testing. However, the accounts you want to create are YouTube accounts, not your site's. Why do you need YouTube accounts for testing your "personal" site? Why so many? Your story is NOT totally reasonable. I can't find any consistency at all. I guess nobody can figure out the missing link.
Furthermore, you don't seem to mind taking YouTube accounts for out of their main purposes. Even if your testing is true, don't you really think it has a possibility to violate the T&Cs and/or to be an unexpected computional resource usage of the other party?

I recognized almost your business outline and decided never to mind. I don't know how the other guys do though. Thank you.
 

onepfa

New member
I dont need them for youtube.
But youtube has more than the same needing i have like the whole sign up process has the tools i need to know how i can randomize them to test my apps and websites if i know how it works i can rebuild them for my needs.
Otherwise i have to describe more and more and when i say youtube sign process all needings are filled and all people will understand what i need everone have the app on phone :D so its easier for me to get in touch with the needings.

Further more i plan also opening on my cloud a streaming platform thats why i ask for spotify.
I can share the link to the cloud but this is a violate of the T&Cs :)
 
Top