need advice how to do this

beau <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
hi all i need some advice
i good except for two thing
1 i don not wet $x in the output
2 $len i try to get the length of  each string before it goes to the 
clip board because if it under 8 i need to add 0 to the output thanks 
for any help

#include <Array.au3>


; stick what is in the clipboard into a variable
$msg = ClipGet()
MsgBox(0, "Clipboard contains:", $msg)

; split the variable's contents into seperate lines
;   you will probably need to play with the delimiter
;   to get the exact results you want, @CR and @LF
;   are other possible options here
$delimiter = @CRLF
$msg_array = StringSplit($msg, $delimiter, 1)
_ArrayDisplay($msg_array, "Lines in the clipboard")

; loop through the lines in the array grabbing what you need
; and appending it to a new variable
$output = ""
For $x = 1 To $msg_array[0]
    $output = $output & StringLeft($msg_array[$x], 8) & $delimiter
$output= StringReplace($output,".","")
$len = StringLen($output)
MsgBox(0,"",$output)
Next

; stick the new variable back into the clipboard
ClipPut($output)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.