Script to access word doc or notepad file in-game

Hello,


I'm new to the forum.  I develop games using RPG Maker VX Ace and RPG Maker MV for fun outside of work.  I work on different IT-Projects, non-programming based, at my job.  I am a complete Java Script novice, and still in the processing of learning.  I have searched through Google trying to find a script that would allow me to pull up word documents or notepad files in-game.  My plan is to take our training/new hire guide and use RPG Maker to replicate our Data Center in the game.  And when you access the terminal/computer you are sitting at, you can access the different documents that are stored within that shared folder.  Sort of like just using the game as a GUI to access those training documents.  It would be much easier to have a script that would allow me to access these documents in-game, rather than have to retype them all into a journal/notepad in game.  Think anyone might be able to help with this?  Thanks!
You want the game to just open them (meaning the program makes it open on Word for example) or make the game show it inside the game window?
I wanted to be able to boot up the game like normal.  And when the character goes to a computer and hits the action button.  I want to be able to pull up a menu where you can select different Word Documents.  Our training material that we use here at work.  Like for example, the character walks up to the computer, you press the action button, It pulls up a menu in-game.  It has different options like, "Common Abend Codes", "WDC Unit Sorter Wave SOP".  If you were to select one of those, it would pull up the Word Document in-game or outside of the game.  Either one works.  Not sure if it's actually possible.
It would be easy to make it open outside of the game I think (well on Ace it was just a simple call to the system to open any external file or program)... 


Try this one if it works


require("child_process").exec('youApp').unref();




just change youApp to the path of your word file
I'll test it out this week or next week when I finally get the time to sit down and work on it.  Thanks Adiktuzmiko!
You wouldn't be able to make it open up a Word document in-game, because of all the extra crud that MS puts into its word documents for the formatting and settings.  You could probably make it open up a plain text document and show the text in the game window, but not Word.
Hello. Would anyone know how to make something like this work in MZ? I'd love the option to have an action event open an .exe but have zero clue how to make this happen. I am admittedly extremely new to this, so go easy on me. Thanks in advance!
Welcome, @godanalog. We're not supposed to necro-post, and this thread is 7(!) years old.

Also, did you try the solution provided in post #4? That is JavaScript, which is what MZ uses.
It would be easy to make it open outside of the game I think (well on Ace it was just a simple call to the system to open any external file or program)...


Try this one if it works


require("child_process").exec('youApp').unref();




just change youApp to the path of your word file
Thank you, and noted for the future!

The problem I think I'm having is I have no idea where to put this line of code. Should I start a new thread and leave this one to die in peace? Thanks again.

@godanalog, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


Please start a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/script-to-access-word-doc-or-notepad-file-in-game.63922/