Search code examples
windowsopengldirectxoverlaynode-webkit

NodeWebkit "always on top" on top of fullscreen applications?


I've been playing around with a NodeWebkit application I'm building and I'd like to know if there's any way of making the app run on top of everything.

I know you can set always on top to true within the package.json file (or call the method on the window object) but the application doesn't go above fullscreen applications such as games.

Since what I'm building is supposed to be a game overlay (think: Steam overlay, UPlay overlay) I desperately need this functionality, is it possible? Is it possible with NodeWebkit?


Solution

  • It's possible, but not as easy as you may think. If you want to overlay games the problem is that the game engine "takes control" over the graphics card and renders ONLY the game. that means that your application in the background is not rendered at all.

    that means you need to "inject" yourself into that process. you do this by talking to the OpenGL or DirectX directly

    you can find more information on it Here, Here, And Here