Is there a script call or switch to switch between fullscreen and windowed mode?

J_C

Veteran
Veteran
Joined
Jan 21, 2015
Messages
192
Reaction score
45
First Language
Hungarian
Primarily Uses
N/A
Does anyone know if it is possible to switch between the windowed and fullscreen mode with a simple script call or switch? I'm not looking for a fullscreen script, just want to use the default option which is available from the F1 menu. I want to integrate it into Yanfly's system options script, so the player can switch between the two from the options menu.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Try this.  It probably COULD be done as a script call, but you're better off putting it into an actual script.  If you're adding it to an options menu, you'll have to figure out how to tell whether it's meant to be full screen on loading the game, and if it IS full screen on loading the game, and whether you need to do something about it.

Code:
@keyboard = Win32API.new('user32', 'keybd_event', %w(l l l l), '')
@keyboard.call(18, 0, 0, 0)
@keyboard.call(13, 0, 0, 0)
@keyboard.call(18, 0, 2, 0)
@keyboard.call(13, 0, 2, 0)
 

J_C

Veteran
Veteran
Joined
Jan 21, 2015
Messages
192
Reaction score
45
First Language
Hungarian
Primarily Uses
N/A
Try this.  It probably COULD be done as a script call, but you're better off putting it into an actual script.  If you're adding it to an options menu, you'll have to figure out how to tell whether it's meant to be full screen on loading the game, and if it IS full screen on loading the game, and whether you need to do something about it.

Code:
@keyboard = Win32API.new('user32', 'keybd_event', %w(l l l l), '')
@keyboard.call(18, 0, 0, 0)
@keyboard.call(13, 0, 0, 0)
@keyboard.call(18, 0, 2, 0)
@keyboard.call(13, 0, 2, 0)
Thank you Shaz! 
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,675
Reaction score
566
First Language
English
Primarily Uses
RMVXA
Oscar92Player reworte Yanfly's system options to put in the fullscreen feature.
 

J_C

Veteran
Veteran
Joined
Jan 21, 2015
Messages
192
Reaction score
45
First Language
Hungarian
Primarily Uses
N/A

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top