Hey Leute !
Ich wollte mir ein Skript erstellen welches 5 Zufallszahlen ( z.B. 45901) eingibt und das ambesten in einer While...( also er soll dann bischen Sleepen und dann ne neue Zhl auspucken
)
nur iwie check ich nicht wie man das macht das er zufallszahlen eingibt..
bitte um hilfe ![]()
MfG
Tim-xD
Brauche hilfe bei Zufallzahlen...
-
- [ gelöst ]
-
Tim-xD -
3. November 2009 um 15:07 -
Geschlossen -
Erledigt
-
-
[autoit]
Global $Random = ""
[/autoit][autoit][/autoit][autoit]For $i = 1 To 5 Step +1
[/autoit][autoit][/autoit][autoit]
$Random &= Random(10000, 99999, 1) & @CRLF
NextMsgBox(0, "Title", $Random)
[/autoit][autoit][/autoit][autoit]; IN DER WHILE SCHLEIFE JETZT!
[/autoit][autoit][/autoit][autoit]Global $Count = 1
[/autoit][autoit][/autoit][autoit]
$Random = ""While $Count <= 5
[/autoit][autoit][/autoit][autoit]
$Count += 1
$Random &= Random(10000, 99999, 1) & @CRLF
WEndMsgBox(0, "Title", $Random)
[/autoit] -
ah ok dankeschön

jezz versuche ich noch das er das in z.B. word eingibt und dann enter drückt
Edit: So habs jezz mit send gemacht nur ich weiß icht ganz wo ich die sleeps einbauen soll
-
[autoit]
Global $Random = ""
[/autoit][autoit][/autoit][autoit]
Global $Random2 = ""
Run("notepad.exe")WinWaitActive("Unbenannt - Editor")
[/autoit][autoit][/autoit][autoit]For $i = 1 To 5 Step +1
[/autoit][autoit][/autoit][autoit]
$Random = Random(10000, 99999, 1) & @LF
$Random2 &= $Random
Send($Random)
NextMsgBox(0, "Title", $Random2)
[/autoit][autoit][/autoit][autoit]; IN DER WHILE SCHLEIFE JETZT!
[/autoit][autoit][/autoit][autoit]
Send(@CRLF)Global $Count = 1
[/autoit][autoit][/autoit][autoit]
$Random = ""
$Random2 = ""While $Count <= 5
[/autoit][autoit][/autoit][autoit]
$Count += 1
$Random = Random(10000, 99999, 1) & @LF
$Random2 &= $Random
Send($Random)
WEndMsgBox(0, "Title", $Random2)
[/autoit] -
So habs jezz fertig

Fettes danke an dich =)