Trying to embed a Sciter window into a GameMaker Studio 2 game window.
This is executed in the room creation code of the first (and only) room in the test project.
var foo = external_define(
"sciter_gamemaker.dll",
"foo",
dll_cdecl,
ty_real,
1,
ty_string
);
var handle = window_handle();
var handle_as_hex_string = string(handle);
external_call(foo, handle_as_hex_string);
Nothing happens, except the game window is displayed which consists of just a horizontally scrolling image.
Here is the official GameMaker documentation for external_define and external_call.