Scripting

The LUWRAIN platform features a powerful, dynamically loadable scripting engine powered by GraalVM (Polyglot API). This architecture allows developers and advanced users to extend, modify, and automate system behaviors without recompiling the core Java codebase.

Scripts are primarily written in JavaScript and interact seamlessly with LUWRAIN's core accessibility features, UI components, file system, and network stack. The system is heavily event-driven, relying on a robust Hook System that allows scripts to intercept and handle system-wide events.

This section serves as the technical reference for both Script Developers (writing macros and extensions) and Platform Developers (integrating the script engine into Java components).