Skip to content
Mistium edited this page Jun 27, 2024 · 4 revisions

Send data to a window

transmit data window_id
// send data to a window

Handle receiving data

You will want something like what is below inside of your mainloop to handle all incoming transmit

if new_transmit (
  // theres new data to handle
  log transmit_source
  // log the id of the window that sent you data (normally so you can respond)
  log transmit_data
  // log the data from the transmit
  new_transmit = false
)

Possibly helpful info

You can get the window id of the window that created you using

window.parent.id
// returns an integer

You can get a list of window ids that you have created from the variable

window.children
// returns data like ["34","43","44","56"]

originOS Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally