Parallel port communication

Hi all,

I was trying to find a function like this in the software itself or a plugin that could be appropriated to do this, but it seems nobody from the community ever needed it.

WHAT:
What I need is a way to have my game send information through a parallel port to another machine. The whole point is to have one or several events in the game that I want to log onto another machine.

EXAMPLE:
So let's say I create an event in the game, like picking up an item. Player walks up to a letter on the ground, and they press a button to interact with it. This triggers a control switch on. This control switch on (or off eventually, say when they hand it in) is what I want to send through the parallel port. There would most likely be more than one control switches in the game.

MORE INFO:
Essentially, I only need a trigger sent through the parallel port. This other machine knows what to do with it, it just stores it as a time-point, and there's functionality to code and store more different signals, so that end is taken care of.
The parallel port I'm using is 16-bit, only has four wires, so I could send up to 16 different triggers through it. Ideally, I could redefine the triggers either through RPGMMV interface or in the code itself. By "redefining the triggers" I mean define what control switch or other event command sends information (trigger) through which bit. If the event of picking up a letter commands "Control Switch #0001=ON", then I would define that to be sent through a certain bit.
Another thing that would be really convenient is if there were an option either built-in or adjustable to make one of the channels (bits) send triggers at randomised intervals. I'm talking about intervals under 30s. So whilst my players are playing the game, one of the bits, let's says the first wire for simplicity's sake, sends a trigger to the other machine at a randomised interval ranging from 1 to 30 seconds.

If anyone thinks this is possible to implement, and would be willing to give it a knock, please do not hesitate to contact me for more information. Looking forward to your ideas and replies!
The biggest reason is because almost no one nowadays has a PC that has a parallel port. Modern motherboards are built without them because that technology is very outdated and slow by comparison to USB and other I/O interfaces. You'll be very hard pressed to find someone that can make something that works over parallel port in JS, if that's even possible seeing as JS is a web scripting language, due to the very low amount of people that even have that port on their PC anymore anywhere, let alone this community.
When you say parallel port, do you mean something like this?
193px-Parallel_computer_printer_port.jpg


Is there a reason why you can't just send the data over the internet using AJAX?
Thank you for your replies!

Makes sense @djDarkX. I am very unfamiliar with parallel ports myself too.

Yes, @Nolonar. The problem could be that the other machine is part of medical equipment; which explains the use of parallel ports, once these kinds of systems are built reliably they tend to stick for a very long time. The machine my game would communicate with is just a Windows PC in the adjacent room as far as I know, but since it's hospital equipment I cannot really tamper with it in any way. I only have access to a controller box set with a parallel port. So I am supposed to make a game, run it on a computer provided by me, and connect that computer to the parallel port (set up by the hospital), through which I could send triggers to the hospital machine. I will inquire whether that really is the only option, though.
Hi all, I heard back from the hospital and there are plans to update hardware, but for the foreseeable future I'm stuck with what I already described. So the computer on the other end can only accept parallel port input.

Does someone have an idea of a workaround? Do you think a USB to parallel would work? So the plugin in JS is written to communicate through my computer's USB port, but that gets sent to the other computer's parallel port. Therefore the nature of the information sent through my USB to the parallel port should be such that the parallel port can process it as it would normally from another parallel port.

Original thread: https://forums.rpgmakerweb.com/threads/parallel-port-communication.94661/