Sign in to follow this  
Followers 0
tlinnet

print/copy to LPT1

5 posts in this topic

Hello everyone,

I have been sitting for a week now, trying to figure out AutoIt.

I have made a script that will create a txt file, but now I need it to print it to the LPT1 port, but I simply can not figure out how to.

Can you please help me.

Cheers

Share this post


Link to post
Share on other sites



How about using _FilePrint



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

How about using _FilePrint

Well thats not very helpful and this seems to be the answer to all who has a printing question. So please if you dont have any helpful info, just dont reply.

I need it to print directly to LPT1. I dont need the windows printer selection dialog box. When I hit the print button on my autoit script, it will print automatically to LPT1.

Cheers

Share this post


Link to post
Share on other sites

not sure if this dos command will work

type doc.txt > lpt1


mouse not found....scroll any mouse to continue.

Share this post


Link to post
Share on other sites

Well thats not very helpful and this seems to be the answer to all who has a printing question. So please if you dont have any helpful info, just dont reply.

I need it to print directly to LPT1. I dont need the windows printer selection dialog box. When I hit the print button on my autoit script, it will print automatically to LPT1.

Cheers

IF you had tried the _FilePrint example in the help file you would have seen that it does not use the windows printer selection dialog box but prints directly to the default printer. Because you said that you generated a .txt file then using _FilePrint is the easiest way to print it IMHO.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  
Followers 0