Jump to content

random numbers


Recommended Posts

$Generate=InputBox("XXX", "How many?", "1000", "", 15, 15)
If @error Then Exit
$String=""
$hnd=FileOpen("Keys.txt", 1)
$i=0
Do
    $i=$i+1
    $String=""
    Do
        $Random=Random(0, 9, 1)
        $String=$String&$Random
    Until StringLen($String) > 9
If $i=$Generate Then
    FileWrite($hnd, $String)
Else
FileWrite($hnd, $String&@CRLF)
EndIf
Until $i=$Generate
FileClose($hnd)

Edited by DCCD
Link to comment
Share on other sites

$Generate=InputBox("XXX", "How many?", "1000", "", 15, 15)
If @error Then Exit
$String=""
$hnd=FileOpen("Keys.txt", 1)
$i=0
Do
    $i=$i+1
    $String=""
    Do
        $Random=Random(0, 9, 1)
        $String=$String&$Random
    Until StringLen($String) > 9
If $i=$Generate Then
    FileWrite($hnd, $String)
Else
FileWrite($hnd, $String&@CRLF)
EndIf
Until $i=$Generate
FileClose($hnd)
thanks alot m8

how do i get it so it will just send the numbers straight to notepad?

Link to comment
Share on other sites

$Generate=InputBox("Key Gen", "How many keys be made?", "1000", "", 15, 15)
If @error Then Exit
$String=""
Run("notepad.exe")
$i=0
Do
    $i=$i+1
    $String=""
    Do
        $Random=Random(0, 9, 1)
        $String=$String&$Random
    Until StringLen($String) > 9
If $i=$Generate Then
    WinWaitActive("Untitled -")
    Send($Sting)
Else
    WinWaitActive("Untitled -")
    Send($String&@CRLF)
EndIf
Until $i=$Generate

Edited by DCCD
Link to comment
Share on other sites

WinActivate("[CLASS:Notepad]")
Send(Random(100000000,999999999,1))

- Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar!
Link to comment
Share on other sites

I see your two lines and raise you:

ControlSend("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]", Random(100000000,999999999,1) & @CR)

WBD

Link to comment
Share on other sites

I see your two lines and raise you:

ControlSend("[CLASS:Notepad]", "", "[CLASS:Edit; INSTANCE:1]", Random(100000000,999999999,1) & @CR)

WBD

check!

$a = WinActivate("[CLASS:Notepad]") + Send(Random(100000000,999999999,1))
- Table UDF - create simple data tables - Line Graph UDF GDI+ - quickly create simple line graphs with x and y axes (uses GDI+ with double buffer) - Line Graph UDF - quickly create simple line graphs with x and y axes (uses AI native graphic control) - Barcode Generator Code 128 B C - Create the 1/0 code for barcodes. - WebCam as BarCode Reader - use your webcam to read barcodes - Stereograms!!! - make your own stereograms in AutoIT - Ziggurat Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Box-Muller Gaussian Distribution RNG - generate random numbers based on normal/gaussian distribution - Elastic Radio Buttons - faux-gravity effects in AutoIT (from javascript)- Morse Code Generator - Generate morse code by tapping your spacebar!
Link to comment
Share on other sites

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...