[python-win32] faster way to get printer status?

2009-08-06 Thread Roger Upole
You should be able to get the "Work Offline" status using win32print.GetPrinter with level 2. The returned Attributes will contain PRINTER_ATTRIBUTE_WORK_OFFLINE Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/ma

Re: [python-win32] faster way to get printer status?

2009-08-05 Thread Tim Golden
Alec Bennett wrote: I'm trying to get the online/offline status of a printer, and using WMI I'm finding it very slow. Here's the code I'm working, maybe there's some way to opimize it? Or some other way? I'm able to use win32print to query the status of an online printer, but not to find out w

[python-win32] faster way to get printer status?

2009-08-04 Thread Alec Bennett
I'm trying to get the online/offline status of a printer, and using WMI I'm finding it very slow. Here's the code I'm working, maybe there's some way to opimize it? Or some other way? I'm able to use win32print to query the status of an online printer, but not to find out whether its online or