i have this code that simulates alt+enter so dos screen goes to fullscreen and i was wondering how to change it so that it simulates the user presing alt+F4. heres tge code
Code:
void fullscreen() //another cool trick that I use to make it full screen or back to normal size
{
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);
}
i dont really get how i would change it can some1 please help me??
any help is appreciated.