VOGONS


First post, by tomexplodes

User metadata
Rank Member
Rank
Member

Title. I found nircmd at one point, which lets me change res via a batch file, the problem is I'd do something like

nircmd setdisplay 800x600x16
mageslay.exe
nircmd setdisplay 800x600x32

and it would WORK but it did all three of those things in rapid succession, so it skipped the whining but went right back to 32bit color.

If there's no way to do it, that's totally fine, but I figured it couldn't hurt to check. Thanks!

- Tom

1.) MS-DOS 6.22, Pentium-S 90mhz, 32mb RAM, S3 Trio64, Vibra 16
2.) Windows 98 SE, AMD Athlon XP 3000+ 2.1ghz, 512mb RAM, Geforce 4 TI 4200 128mb, Sound Blaster Live! Value

Reply 2 of 3, by Falcosoft

User metadata
Rank l33t
Rank
l33t
tomexplodes wrote on 2020-07-08, 18:39:
Title. I found nircmd at one point, which lets me change res via a batch file, the problem is I'd do something like […]
Show full quote

Title. I found nircmd at one point, which lets me change res via a batch file, the problem is I'd do something like

nircmd setdisplay 800x600x16
mageslay.exe
nircmd setdisplay 800x600x32

and it would WORK but it did all three of those things in rapid succession, so it skipped the whining but went right back to 32bit color.

If there's no way to do it, that's totally fine, but I figured it couldn't hurt to check. Thanks!

- Tom

You should use 'start' command with /w[ait] option to execute your program. This way your batch file (and thus 'nircmd setdisplay 800x600x32') will wait for your game to exit.

nircmd setdisplay 800x600x16
start /w mageslay.exe
nircmd setdisplay 800x600x32

Website, Youtube
Falcosoft Soundfont Midi Player + Munt VSTi + BassMidi VSTi
VST Midi Driver Midi Mapper
x86 microarchitecture benchmark (MandelX)

Reply 3 of 3, by tomexplodes

User metadata
Rank Member
Rank
Member
Falcosoft wrote on 2020-07-08, 20:40:
You should use 'start' command with /w[ait] option to execute your program. This way your batch file (and thus 'nircmd setdispla […]
Show full quote
tomexplodes wrote on 2020-07-08, 18:39:
Title. I found nircmd at one point, which lets me change res via a batch file, the problem is I'd do something like […]
Show full quote

Title. I found nircmd at one point, which lets me change res via a batch file, the problem is I'd do something like

nircmd setdisplay 800x600x16
mageslay.exe
nircmd setdisplay 800x600x32

and it would WORK but it did all three of those things in rapid succession, so it skipped the whining but went right back to 32bit color.

If there's no way to do it, that's totally fine, but I figured it couldn't hurt to check. Thanks!

- Tom

You should use 'start' command with /w[ait] option to execute your program. This way your batch file (and thus 'nircmd setdisplay 800x600x32') will wait for your game to exit.

nircmd setdisplay 800x600x16
start /w mageslay.exe
nircmd setdisplay 800x600x32

That's perfect! Thank you so much!

Er, once I took out the Xs anyway, haha. Thanks again!

1.) MS-DOS 6.22, Pentium-S 90mhz, 32mb RAM, S3 Trio64, Vibra 16
2.) Windows 98 SE, AMD Athlon XP 3000+ 2.1ghz, 512mb RAM, Geforce 4 TI 4200 128mb, Sound Blaster Live! Value