I'm developing an application that measures eyegaze, voice commands and facial expressions/movements (among other things). I'm interested in seeing if I can use these in Skyrim (e.g. eyegaze for focusing certain objects and aiming, smile/frown to convey emotional responses to NPCs, nod to accept, etc.).
Is there any way I can send these parameters, to a script running within Skyrim that triggers some reaction on part of the NPC or wtv? I've though of using sockets, but I'm not really sure how to do this.
I've also looked into SKSE, but the documentation/sample project was confusing to me as it didn't really explain what I should do or how to use the new functions in Papyrus. Two text files (Papyrus -> MyApplication and vice-versa) would also do.
Any thoughts on how to do this with Papyrus or implement the socket communication or file I/O in SKSE?
A pseudo-code illustration of what I mean:
(My) external Application:
parameterString = processInput();
everyXseconds do:
sendParameterStringToSkyrim();
Some Papyrus script running in Skyrim:
onParameterStringReceived():
#do stuff
