I hope if there is any code to change or trigger the Command Prompt to be in full screen mode? I searched it on many sites but coudnt find one. Hoping that there is an answer for it. Thank you
Printable View
I hope if there is any code to change or trigger the Command Prompt to be in full screen mode? I searched it on many sites but coudnt find one. Hoping that there is an answer for it. Thank you
After some googling I found it very easily. Take a look here.
It seems that the codes there are not supported in C.
Are you sure that this codes are supported in C? I doubt
It is possible to use it in C code. You just have to include windows.h. Many times I have used Windows API in C applications, I hope that you can as well.
Check this code for fullscreen.
Code:include <windows.h>
void "whatevernameyouwanttogiveit"()/* function definition for
fullscreen */
{ keybd_event(VK_MENU,
0x38,
0,
0);
keybd_event(VK_RETURN,
0x1c,
0,
0);
keybd_event(VK_RETURN,
0x1c,
KEYEVENTF_KEYUP,
0);
keybd_event(VK_MENU,
0x38,
KEYEVENTF_KEYUP,
0);
}
It is now working, thanks for all the help guys. Cheers