Access to Windows dlls

Beep = assert( package.loadlib( “kernel32.dll”, “Beep” ) )
Beep(100,100)

It actually makes a beep, but then renoise freezes. Maybe it is because passed data was in wrong format

1 Like

Maybe using similar approach we can get a tool window handle and send message as well?

According to the Lua docs the resolved function must be a lua_CFunction

typedef int (*lua_CFunction) (lua_State *L);

See Lua 5.1 Reference Manual

But I honestly never tried this.

1 Like