progress bar for print process

Hi everyone,

I am trying to figer out, how can I code some script to show me the progress bar of a job that has been sent to a printer. Any help whould be apreciate.

Thanks in advanced
Mr Loft