Pregunta

I use Windows 7 Ultimate.I set the CMD on pc to almost fullscreen(changed the properties from cmd title bar).Though taskbar is visible , it is the maximum fullscreen possible on Windows 7,I suppose.

I wrote code for a small command line user interface game.I've made a mistake by assuming the output screen to be maximized on every user's PC.

So,when I run it on another windows 7 machine,I'm getting weird output as the cmd screen is not maximized on their PC.

How can I ensure that I get the cmd screen set to fullscreen(almost fullscreen) on every PC it runs?

Can I call some functions in my code? Or any other way? I like to share it(the .exe file of my code) on the internet.So, how I can I fix this.

¿Fue útil?

Solución

What you have to do is run the program and change the settings in that specific command window, not the default settings for your command window. You could do this with code as well, although I don't know how, but this is much easier. Then whenever that program is ran it should override the users default command settings and adhere to your program's.

Here's a similar answer of mine to another question about command colors. Same solution should work here.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top