Jump to content

Print photo using Autoit


Recommended Posts

On 5/9/2016 at 4:26 PM, UEZ said:

RunWait('Rundll32.exe "' & @SystemDir & '\mshtml.dll",PrintHTML "' & $tempFile & '"', @SystemDir) ;replace $tempFile with the file which should be printed

Try:

Global $sFilePath = @DesktopDir & "\test.jpg"
Global $sPrinter = "PDFCreator"

RunWait('Rundll32.exe "' & @SystemDir & '\shimgvw.dll", ImageView_PrintTo /pt "' & $sFilePath & '" "' & $sPrinter & '"', @SystemDir)

All credits for the author: JESUS MANSILLA CASTELLS -Mihura-

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...