Jump to content

Put some text on clipboard (dev mod)?


MXXIV

Recommended Posts

For debug reasons, I'd really appreciate if I knew how to put text into clipboard. If I knew that, I could already release a nice debug mod that allows you to inspect world objects and copy their properties. It's not that taht is my main aim, but my current WIP mod could be easily modified to do that.

 

I googled but it doesn't seem like something Lua scripters usually do. And since Java is not fully exposed to Lua, I'm not sure how to do it.

Link to comment
Share on other sites

I'm pretty sure the OS related functions have been deactivated (for good reasons) and since the game doesn't use plain Lua you don't have much choice.

 

Well depending on your OS I guess you could just try to pipe it directly to the clipboard when you run it from your terminal. On OSX you can do it via 'pbcopy' for example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...