Jump to content

Game data into external window (same desktop)


Recommended Posts

I've been playing around with SerialIO a fair bit, but there was some tasks I didn't want to burden the tiny Ardunio with.
Anyone know what my options are for getting the following data and streaming it to a  window on the same desktop that KSP is running?
CelestialBody List
TargetVessel List
Target Range List
TargetVessel PortName List

My hope is to pass this information to a bit of code that allows me to pick from an available set of targets and I can code the return message to listen for a response that would 'set the target' in game.

I only thought of taking the data from the arduino and passing it back to the PC via a different COM port which an application would be listening to. But that sound rather stupid on my part.
I hoping someone can point me in the direction of some bootstrap idea seeing as I've read unity doesn't allow popup windows outside the game scene.
Is there some reference I can add to my mod to allow me to pass data to a window that I can code to display a custom GUI? Or is the only option to hand the data to a listening program and having that independent program do what it I code it to do?

Edited by wile1411
Link to comment
Share on other sites

Just realised that despite thinking about this for the better part of the afternoon, I hadn't thought enough about it.

I only just now realise that if I do get the data to an external screen, how am I going to control the 'selecting' part? That external data window wouldn't be the active window (KSP will be) so it wont recognise commands from the keyboard. I'd have to pass the input key to the application and action it based on that command. Might work...

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...