Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How does my script know if player is already fullscreened?

In my module, I created the easy FullScreen.toggle() method, which will min/maximize the screen if true/false is used as an argument.

Code:
FullScreen.toggle          # Automatic toggle
FullScreen.toggle(true)  # Sets it to full screen (if not already)
FullScreen.toggle(false) # Sets it to minimum (if not already)

Is there a way to check, either through Win32API or whatnot, if the Game.exe's screen is fullscreened or not?

I need this because the FullScreen.toggle() method can't actually tell if the game is fullscreened or not, and I can't seem to disable the ALT + Enter function which allows the player to manually fullscreen outside of my module.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top