How do I change screen resolution during the game?

I was wondering how to change the screen resolution, i.e. aspect ratio, full screen, windowed etc, from the game menu system?
In other words, not from Blender’s publishing menu, but from inside the running game.
Is there a script available to handle this?


yes, there is a way, use the search box, this is the third thread about that topic i have seen these days