Pull computer username and use it as a variable.

I am looking for a plugin that allows you to pull someone's username on their computer and use it as a variable so I can put it in dialogue.
Looks like this is what you're after:

https://stackoverflow.com/questions/40424298/find-os-username-in-nodejs

https://stackoverflow.com/questions/27895127/node-js-getting-current-windows-username

https://nodejs.org/dist/v6.0.0/docs/api/os.html#os_os_userinfo_options

You can use the "Script" part of a Control Variables event command to set it. Note that this would only work on desktop deployments, not web deployments.
Looks like this is what you're after:

https://stackoverflow.com/questions/40424298/find-os-username-in-nodejs

https://stackoverflow.com/questions/27895127/node-js-getting-current-windows-username

https://nodejs.org/dist/v6.0.0/docs/api/os.html#os_os_userinfo_options

You can use the "Script" part of a Control Variables event command to set it. Note that this would only work on desktop deployments, not web deployments.
Sorry it took so long to get back, how would I get this variable to appear in text?
\v[x] if I'm not wrong.

As @Aloe Guvner said, you need to execute that script on a variable call, then just use the code below to make the name appear:

"Hi, I'm your PC, \v[x], nice to meet ya!"

You need to replace X for the variable number where you stored the name.

Cheers!

Original thread: https://forums.rpgmakerweb.com/threads/pull-computer-username-and-use-it-as-a-variable.108310/