RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Automatic Full-screen [RMXP]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 87
Crazy Furry RPG Fan of Doom
Yes, I've done a search on making games full-screen, and thanks to this I know pressing Alt+Enter will result as such.

I've seen games, however, that run in full-screen without need for pressing Alt+Enter. Yes, fully automated 1024x768 bliss without the need of pressing those two little buttons.

(Look at them on your keyboard. Go on, do it now. Now ask yourself if they're really needed to fill your monitor with roleplaying goodness. You know the right answer.)

In any case... yes, you all saw it coming at you like a starving Ethiopian child at a MacDonald's giveaway... how does one attain this marvellous feature? I know it's doubtlessly done through scripts, but I'm still pretty new to all this RPG Maker XP malarkey and don't quite trust myself with its finer features yet... (lays ears flat) so any help would be appreciated muchly. Ta in advance.
« Last Edit: July 17, 2007, 01:30:43 PM by Zeriab »
?uoy t'noD ?ton yhW .yllamron depyt meht gniees fo derit tog I .sdrawkcab erutangis siht nettirw ev'I ,seY

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Zero to Hero2013 Biggest Drama WhoreParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Quote
if $full == nil
    $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 = 1
  end
&&&&&&&&&&&&&&&&

*
A Random Custom Title
Rep:
Level 96
wah
Lol wow, nice, BoE. Did you make that or was it taken from somewhere else?

**
Rep: +0/-0Level 87
Crazy Furry RPG Fan of Doom
Quote
if $full == nil
    $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 = 1
  end

Thanks, BOE... like I said, though, this doesn't really mean much to me... I wouldn't have the first clue where to put it or what to use it with...
?uoy t'noD ?ton yhW .yllamron depyt meht gniees fo derit tog I .sdrawkcab erutangis siht nettirw ev'I ,seY

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Here's a commented version ^_^
Code: [Select]
if $full == nil
  $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
  $showm.call(18,0,0,0)  # Press ALT down
  $showm.call(13,0,0,0)  # Press ENTER down
  $showm.call(13,0,2,0)  # Release ENTER
  $showm.call(18,0,2,0)  # Release ALT
  $full = 1
end

You can put it pretty much anywhere before the main in the script editor.
Simply click a spot, press Insert and click on the new blank area. Paste the script there.
Still don't understand? Read http://rmrk.net/index.php/topic,263.0.html

Blizzard made one where you at startup can choose whether you full-screen or not.
Some people prefer that you don't force the game to go into full-screen ;)

**
Rep: +0/-0Level 87
Crazy Furry RPG Fan of Doom
Ahhh, thanks a lot Zeriab! ^o^ I'd tinkered with this before on my own and turns out I was just putting it in the wrong place. :3
?uoy t'noD ?ton yhW .yllamron depyt meht gniees fo derit tog I .sdrawkcab erutangis siht nettirw ev'I ,seY

*
A Random Custom Title
Rep:
Level 96
wah
Zeriab, for that script, I have a question: How do you find out the number of each key? Like ALT = 18 and Enter = 13 but the other ones?

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind

*
A Random Custom Title
Rep:
Level 96
wah
Lol, I can't understand that, but whatever. XD

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Well, if you look at the microsoft side it's just to find the key you want, look at the number in the (parenthesis). It is in hex though.

We have for example
Quote
VK_F12 (7B)
    F12 key

7B = 123, so basically you can press F12 down with '$showm.call(123,0,0,0)  # Press ALT down' ^^

There is for some reason up to F24, but don't ask me why, neither as me why F22 is 85H and not 85 (133)

Let's for an example say you want to open the keyboard configuration. I.e. we want to press F1:
You look F1 up in the Microsoft list and get:
Quote
VK_F1 (70)
    F1 key

You convert 70 from hex to dec and get 112
Then it's just
Code: [Select]
  $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
  $showm.call(112,0,0,0)  # Press F1 down
  $showm.call(112,0,2,0)  # Release F1

You may not even have to convert 70. You might be able to use it anyway. I haven't tested it, but this might work as well:
You convert 70 to hex and get 112
Then it's just
Code: [Select]
  $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
  $showm.call(0x70,0,0,0)  # Press F1 down
  $showm.call(0x70,0,2,0)  # Release F1
« Last Edit: July 17, 2007, 05:00:53 PM by Zeriab »

*
A Random Custom Title
Rep:
Level 96
wah
That confuses me so I abandon the task of learning that.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I've edited it to make it more sensible ^^ (I hope)

*
A Random Custom Title
Rep:
Level 96
wah
Yea, I already knew about changing from hex to dec but... I'm just dumb, let's leave it at that.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
cybersam's Keyboard Input Script shows you a list if you wanted it. I don't think I should post it though as I have no permission to do so.

I actually just used it to make a script  ;D