fullscreen batch
Moderator: DosItHelp
Re: fullscreen batch
The window function for set the fullscreen is SetConsoleDisplayMode.
In windows 8 (after disable the display adapter), this function set a error ERROR_CALL_NOT_IMPLEMENTED.
In windows 8 (after disable the display adapter), this function set a error ERROR_CALL_NOT_IMPLEMENTED.
Last edited by carlos on 18 Dec 2013 09:24, edited 1 time in total.
Re: fullscreen batch
I think that is better in windows 7 and 8 emulate the fullscreen setting the windows size to the max values.
-
- Expert
- Posts: 973
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
Re: fullscreen batch
foxidrive wrote:Did you disable the graphic card in device manager? What happens? Does colour depth or resolution suffer?
Or just turn off graphic card acceleration?
Microsoft has a devcon.exe for download to control hardware from the command line.
yes, I have disabled the graphics card in device manager. The resolution go down at 800x600 32bit (i thinks that use the vgasave driver). I don't have an option for disabling/enabling acceleration.
I have tried devcon and work well. This work for current cmd too!
Thanks foxidrive!
Einstein1969
Re: fullscreen batch
I have a idea for do a best fullscreen emulation for windows 7 and 8.
Currently, I'm writing it.
Edit: Here is: http://www.dostips.com/forum/viewtopic.php?f=3&t=5166
Currently, I'm writing it.
Edit: Here is: http://www.dostips.com/forum/viewtopic.php?f=3&t=5166
Last edited by carlos on 18 Dec 2013 09:34, edited 1 time in total.
-
- Expert
- Posts: 973
- Joined: 15 Jun 2012 13:16
- Location: Italy, Rome
Re: fullscreen batch
Hi i have tested for perfomance a fullscreen mode(TEXTMODE) + fs 0.2
results: windows 7 32bit
Fullscreen mode(ALT+ENTER) /TEXTMODE is more powerful (than) graphics mode. (apart cls)
Use fs does not affect the performance.
Einstein1969
Code: Select all
@echo off & setlocal
rem fs
mode con cols=80 lines=40
pause
rem prepare a file for type
type nul>%tmp%\dummy.txt
set L=
For /L %%n in (1,1,76) do call set L=%%L%%_
(For /L %%n in (10,1,46) do Echo(%%n%L%)>>%tmp%\dummy.txt
set count=10000
set t0=%time%
For /l %%n in (1,1,%count%) do cls
for /F "tokens=1-8 delims=:.," %%a in ("%t0: =0%:%time: =0%") do set /a "a=(((1%%e-1%%a)*60)+1%%f-1%%b)*6000+1%%g%%h-1%%c%%d, a+=(a>>31) & 8640000, cls_micros=a*10000/%count%"
set count=1000
set t0=%time%
For /l %%n in (1,1,%count%) do (cls&type %tmp%\dummy.txt)
for /F "tokens=1-8 delims=:.," %%a in ("%t0: =0%:%time: =0%") do set /a "a=(((1%%e-1%%a)*60)+1%%f-1%%b)*6000+1%%g%%h-1%%c%%d, a+=(a>>31) & 8640000, type_micros=a*10000/%count%-cls_micros"
set t0=%time%
For /l %%n in (1,1,%count%) do (cls&For /L %%n in (10,1,46) do Echo(%%n%L%)
for /F "tokens=1-8 delims=:.," %%a in ("%t0: =0%:%time: =0%") do set /a "a=(((1%%e-1%%a)*60)+1%%f-1%%b)*6000+1%%g%%h-1%%c%%d, a+=(a>>31) & 8640000, for_micros=a*10000/%count%-cls_micros"
echo cls: %cls_micros% micro-seconds
echo type: %type_micros% micro-seconds
echo echo: %for_micros% micro-seconds
pause
goto :eof
results: windows 7 32bit
Code: Select all
normal(GRAPHICS MODE):
cls: 124 micro-seconds
type: 5776 micro-seconds
echo: 4946 micro-seconds
fs v0.2(GRAPHICS MODE):
cls: 127 micro-seconds
type: 5703 micro-seconds
echo: 4963 micro-seconds
disable graphics card + fs v0.2 + ALT+ENTER (TEXT MODE):
cls: 448 micro-seconds
type: 2562 micro-seconds
echo: 2922 micro-seconds
disable graphics card + ALT+ENTER (TEXT MODE):
cls: 447 micro-seconds
type: 2573 micro-seconds
echo: 2963 micro-seconds
disable graphics card (GRAPHICS MODE) :
cls: 176 micro-seconds
type: 45724 micro-seconds
echo: 37744 micro-seconds
disable graphics card + fs v0.2 (GRAPHICS MODE):
cls: 174 micro-seconds
type: 47176 micro-seconds
echo: 39126 micro-seconds
Fullscreen mode(ALT+ENTER) /TEXTMODE is more powerful (than) graphics mode. (apart cls)
Use fs does not affect the performance.
Einstein1969
-
- Posts: 26
- Joined: 03 Dec 2013 12:34
Re: fullscreen batch
ok since i cant make it fullscreen can i disable the close button
Re: fullscreen batch
AFAIK the close button cannot be disabled.
Re: fullscreen batch
admin care to explain?
Taken to PM
Re: fullscreen batch
foxidrive wrote:AFAIK the close button cannot be disabled.
foxidrive. It can be done.
The code is very simple.
I will post .