Bonjour a tous,
j'ai un petit souci avec "FileReadLine", cette fonction ne veut pas prendre le caractère "!" et a la recopie il me zappe le caractère suivant
j'ai du louper un truc !
$file = FileOpen($fichier_original)
While 1
$line = FileReadLine($file)
If @error = -1 Then ExitLoop
Send ($line)
Send(@CR)
Wend
Faites test avec un fichier texte qui contient une ligne = !!!!!!!!!!!!jkjkjkj!!!!!!!!n
Je dois appliquer un traitement sur du texte mais je doit "épargner" les "!" que faire ?
Modifié en dernier par cutprod le lun. 21 nov. 2011 22:26, modifié 1 fois.
The "Send" command syntax is similar to that of ScriptIt and the Visual Basic "SendKeys" command. Characters are sent as written with the exception of the following characters:
'!'
This tells AutoIt to send an ALT keystroke, therefore Send("This is text!a") would send the keys "This is text" and then press "ALT+a".
N.B. Some programs are very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!
[optional] Changes how "keys" is processed:
flag = 0 (default), Text contains special characters like + and ! to indicate SHIFT and ALT key-presses.
flag = 1, keys are sent raw.
utilisez le mode raw sinon les "!" seront interprétés