Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Aku_Aku, ozgur), 1,095 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
alt-enter #35404
10/27/04 12:25
10/27/04 12:25
Joined: Jan 2002
Posts: 321
Littleton, CO. USA
D
dleuen Offline OP
Senior Member
dleuen  Offline OP
Senior Member
D

Joined: Jan 2002
Posts: 321
Littleton, CO. USA
Does anyone know if the engine (or more useful, c-script) gets a notification when the user does an alt-enter to change to/from full screen mode? I have an options panel that allows you to select full screen or windowed mode but it can become out of sync. I suppose as an alternative, everytime the panel is opened I could read the current mode and set it according to that state.

Don

Re: alt-enter [Re: dleuen] #35405
10/27/04 19:48
10/27/04 19:48
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
You could permantly read out the video_screen variable which determines whether A6 is running in fullscreen (1) or windowed mode (2)... Or did I understand sth. wrong there?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: alt-enter [Re: dleuen] #35406
10/27/04 19:51
10/27/04 19:51
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
video_screen == 1 -> fullscreen
video_screen == 2 -> window mode


Follow me on twitter
Re: alt-enter [Re: mk_1] #35407
10/27/04 23:55
10/27/04 23:55
Joined: Jan 2002
Posts: 321
Littleton, CO. USA
D
dleuen Offline OP
Senior Member
dleuen  Offline OP
Senior Member
D

Joined: Jan 2002
Posts: 321
Littleton, CO. USA
Yes, I am aware of the video_screen variable. What I was looking for was a way to get a function called when alt-enter is hit. I just re-read the manual for on_f1... and see it passes the scan code as argument. Therefore I should be able to use something like on_enter=my_screenswitch, check for an alt in the scancode and have my game deal with the screen mode switch.

Don

Re: alt-enter [Re: dleuen] #35408
10/28/04 00:02
10/28/04 00:02
Joined: Oct 2003
Posts: 1,258
Virginia, USA
qwerty823 Offline
Senior Developer
qwerty823  Offline
Senior Developer

Joined: Oct 2003
Posts: 1,258
Virginia, USA
Yes, this is what the default in the engine does:

Code:

action _toggle_screen
{
if (key_alt == 0)
{
return;
}
temp = video_screen + 1;
if (temp > 2)
{
temp = 1;
}
video_switch(0,0,temp);
if (result == 0)
{
beep;
}
}

on_enter _toggle_screen;




Never argue with an idiot. They drag you down to their level then beat you with experience
Re: alt-enter [Re: qwerty823] #35409
10/28/04 01:24
10/28/04 01:24
Joined: Jan 2003
Posts: 710
T
Templar Offline
Developer
Templar  Offline
Developer
T

Joined: Jan 2003
Posts: 710
what you're looking for is problably "window_focus" instruction.

Re: alt-enter [Re: Templar] #35410
10/28/04 01:36
10/28/04 01:36
Joined: Oct 2003
Posts: 1,258
Virginia, USA
qwerty823 Offline
Senior Developer
qwerty823  Offline
Senior Developer

Joined: Oct 2003
Posts: 1,258
Virginia, USA
If it was ALT-TAB, then yes. ALT-ENTER toggles between fullscreen and window mode.


Never argue with an idiot. They drag you down to their level then beat you with experience
Re: alt-enter [Re: Templar] #35411
10/28/04 03:10
10/28/04 03:10
Joined: Aug 2003
Posts: 191
Texas
CrownStem Offline
Member
CrownStem  Offline
Member

Joined: Aug 2003
Posts: 191
Texas
Does anyone know how to bring back the window from a minimized state?


CrownStem

Re: alt-enter [Re: CrownStem] #35412
10/28/04 07:24
10/28/04 07:24
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
a little dll would do the job.


Follow me on twitter
Re: alt-enter [Re: mk_1] #35413
10/28/04 07:40
10/28/04 07:40
Joined: Aug 2003
Posts: 191
Texas
CrownStem Offline
Member
CrownStem  Offline
Member

Joined: Aug 2003
Posts: 191
Texas
...Yep. Couldn't find any c-script to do it, so I'm playing with the API in an .exe now.

CrownStem

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1