Jump to content

JPEG to Print without prompts?


Recommended Posts

Here is just a ponderance. I dont have time right now to actually write a script to test, so this is why I am posting this here.

Is there a way to print a JPEG file without having to go through prompts?

When I try this:

DllCall("captdll.dll", "int", "CaptureRegion", "str", "schedule.jpg", "int", 1, "int", 35, "int", @desktopwidth-10, "int", @desktopheight-35, "int", 100)
    
    _FilePrint("schedule.jpg")

I have to go through half a dozen prompts (not due to the DLL) about resizing and printer margins and whatnot.

Is there a way to print without these?

Going in and assigning specific keystrokes woudn't work either, because I am planning on making this useful for people with many different kinds of printer configurations, and so a universal keystroke assignment can not be made.

Any suggestions?

Link to comment
Share on other sites

ok--- this is what I am doing, and it works:

DllCall("captdll.dll", "int", "CaptureRegion", "str", "C:\Documents and Settings\Andrew Freyer\schedule.bmp", "int", 1, "int", 35, "int", @desktopwidth-10, "int", @desktopheight-35, "int", -1)
    run( "c:\windows\system32\mspaint.exe schedule.bmp /p")

however, the image is too big! It prints on two pages. Is there any way that you all know of to make it print on one page in landscape mode?

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...