New account registration is temporarily disabled.

PLS CHANGE THIS SCRIPT TO A NEW WINDOW SIZE

Posts

Pages: 1
I'm an absolute noob or well rather a newbie so could pls someone change this script for me to a windowed size 1024x768

#Basic Window Resizer v1.1
#----------#
#Features: Allows you to resize the window to whatever size you like! (This is not
# like Graphics.resize, this will scale to fit)
#
#Usage: Script calls:
# Window_Resize.r(width, height) - Self-explanatory
# Window_Resize.f - fits the game window to monitor size
# Window_Resize.full - switches to full screen unless already fullscreened
# Window_Resize.window - same as full but opposite
# Window_Resize.toggle - toggles between full and window
#
#No Customization
#
#----------#
#-- Script by: V.M of D.T
#
#- Questions or comments can be:
# posted on the thread for the script
# given by email: sumptuaryspade@live.ca
# provided on facebook: http://www.facebook.com/DaimoniousTailsGames
# posed on site: daimonioustails.wordpress.com
#
#- Free to use in any project with credit given, donations always welcome!

SWPO = Win32API.new 'user32', 'SetWindowPos', , 'i'
WINX = Win32API.new 'user32', 'FindWindowEx', , 'i'
SMET = Win32API.new 'user32', 'GetSystemMetrics', , 'i'

module Window_Resize
def self.r(width, height)
resw = SMET.call(0)
resh = SMET.call(1)
window_loc = WINX.call(0,0,"RGSS Player",0)
width += (SMET.call(5) + SMET.call(45)) * 2
height += (SMET.call(6) + SMET.call(45)) * 2 + SMET.call(4)
x = (resw - width) / 2; y = (resh - height) / 2
y = 0 if y < 0;x = 0 if x < 0
SWPO.call(window_loc,0,x,y,width,height,0)
end
def self.f
resw = SMET.call(0)
resh = SMET.call(1)
window_loc = WINX.call(0,0,"RGSS Player",0)
SWPO.call(window_loc,0,0,0,resw,resh,0)
end
def self.full
resw = SMET.call(0)
return unless resw > 640
toggle
end
def self.window
resw = SMET.call(0)
return unless resw < 640
toggle
end
def self.toggle
keybd = Win32API.new 'user32.dll', 'keybd_event', , 'v'
keybd.call 0xA4, 0, 0, 0
keybd.call 13, 0, 0, 0
keybd.call 13, 0, 2, 0
keybd.call 0xA4, 0, 2, 0
end
end

Script is from V.M of D.T all credits to him
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
Can't you just call Window_Resize.r(1024, 768) to do that?
Like i said im a complete noob at scripting, could someone change that for me in this script
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
You misunderstand me. When you have this script installed, you need to type what I just said into a script call in an event.
I'm still in my 1st week of using rpg maker vx ace, so i still try to get a hang of it. Where exactly do i find that feature ?
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
Well first you need to copy and paste the script from your first post into a blank spot above "main" in the script editor.

Then you need to create an event on a map somewhere, and on page three of the event commands will be "script" where you type in the command I gave you.
I tried it and i get an error, anyway technically i think that sounds wrong. Because it has to work before i run the game and not triggered while i enter a map right ?
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
Try putting it somewhere in Main then.
Pages: 1