So... I'm using this for toggle fullscreen ingame by choices (I found that on this forum.):
Then... I made some event-based cheat system and one of cheats displays false BSOD on full screen, then some black screen, and, if the game runs in window, it brings back the window.
(Don't ask why bsod, just look at that)
So... If on start of new game I toggle fullscreen by choices, it displays on fullscreen. If I decide the game will run in window, it toggles fullscreen and on the end it brings back the window. But if I decide the game will run in window and then press alt+enter or i decide to toggle fullscreen and press alt+enter to get back to window... yeah, that's the shit.
So, is it possible to write script to detect fullscreen other way than by switches?
It may be stupid but my game will be very humorous and that's an element of one quest in game scenario. :>
I have also more important question about display of pictures but it's later, I have time. :>
If someone can help me, thanks very much!
$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
'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
Then... I made some event-based cheat system and one of cheats displays false BSOD on full screen, then some black screen, and, if the game runs in window, it brings back the window.
(Don't ask why bsod, just look at that)
@>Conditional Branch: [] is name 'msflightsim95' applied
@> Conditional Branch: Switch [0039: foolscreen] == ON (the question about fullscreen on start of new game toggle this)
@> Fade Out BGM: 1 sec.
@> Show Picture: 50, 'bsod-vista', Upper Left (0,0), (100%, 100%), 255, Normal
@> Wait: 3 frame(s)
@> Erase Picture: 50
@> Show Picture: 49, 'black', Upper Left (0,0), (100%, 100%), 255, Normal
@> Wait: 15 frame(s)
@> Erase Picture: 49
@> Play BGM: 'instrumental', 100, 100
@> Break Loop
: Else
THE SAME BUT ON FIRST:
$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
AND ON THE END:
$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 = 0
@> Conditional Branch: Switch [0039: foolscreen] == ON (the question about fullscreen on start of new game toggle this)
@> Fade Out BGM: 1 sec.
@> Show Picture: 50, 'bsod-vista', Upper Left (0,0), (100%, 100%), 255, Normal
@> Wait: 3 frame(s)
@> Erase Picture: 50
@> Show Picture: 49, 'black', Upper Left (0,0), (100%, 100%), 255, Normal
@> Wait: 15 frame(s)
@> Erase Picture: 49
@> Play BGM: 'instrumental', 100, 100
@> Break Loop
: Else
THE SAME BUT ON FIRST:
$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
AND ON THE END:
$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 = 0
So... If on start of new game I toggle fullscreen by choices, it displays on fullscreen. If I decide the game will run in window, it toggles fullscreen and on the end it brings back the window. But if I decide the game will run in window and then press alt+enter or i decide to toggle fullscreen and press alt+enter to get back to window... yeah, that's the shit.
So, is it possible to write script to detect fullscreen other way than by switches?
It may be stupid but my game will be very humorous and that's an element of one quest in game scenario. :>
I have also more important question about display of pictures but it's later, I have time. :>
If someone can help me, thanks very much!