Jump to content

Whats Wrong With This


Haggis

Recommended Posts

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

Edited by Haggis
Link to comment
Share on other sites

Guest Travis

Without seeing the prog alias I couldn't tell you.

 

mdx and dcx have easy progress bar's. Though that picwin one looked really nice.

 

You do notice you have prog -c (im assuming to close it) inside the bracket for the 'if $mid' comparison? Are you positive that is true? Does it '/echo -a File Uploaded.' ?

 

Stick the prog -c outside of that if bracket and see if it closes.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...