Basic Window Resizer

Chaos_Prime

Villager
Member
Joined
May 18, 2012
Messages
20
Reaction score
2
First Language
English
Primarily Uses
This is a good script though I'm wondering will this

effect full screen if you say place - Window_Resize.r(width, height)

at the end of the script? or would we have to add the one for full screen after it?
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
It doesn't affect full screen, full screen will look the same despite what .r option you use.
 

Mayke

Villager
Member
Joined
Jun 17, 2012
Messages
10
Reaction score
0
First Language
English
Primarily Uses
Couldn't you just hit F1 and toggle fullscreen option?
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
You could. This is for other uses though.
 

tigerstudios

Veteran
Veteran
Joined
Dec 24, 2012
Messages
38
Reaction score
0
First Language
English
Primarily Uses
OP!? OP!!!? Crazy lingo. Could just say my name


There was technically nothing for him to fix, just had to show him how to do it right!


I will not collaborate and listen! Actually... I might listen, probably won't collaborate though.

I made the script approximately 225% more awesome by adding three more functions, one to make fullscreen windowed, and two to toggle fullscreen on and off.

Check the commented portion of the script for the details.

I might be a little grumpy at the moment so if any of this offends anyone, I'm either sorry or glad I did my job right.

Bananas.
Just browsing through your scripts and saw this...

I love the reference to Vanilla Ice.
 

Shinikaze

Villager
Member
Joined
Jan 21, 2013
Messages
22
Reaction score
0
First Language
English
Primarily Uses
There is no way to call this before a main scene? Maybe to resize the Title screen?
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Just place the script call in the script below everything.
 

scanti

Warper
Member
Joined
Jan 29, 2013
Messages
4
Reaction score
3
First Language
English
Primarily Uses
I hope Vlue doesn't mind but I've found an easy way to disable alt-enter while your rpg maker game is running.

To disable alt-enter add the lines:

RegHotKey=Win32API.new('user32','RegisterHotKey','IIII','I')

RegHotKey.call(0,1,1,13)

And re-enable alt-enter use:

UnregHotKey=Win32API.new('user32','UnregisterHotKey','II','I')
UnregHotKey.call(0,1)

It's not perfect. It will disable alt-enter for all windows on your desktop while active i.e. if your click on a file in file explorer and press alt-enter the file properties won't show.

How it works is it creates a global hotkey for alt-enter. A global hotkey is a hotkey that activates even when the calling program's window isn't in focus. As the hotkey doesn't have a function attached to it, it just doesn't do anything. (In case anyone asks adding a function to the hotkey is way beyond what you can do with Win32API).
 

ultrabonz

Villager
Member
Joined
Aug 9, 2012
Messages
29
Reaction score
1
First Language
German
Primarily Uses
Excellent script!

It doesn't affect full screen, full screen will look the same despite what .r option you use.
I like the Window.Resize.f option in your script. But I would like to keep the graphics this way in full screen mode.

So the graphics would scale to monitor size in full screen mode.

So say this is not possible? Could this be done with a script?
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
377
First Language
English
Primarily Uses
Doesn't full screen stretch to fit as is anyways? (When you press alt+enter)
 

SlashmasterGames.TM

Professional Player / Tester
Veteran
Joined
Nov 28, 2015
Messages
52
Reaction score
6
First Language
English
Primarily Uses
Ummmm.... Where Do I Place It? I'm VERY Sorry, I Just Couldn't Figure IT Out!
 

Unknown2001

Veteran
Veteran
Joined
Jul 28, 2019
Messages
31
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Hello everyone I'm new here and hope to learn how to resize my games window
can anyone please tell me how to use this script?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

2nd character based on the same random inputs
the coffee shop i go to for open mic every friday only has 2 more open mics left and then they're done :'( i'm gonna die!
Everytime someone says Intel "kabylake" I hear either baby lake or ladycake.
Either I just had one of those dreams where you think you're awake, or I have time traveled. I woke up at 6:58am this morning, heard my father leaving for work, laid back down, now its 1:16am.
So the overhaul on my project has been going great, I like this version of the project a lot more. It's more contained and less overly ambitious for what I can achieve given my constraints on time, money, and skills in advanced programming. I'm going to wait till my project is mostly finished to begin working UI polish again. I'm going to learn how to use LUNA MV to polish the project.

Forum statistics

Threads
93,381
Messages
911,851
Members
122,885
Latest member
Hayato7729
Top