- Home /
Send messages/info to Operative System?
Hi! I would like to know if there is a way to send info from an Unity application to the OS it's running it. For instance if you make an screen keyboard with Unity, can it write in Windows/Mac OSX when you press it? or if you create other kind of buttons can them control OS functions or they are limited to work only inside the Unity App where you create them? Thanks in advance!
Answer by Jerno_Bill · Dec 10, 2012 at 06:12 PM
I had the same question. Sad there is no answer yet.
Answer by sparkzbarca · Dec 10, 2012 at 06:19 PM
yea but you'd have to determine the OS and then use the appropriate library for that OS to communicate with it.
like in windows for example with C++ you can use stdio.h to do a system call.
there might be security issues though, the program may need to be elevated to a higher level to allow it to correctly call certain functions if the OS thinks its dangerous to allow 3rd party apps access to that.
You should note that Mono is part of .net framework and is platform independant so if you can do it through a mono call the platform issues will resolve there own selves.