The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: orb on March 21, 2012, 06:47:03 AM

Title: Auto Full Screen Script
Post by: orb on March 21, 2012, 06:47:03 AM
                                                                  Auto Full Screen Script
                                                                                  Author:orb
                                                                                  Version:1.0

Introduction
Its plug and play. Just insert it above main and bellow all others.

Features
When the game starts, it opens up infull screen mode so you don't have to press Alt+Enter.

Screenshots
None requiered

Script
#===========================================================================
#Writen by:orb
#version 1.0
#Date 21/3/12
#===========================================================================
#This script turns on the full screen mode automatically with out having
#to press Alt + Enter
#
#Instructions:
#
#This script is plug and play, just paste it ABOVE main, and BELLOW everything
#else!
#lable it Scene_FullPromt and thats it!
#
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# Start Scene_FullPromp
#--------------------------------------------------------------------------
class Scene_FullPromp
#------------------------------------------------------------------------------ 
# Begin by loading DataBase
#------------------------------------------------------------------------------
    $data_system = load_data("Data/System.rxdata")
    $game_system = Game_System.new
      showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
       showm.call(18,0,0,0)
       showm.call(13,0,0,0)
       showm.call(13,0,2,0)
       showm.call(18,0,2,0)
       $scene = nil
      end


Compatibility
Compatible with every thing.

Author's Note
You are free to modify or distribute but under the name of the author.
Title: Re: Auto Full Screen Script
Post by: EvilM00s on March 21, 2012, 12:38:04 PM
Neat! I wonder how tough it would be to mod it for VX.
Title: Re: Auto Full Screen Script
Post by: modern algebra on March 21, 2012, 12:44:23 PM
What's with the class and loading the system data? Wouldn't the following accomplish the same thing?


showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
showm.call(18,0,0,0)
showm.call(13,0,0,0)
showm.call(13,0,2,0)
showm.call(18,0,2,0)


Also, what happens when the game is in fullscreen and the player resets by pressing F12?

And EvilM00s, that would work in VX and VXA straight.
Title: Re: Auto Full Screen Script
Post by: EvilM00s on March 21, 2012, 12:56:31 PM
I knew that! I was... just... seeing if YOU knew that. Yeah.
Okay, not really. I had no idea. But thanks for setting me straight, MA.
Title: Re: Auto Full Screen Script
Post by: orb on March 22, 2012, 12:04:21 PM
Thanks for telling Modern Algebra. Actually I have been using RPG Maker XP for just 2months so I don't know much. In fact I have made only two scripts, this is one of those. When the player will press the F12 button the game will become windowed and when the player presses the F12 button again, then the game will again becomefull screen.
Thanks :)