Jump to content

Recommended Posts

Posted

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?

Posted

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?

Posted

Try rotating the image 90 degrees first.

(Automating paint should do the trick.)

#)

I dont want to have paint open. is there a way to rotate and resize trough the command line?

Posted

I dont want to have paint open. is there a way to rotate and resize trough the command line?

I am using irfanview. works great -- case anyone needs the answer to this

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
  • Recently Browsing   0 members

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