Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: legacyblade on June 23, 2010, 01:24:57 am

Title: Always fullscreen?
Post by: legacyblade on June 23, 2010, 01:24:57 am
Hey. I'm using blizz's mouse controller for my games. The only flaw in the system is that in windowed mode, you can see the windows cursor above your in-game cursor. So my solution to this is to make the game always fullscreen. Basically, I just want a way to disable the alt+enter combo to switch between fullscreen and windowed.
Title: Re: Always fullscreen?
Post by: nathmatt on June 23, 2010, 09:41:03 am
just add the full screen code to main above $scene = Scene_Title.new

 keybd = Win32API.new 'user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], '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)
Title: Re: Always fullscreen?
Post by: legacyblade on June 23, 2010, 10:46:28 am
All that does is make it auto-fullscreen. But it still goes back to windowed mode if you press alt+enter. I want it to never switch to windowed mode, no matter what you press.
Title: Re: Always fullscreen?
Post by: ForeverZer0 on June 23, 2010, 06:34:36 pm
Quote from: legacyblade on June 23, 2010, 10:46:28 am
All that does is make it auto-fullscreen. But it still goes back to windowed mode if you press alt+enter. I want it to never switch to windowed mode, no matter what you press.


Maybe try making an exception class for the button combo, and creating a rescue clause for it? I don't know much about other computer languages other than Ruby. You may find some luck trying it that way. Is the alt + enter combo an RMXP combo, or is it more of a Windows based thingy.. :wacko:
Title: Re: Always fullscreen?
Post by: G_G on June 23, 2010, 10:59:59 pm
I could probably do this. As long as you're using Blizz-Abs or tons of addons custom controls I might be able to pull it off.

I'll have it detect if the user is pressing Ctrl + Enter. When it does it'll shrink the screen but immediatly it will make it go back to fullscreen.
Title: Re: Always fullscreen?
Post by: legacyblade on June 24, 2010, 01:31:42 am
I'm using ToA custom controls. And if you could do that, G_G, it'd be freaking awesome :D
Title: Re: Always fullscreen?
Post by: nathmatt on June 24, 2010, 10:15:22 am
G_G its alt + enter and be careful doing that was trying to do that yesterday and it got stuck switching back and forth until it works might want to leave a p something to stop it just in case it tries to do that to you