orange Posted June 29, 2006 Posted June 29, 2006 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?
orange Posted June 29, 2006 Author Posted June 29, 2006 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?
nfwu Posted June 29, 2006 Posted June 29, 2006 Try rotating the image 90 degrees first. (Automating paint should do the trick.) #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
orange Posted June 29, 2006 Author Posted June 29, 2006 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?
orange Posted June 29, 2006 Author Posted June 29, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now