Would it be possible to have something telling us on which screen is the current window displayed?

I’ve read your patchnote for 0.143
Great stuff in there, especially the overwolf.windows.onScreenPropertyChanged.

Would it be possible to add one additional thing ? Would it be possible to have something telling us on which screen (with the screen handle) is the current window displayed ? (and also if the window is currently displayed ingame or not)

  • with the overwolf.utils.getMonitorsList() you get all the monitors, handles, resolutions and which one is the primary.
  • with overwolf.windows.getCurrentWindow() you can get the top and left position of the current window. and calculate on which monitor your window is located.

regarding if you are in a game or not -

  • you should know if your window is an in-game window or a desktop window.
  • if it’s a desktop window - it can’t be overlay in-game anyway…
  • if it’s an in-game window -
  • when it’s injected - overwolf.games.getRunningGameInfo() will return isInfocus true.
  • when it’s not injected - overwolf.games.getRunningGameInfo() will return isInfocus false.
  • when a game is not running - overwolf.games.getRunningGameInfo() will return null.