[Visual Basic] [Problem] String auslesen/String zufällig wählen

05/06/2012 17:14 Beatsu#1
Code:
PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Name Generator"236299815246)
$Input1 GUICtrlCreateInput("Username"247218521)
$Input2 GUICtrlCreateInput("Username"2410418521)
$Input3 GUICtrlCreateInput("Username"2413618521)
$Input4 GUICtrlCreateInput("Username"2416818521)
$Input5 GUICtrlCreateInput("Username"2420018521)
$Input6 GUICtrlCreateInput("Username"2423218521)
$Name GUICtrlCreateLabel("Name Generator [06.05.12]"241630026)
GUICtrlSetFont(-1108000"Prestige Elite Std")
$Button1 GUICtrlCreateButton("Losuj"4026457250)
$Button2 GUICtrlCreateButton("Reset"12826457250)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
 
Case $GUI_EVENT_CLOSE
            
Exit
         
    EndSwitch
WEnd 
Problem: Wie kann ich einen String auslesen und einen String zufällig wählen
05/06/2012 17:56 xTenzo#2
Das ist AutoIt
05/06/2012 18:56 Beatsu#3
Sry ich meine es auch in AutoIt. Hab mich verschrieben
05/06/2012 19:15 xNopex#4
Jetzt wissen die nichmal mehr in welcher Sprache sie C&Pen :(
05/06/2012 19:43 Freddy​#5
PHP Code:
$Zeichen StringSplit("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890","")
$String ""
For $i 1 To 20
   $String 
&= $Zeichen[Random(1,UBound($Zeichen)-1)]
Next
MsgBox 
(0,"",$String
So zB