Printing Machine

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Printing Machine

Post by Tuxion » Wed Oct 17, 2018 9:44 am

Hi, sorry about my bad English.

I would like to know if there is a way to program a function to use the printing machine.

User avatar
pgimeno
Party member
Posts: 1344
Joined: Sun Oct 18, 2015 2:58 pm

Re: Printing Machine

Post by pgimeno » Wed Oct 17, 2018 1:29 pm

Can you explain what you mean by printing machine?

Because this is a printing machine
Image

Do you meant a typewriter effect, where the text appears letter by letter instead of all at a time?
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Re: Printing Machine

Post by Tuxion » Wed Oct 17, 2018 2:25 pm

Sorry i don't know how to say it in english but it's look like that:

https://upload.wikimedia.org/wikipedia/ ... rinter.jpg

User avatar
zorg
Party member
Posts: 2413
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Printing Machine

Post by zorg » Wed Oct 17, 2018 3:36 pm

So you want to use the printer... not sure if there's an easy solution available.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

Xugro
Prole
Posts: 46
Joined: Wed Sep 29, 2010 8:14 pm

Re: Printing Machine

Post by Xugro » Wed Oct 17, 2018 4:44 pm

You could use another program to do the printing for you. On Windows you could use Wordpad to print by command. For this you have to save your Text-File and then use

Code: Select all

os.execute("write /p filename")
(See the Lua OS Library Tutorial for more information for os.execute().)

The advantage of using Wordpad over Notepad is Wordpads support for Rich-Text-Format (RTF). In RTF you can use bold, italics and even images (How to add images to RTF-Files with code). This should be enough to write a simple Word-Processor on Windows.

pedrosgali
Party member
Posts: 100
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Printing Machine

Post by pedrosgali » Wed Oct 17, 2018 6:44 pm

I was wondering what that command was in Lua, in python it's

Code: Select all

os.startfile(dir_path, "print")
I will use this in the future :awesome:

Code: Select all

if not wearTheseGlasses() then
  chewing_on_trashcan = true
end

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 10 guests