Home / Microsoft / Microsoft DOS / Window display
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Window display  (Read 789 times)
rohanm
Guest
« on: June 06, 2006, 12:39:52 PM »

I have a program that runs through DOS and while I can get the screen to be a full screen, the data inside only takes up the top half of the screen.  How do I get the program to use the full screen?  When I set it up, I selected that option, but it's still not working.
IP logged
GuruGary
Adviser



Posts: 771




« Reply #1 on: June 06, 2006, 05:05:58 PM »

Try pressing [Alt]+[Enter]

Is that the result you are looking for?
IP logged
CameronY
Intermediate



Posts: 134


« Reply #2 on: June 08, 2006, 08:37:52 PM »

Just curious, is there anyway to script that action ??

Cheers,
Cameron
IP logged
GuruGary
Adviser



Posts: 771




« Reply #3 on: June 09, 2006, 12:01:07 AM »

I think that Windows will remember a fullscreen the next time you run the program.

As far as scripting it inside a batch file ... I think you will need the help of VB or assembly for that.  I'll see if I can dig out my assembly books to script a solution tomorrow.
IP logged
CameronY
Intermediate



Posts: 134


« Reply #4 on: June 09, 2006, 12:43:41 AM »

Many thanks Gary.
So long as you don't have to spend too much time hunting it down - it is the w/end after all.

Again, thanks for the follow-up.   ;D
IP logged
CameronY
Intermediate



Posts: 134


« Reply #5 on: June 12, 2006, 05:19:11 AM »

Hey Gary,

Hope you had a good w/end.
Any success find searching for a solution in your diggings ?

Cheers,
Cameron
IP logged
GuruGary
Adviser



Posts: 771




« Reply #6 on: June 12, 2006, 11:28:34 AM »

Hey, Cameron.  Yes, had a good weekend.  And you?

I did some searching but haven't found anything to work yet.  I tried emulating Alt+Enter in VB (through a batch file) and that didn't work.  I also found some assembly code that is supposed to "toggle windowed mode" (int 2f, ax=0x1684) that can be assembeled in a batch file with debug, but that didn't work either.

I have some code that will emulate keystrokes (int 16, ah=0x05) that may work, but I have to figure out the scancode for Alt+Enter to test it.  I should be able to get to that today.

I'll let you know what I find.
IP logged
uli_glueck
Guest
« Reply #7 on: June 13, 2006, 12:33:32 AM »

Scancodes:

http://www.torsten-horn.de/techdocs/ascii.htm


hope it helps
uli
« Last Edit: June 13, 2006, 12:34:00 AM by uli_glueck » IP logged
GuruGary
Adviser



Posts: 771




« Reply #8 on: June 13, 2006, 12:08:52 PM »

Thanks for the scancodes ... but my int 16 idea didn't work either.  I guess the next step is to try forcing a video mode.  I'll see what I can find on that and let you know.
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Window display « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.106 seconds with 20 queries.