Jump to content
Sign in to follow this  
lewwy

Printers

Recommended Posts

lewwy

Hi All,

I'm just wondering if there is some way in au3 to get a list of the availible printers, along with port listing (for network printing) etc etc? Also IP addresses of the printers.

Share this post


Link to post
Share on other sites
BrettF

Search for Computer Info UDF by JSThePatriot.

Example:

#include <CompInfo.au3>

Dim $aPrinterInfo
_ComputerGetPrinters($aPrinterInfo)
If Not @error Then
    For $i = 1 To $aPrinterInfo[0][0]
        MsgBox(0, $aPrinterInfo[$i][0], "Port Name = " & $aPrinterInfo[$i][59])
    Next
Else
    MsgBox(0, "", "ERROR?")
EndIf

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.