Jump to content

Recommended Posts

Posted

i want a script what will generate a 9 digit random number

e.g 123456987

but i cant seem to find anything useful in help

can anyone help me ?

Posted (edited)

$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
Posted

$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?

Posted (edited)

$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
Posted

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!
Posted

I see your two lines and raise you:

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

WBD

Posted

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!
Posted

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
×
×
  • Create New...