home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 45
/
Amiga_Dream_45.iso
/
Amiga
/
Internet
/
Minitel
/
AmiTEL310.lha
/
rexx
/
SendTexte.amtl
< prev
next >
Wrap
Text File
|
1995-10-21
|
2KB
|
82 lines
/*-----------------------------------*/
/* SendTexte.rexx v1.3 ⌐ 1995 Ldfa */
/* */
/* Envoi filtrΘ d'un fichier Ascii */
/* sur un serveur pour AmiTEL 2.2 */
/* */
/*-----------------------------------*/
NL = '0a'x
Return = '0d'x
Envoi = '13 41'x
Retour = '13 42'x
Repetition = '13 43'x
Guide = '13 44'x
Annulation = '13 45'x
Sommaire = '13 46'x
Correction = '13 47'x
Suite = '13 48'x
ADDRESS AMITEL_REXX
OPTIONS results
REQINFO "Ce programme permet d'envoyer un fichier" || NL,
"Ascii prΘparΘ α l'avance sur un serveur" || NL,
"en filtrant les caractΦres acentuΘs." || NL,
"Voulez vous continuer?"
if RESULT == 0 then exit
REQFILE "Nom du Fichier α envoyer"
if RESULT == "RESULT" then exit
Success = open('Fichier',RESULT,'R')
if Success == 0 then
do
REQINFO "Fichier non trouvΘ!"
exit
end
do while eof('Fichier') == 0
Char = readch('Fichier',1)
select
when Char = '0a'x then /* Si fin de la ligne */
do
DELAY 2 /* Attend 2 secondes */
SEND Suite /* Envoi touche SUITE */
DELAY 1 /* Attend 1 seconde */
end
when Char = 'ú' then SEND '19 23'x
when Char = 'º' then SEND '19 27'x
when Char = '░' then SEND '19 30'x
when Char = '▒' then SEND '19 31'x
when Char = '≈' then SEND '19 38'x
when Char = '╝' then SEND '19 3c'x
when Char = '╜' then SEND '19 3d'x
when Char = '╛' then SEND '19 3e'x
when Char = 'α' then SEND '19 41 61'x
when Char = 'Φ' then SEND '19 41 65'x
when Char = '∙' then SEND '19 41 75'x
when Char = 'Θ' then SEND '19 42 65'x
when Char = 'Γ' then SEND '19 43 61'x
when Char = 'Ω' then SEND '19 43 65'x
when Char = 'ε' then SEND '19 43 69'x
when Char = '⌠' then SEND '19 43 6f'x
when Char = '√' then SEND '19 43 75'x
when Char = 'Σ' then SEND '19 48 61'x
when Char = 'δ' then SEND '19 48 65'x
when Char = '∩' then SEND '19 48 69'x
when Char = '÷' then SEND '19 48 6f'x
when Char = 'ⁿ' then SEND '19 48 75'x
when Char = 'τ' then SEND '19 4b 63'x
when Char = '▀' then SEND '19 7b'x
otherwise SEND Char
end
end
REQINFO "Envoi du fichier terminΘ."