crazyflx 22 Posted November 9, 2010 Report Share Posted November 9, 2010 I'm not sure if this has been mentioned on the forum before, but I remember a long time ago I had a question about this. I was trying to make a bot, and was using the randomly generated last name & was adding 4 random numbers to it (like this: salvadore3927). I was using that "formula" to generate random usernames when signing up to sites. I kept running into a problem though...most sites have a limitation on username length, and I would randomly get usernames that were beyond that length and the bot would stop. Now, I knew what that limitation was, but I had no way "shorten" my username or make sure that it was only X length. I came up with a solution, but forgot to come back on here & provide it so others who had the same problem might be able to find it...so, here it is (it's actually very simple). http://img593.imageshack.us/img593/1211/examplep.jpg I've also attached a bot that you can download that will randomly generate a new username on each press of the play button, and each time it does it makes sure that it isn't longer than 10 characters & then it displays the newly "trimmed" username on screen.Example.ubot 3 Quote Link to post Share on other sites
Gogetta 263 Posted November 9, 2010 Report Share Posted November 9, 2010 I'm not sure if this has been mentioned on the forum before, but I remember a long time ago I had a question about this. I was trying to make a bot, and was using the randomly generated last name & was adding 4 random numbers to it (like this: salvadore3927). I was using that "formula" to generate random usernames when signing up to sites. I kept running into a problem though...most sites have a limitation on username length, and I would randomly get usernames that were beyond that length and the bot would stop. Now, I knew what that limitation was, but I had no way "shorten" my username or make sure that it was only X length. I came up with a solution, but forgot to come back on here & provide it so others who had the same problem might be able to find it...so, here it is (it's actually very simple). http://img593.imageshack.us/img593/1211/examplep.jpg I've also attached a bot that you can download that will randomly generate a new username on each press of the play button, and each time it does it makes sure that it isn't longer than 10 characters & then it displays the newly "trimmed" username on screen. Great share crazy! Just to let you know, I think this will be included in the new pro & developer license also. Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 I think this will be included in the new pro & developer license also.I believe that the Pro & Dev licences will have string handling functions like Trim, so no need to mess about with javascript functions like substring, etc. Quote Link to post Share on other sites
crazyflx 22 Posted November 10, 2010 Author Report Share Posted November 10, 2010 Great share crazy! Just to let you know, I think this will be included in the new pro & developer license also. I believe that the Pro & Dev licences will have string handling functions like Trim, so no need to mess about with javascript functions like substring, etc. That will make life a lot easier. The less I have to mess with JavaScript, the happier I am (because I know diddly about JS). Quote Link to post Share on other sites
ubotapprentice 1 Posted February 11, 2011 Report Share Posted February 11, 2011 does that script works on the standard version of ubot??? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 11, 2011 Report Share Posted February 11, 2011 most form text areas have a maxlength label to them and therefore if as your saying the character length is 15 then it will auto drop the last few characters upon inserting the username anyways. Quote Link to post Share on other sites
UBotBuddy 331 Posted February 11, 2011 Report Share Posted February 11, 2011 I use this technique. http://ubotstudio.com/forum/index.php?/topic/4116-user-id-generator Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.