on 1:sockread:imageshack_drone*:{
prog -o test
prog -p 50
prog -p 75
prog -p 100
sockread -f %lol
if $mid(%lol,1,9) = location: {
%lol = $mid(%lol,11)
echo -a 4Uploaded to imageshack: http:// $+ $gettok(%lol,2,$asc(/)) $+ / $+ $gettok($gettok(%lol,2-,$asc(?)),3-,$asc(=))
set %link http:// $+ $gettok(%lol,2,$asc(/)) $+ / $+ $gettok($gettok(%lol,2-,$asc(?)),3-,$asc(=))
unset %lol
echo -a File Uploaded.
prog -c
; unset %link
}
}
its using the progress bar code in the downloads on here
it give me this
loads the progress bar goes to 50 then 75 then 100%
then stops the file does not upload and it stays at 100% anddoes not close
i have to close it manually
if i take out all the line beginning prog it works fine