Alors j'ai un petit soucis
Code : Tout sélectionner
$Rand = _TestRandom(3)
RegWrite("HKEY_CURRENT_USER\Software\Sniper", "Key", "REG_SZ", $Rand)
$Rand1 = RegRead("HKEY_CURRENT_USER\Software\Sniper\Key", "REG_SZ")
Msgbox(4000,"Felicitation", "Votre clé a bien été enregistrée: ", $Rand1)
Func _TestRandom($Long)
Local $lPos , $i, $p, $RndStr
Const $Str = "123456789"
For $i = 1 To $Long
$lPos = Int(Random(1, StringLen($Str)))
$p = StringMid($Str, $lPos + 1, 1)
$RndStr = $RndStr & $p
Next
Return $RndStr
EndFunc
Il y a un truc que j'ai loupé??



