How to change video to fullscreen and windowed in console? This is because Valve doesn't fix the bug of showing scoreboard when pressing Tab, so the quick way would be to make this change as quick as possible.
Asked
Active
Viewed 1.5e+01k times
2 Answers
15
mat_setvideomode 1920 1080 0 // 1080p Fullscreen
mat_setvideomode 1920 1080 1 // 1080p Window Mode
You can use these to change to windowed/full-screen (specify your own resolution if it's not 1080p).
Then you can bind a key to switch between fullscreen and windowed like this:
bind "F3" "toggle mat_setvideomode 1920 1080 0 1"
b00n
- 756
- 4
- 10
0
I am just adding this answer because I am unable to comment:
I was unable to switch between fullscreen and windowed by using the toggle command. If you want to toggle full screen on and off with a button, I found these commands to work:
alias turnOnFullscreen "bind F11 turnOffFullscreen;mat_setvideomode 1920 1080 0"
alias turnOffFullscreen "bind F11 turnOnFullscreen;mat_setvideomode 1920 1080 1"
bind F11 turnOffFullscreen
And then you can of course change the button from F11 to something else and change your resolution from 1920x1080 if you want a different resolution :)
LollyLOL
- 19
- 2