tlinnet Posted March 29, 2007 Share Posted March 29, 2007 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 Link to comment Share on other sites More sharing options...
BigDod Posted March 29, 2007 Share Posted March 29, 2007 How about using _FilePrint 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 Link to comment Share on other sites More sharing options...
tlinnet Posted April 12, 2007 Author Share Posted April 12, 2007 How about using _FilePrintWell 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 Link to comment Share on other sites More sharing options...
iceberg Posted April 12, 2007 Share Posted April 12, 2007 not sure if this dos command will work type doc.txt > lpt1 mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
BigDod Posted April 12, 2007 Share Posted April 12, 2007 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.CheersIF 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. 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 Link to comment Share on other sites More sharing options...
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