fullscreen batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: fullscreen batch

#16 Post by carlos » 14 Dec 2013 10:04

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.
Last edited by carlos on 18 Dec 2013 09:24, edited 1 time in total.

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: fullscreen batch

#17 Post by carlos » 14 Dec 2013 10:13

I think that is better in windows 7 and 8 emulate the fullscreen setting the windows size to the max values.

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#18 Post by einstein1969 » 14 Dec 2013 10:14

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

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: fullscreen batch

#19 Post by carlos » 14 Dec 2013 15:24

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
Last edited by carlos on 18 Dec 2013 09:34, edited 1 time in total.

einstein1969
Expert
Posts: 973
Joined: 15 Jun 2012 13:16
Location: Italy, Rome

Re: fullscreen batch

#20 Post by einstein1969 » 15 Dec 2013 08:53

Hi i have tested for perfomance a fullscreen mode(TEXTMODE) + fs 0.2

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

princesstwi
Posts: 26
Joined: 03 Dec 2013 12:34

Re: fullscreen batch

#21 Post by princesstwi » 17 Dec 2013 13:12

ok since i cant make it fullscreen can i disable the close button

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: fullscreen batch

#22 Post by foxidrive » 17 Dec 2013 18:50

AFAIK the close button cannot be disabled.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: fullscreen batch

#23 Post by foxidrive » 17 Dec 2013 21:53

admin care to explain?


Taken to PM

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: fullscreen batch

#24 Post by carlos » 18 Dec 2013 09:33

foxidrive wrote:AFAIK the close button cannot be disabled.

foxidrive. It can be done.
The code is very simple.
I will post .

Post Reply