Help - Search - Members - Calendar
Full Version: Auto Full Screen.
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
Monos
Name: In the script main.
Author Hum Distributed for Topher (No create) (Script XP) and
Adapted for Vx: Me
Nomber Script 1
Information

In the Script "Main"
After "Begins" (Line 12)

Add this script.

CODE
$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)



Full Script main

CODE
#==============================================================================
# ■ Main
#------------------------------------------------------------------------------
#  各クラスの定義が終わった後、ここから実際の処理が始まります。
#==============================================================================

unless Font.exist?("UmePlus Gothic")
  print "UmePlus Gothic フォントが見つかりません。"
  exit
end

begin
$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)
  Graphics.freeze
  $scene = Scene_Title.new
  $scene.main while $scene != nil
  Graphics.transition(30)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("ファイル #{filename} が見つかりません。")
end
Rory
Erm.. actually.. you can just select Game > Start Full Screen to make the game full screen.
woratana
@Magdreamer
I think that option will only effect when you're testing in program, isn't it?

I don't sure about that, because I don't really like the full screen at top-left of the screen.

@Monos
I feel familiar with full screen script for XP, is it the same?
Monos
QUOTE
I feel familiar with full screen script for XP, is it the same?


Hum Yes and no.

This is the script XP i see.

CODE
#=============
# ¦ Main
#---------------------
# ??????????????????
#=============

begin
$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)
# Change the $fontface variable to change the font style
$fontface = "Arial"
# Change the $fontsize variable to change the font size
$fontsize = 24
# ?????????
Graphics.freeze
# ????????? (??????) ???
$scene = Scene_Title.new
# $scene ?????? main ?????????
while $scene != nil
$scene.main
end
# ???????
Graphics.transition(20)
rescue Errno::ENOENT
# ?? Errno::ENOENT ???
# ????????????????????????????????
filename = $!.message.sub("No such file or directory - ", "")
print("File #{filename} was not found.")
end




The script VX is full screen when you play : lunch not in editor. Auto Exe game
And in my pc, the game is center not top-left of the screen.

(sorry for my bad english)
Rory
It works outside the test mode if I'm not wrong.
Monos
QUOTE
It works outside the test mode if I'm not wrong.


Yes. and test mode with me.

"Hum, is not a resolution Script."
jasonicus
Isn't this just a setting in the F1 options? I personally don't like it when it goes to full screen automatically.
Monos
QUOTE
Isn't this just a setting in the F1 options? I personally don't like it when it goes to full screen automatically.


This script is for the final project.

The player Do not know "F1" , editor and alt + enter.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.