Jump to content
Sign in to follow this  
JustinZandee

Random string generator

Recommended Posts

JustinZandee

I need a random string generator which creates 15 letters/numbers.

How can I make that?

Share this post


Link to post
Share on other sites
VIP

UEZ SCRIPT:
 

Global $randomStr = ""
Global $aSpace[3]
Global $digits = 15
For $i = 1 To $digits
    $aSpace[0] = Chr(Random(65, 90, 1)) ;A-Z
    $aSpace[1] = Chr(Random(97, 122, 1)) ;a-z
    $aSpace[2] = Chr(Random(48, 57, 1)) ;0-9
    $randomStr &= $aSpace[Random(0, 2, 1)]
Next
ConsoleWrite("String Generated: (" & $digits & " digits): " & $randomStr & @CRLF)
MsgBox(0, "String Generator", "String Generated: (" & $digits & " digits): " & $randomStr & @CRLF)


P/S: Search before asking!


Regards,
 

Share this post


Link to post
Share on other sites
JustinZandee

@Trong but I mean like.. When I have a text field.. That it pastes 15 random numbers and letters.. I already found that script..

Edited by JustinZandee

Share this post


Link to post
Share on other sites
JLogan3o13

@JustinZandee What you're asking for in your second post is vastly different than what you did in your first; can't blame anyone for being confused. As to pasting the characters into a field, you need to provide some more information such as what application. Depending on the app, you could use ControlSend, or Send (less reliable), but giving us as much information as possible will help us help you ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
VIP
7 minutes ago, JustinZandee said:

@Trong but I mean like.. When I have a text field.. That it pastes 15 random numbers and letters.. I already found that script..

Did you mean that you want a full program code with the text box and button!
When you click the button it will generate 15 letters/numbers and put to text box for you?

or  What do you mean?


Regards,
 

Share this post


Link to post
Share on other sites
JustinZandee

@JLogan3o13 I am sorry. I want to make a Instagram follow bot which creates a random username with random letters and numbers. If it is possible i want to make like an "Do That random letter and number thing until It is a valid username (that the username isn't already taken)

 

Share this post


Link to post
Share on other sites
JustinZandee

@Trong I included more info :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Similar Content

    • BogdanNicolescu
      By BogdanNicolescu
      While 1 / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / WEnd OR:

       
      HotKeySet("{ESC}", "Terminate") While 1 MouseClick("Right",674,422) MouseClick("Left",673,447) Sleep(2000) / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / MouseClick("Left",675,339) SLeep(3000) WEnd Func Terminate()     Exit 0 EndFunc  
      Sorry if i should't let this here to be found by newbies like me -.-'
    • santoshM
      By santoshM
      Dear friends i am facing a problem , i have created a window in autoit some time it is moving with the mouse curser even if iam not clicking the window 
    • sumanth1980
      By sumanth1980
      Here i am wrote a simple lines to install basic applications but when i clicked on one application/program to install it was working fine but when i cancel the program in the middle to install another program it was not working. I am not an expert in this but i want a solution for this ... Can any one help me on this....
      ORG-1.au3
    • PleaseHelpMEIWillLoveyou
      By PleaseHelpMEIWillLoveyou
      Is there a way to use a custom terminal or something from my pc and run a script on another pc.
      please let me know if its possible
      (not for anything bad just for a project im working on)
×