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 »

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: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: Printing Machine

Post by pgimeno »

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?
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Re: Printing Machine

Post by Tuxion »

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: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Printing Machine

Post by zorg »

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
Party member
Posts: 110
Joined: Wed Sep 29, 2010 8:14 pm

Re: Printing Machine

Post by Xugro »

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: 107
Joined: Wed Oct 15, 2014 5:00 pm
Location: Yorkshire, England

Re: Printing Machine

Post by pedrosgali »

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 59 guests