Mô si, c'est possible !
Faut pas avoir honte de ton logiciel, Jmgr, on pourrait piloter une centrale nucléaire avec

(c'était la pub pour le ZX-80 en 1980 ! mdr )
Ci-après, un exemple utilisant une suite de "chiffres" (pour une suite de nombres, il faudrait des séparateurs tels qu'un point-virgule, un tiret ou un espace, etc, ou bien un formatage connu).
Donc dans mon exemple, la variable "w" contient une suite de chiffres (supposée avoir été extraite du fichier en question).
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<script>
<settings author="OldJedi" program="actionaz" program_version="2.0.8.0" script_version="1.0.1.1" os="windows" resolution_x="1024" resolution_y="768" language="fr" actions="11" interval="0" repeat="1" />
<actions>
<action id="10" name="Variable" variable_name="w" variable_type="1" variable_string="0327149" variable_operation="0" />
<action id="10" name="Variable" variable_name="nLen" variable_type="0" variable_int="{#strlen({$w})}" variable_operation="0" />
<action id="10" name="Variable" variable_name="n1" variable_type="0" variable_int="0" variable_operation="0" />
<action id="10" name="Variable" variable_name="n2" variable_type="0" variable_int="1" variable_operation="0" />
<action id="10" name="Variable" variable_name="wNbr" variable_type="1" variable_string="{#substr({$w},{$n1},{$n2})}" variable_operation="0" />
<action id="10" name="Variable" variable_name="wUrl" variable_type="1" variable_string="http://www.url.{$wNbr}.com{\nl}" variable_operation="0" />
<action id="18" name="Fichier" file_name="FicUrl.txt" file_data="{$wUrl}" file_write_mode="0" file_var="" file_mode="1" file_new_name="" />
<action id="10" name="Variable" variable_name="n1" variable_type="0" variable_int="1" variable_operation="1" />
<action id="10" name="Variable" variable_name="n2" variable_type="0" variable_int="1" variable_operation="1" />
<action id="11" name="Condition" condition_type="2" condition_variable="{$n2}" condition_variable2="{$nLen}" condition_if="0" condition_ifgoto="" condition_else="1" condition_elsegoto="4" condition_variable_type="1" condition_content_type="0" />
<action id="15" name="Stop" />
</actions>
<notes>
<note action="0" note="Exemple de suite de chiffres" />
<note action="1" note="Longueur de la chaine" />
<note action="2" note="init" />
<note action="3" note="init" />
<note action="4" note="Extraction d'un chiffre" />
<note action="5" note="Concaténation de l'url" />
<note action="6" note="Enregistrement url dans fichier" />
<note action="7" note="incrémentation" />
<note action="8" note="incrémentation" />
<note action="9" note="Test si fini" />
</notes>
<labels />
</script>
Une boucle permet d'extraire un par un les chiffres de la suite, et de les concaténer dans une adresse url que pour les besoins de la cause, j'enregistre dans un fichier baptisé "FicUrl.txt".
Voili-voilou c'est tout !
