Hallo
Hab wieder mal ne frag ![]()
Und zwar ich habe einen Namens generator Geschrieben und der soll den namen aus einer namens list nehmen und dann eine zahl hinter setzen,
mein Prob ich möchte das es den Namen dann in eine notepad datei rein schrieben aber irgendwie macht er das nicht vlt könnt ihr ja helfen
Spoiler anzeigen
run ("notepad.exe")
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Sleep (1000)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Func _GenName()
Global $nrnd = Random(1,8310,1)
Global $pers = FileReadLine("name.txt", $nrnd)
Global $len = StringLen($pers)
Global $neglen = 13 - $len
If $neglen = 5 Then
Global $rnd = Random(0,99999999,1)
EndIf
If $neglen = 6 Then
Global $rnd = Random(0,9999999,1)
EndIf
If $neglen = 7 Then
Global $rnd = Random(0,999999,1)
EndIf
If $neglen = 8 Then
Global $rnd = Random(0,99999,1)
EndIf
If $neglen = 9 Then
Global $rnd = Random(0,9999,1)
EndIf
If $neglen = 10 Then
Global $rnd = Random(0,999,1)
EndIf
If $neglen = 11 Then
Global $rnd = Random(0,99,1)
EndIf
If $neglen = 12 Then
Global $rnd = Random(0,9,1)
EndIf
return $pers & $rnd
EndFunc
Send ("", _GenName())
[/autoit]Hoffe einer kann helfen