How to call external library function

I have installed the external library PACE for progress bars. It works well in a blank execute or app init, but my purpose in having a progress bar is when I upload a file from a form button (fopen/fget/etc). I want the progress bar to start when I click the button for the upload. Is there any way to call these routines? If not, what are they for?