ha okay... ho capito!!Originariamente inviato da MItaly
Assolutamente no, quelle quattro istruzioni sono "indivisibili":
codice://Queste quattro istruzioni rappresentano il premere ALT+INVIO e rilasciare i tasti. // Stato dei tasti (P=premuto R=rilasciato): ALT INVIO keybd_event(VK_MENU, 0, 0, 0); //Preme e tiene premuto ALT P R keybd_event(VK_RETURN, 0, 0, 0); //Preme e tiene premuto INVIO P P->qui va in fullscreen/ritorna alla finestra keybd_event(VK_MENU, 0, 2, 0); //Rilascia ALT R P keybd_event(VK_RETURN, 0, 2, 0); //Rilascia INVIO R R
allora per passare in fullscreen chiama così:
max();
void max()
{
keybd_event(VK_MENU, 0, 0, 0);
keybd_event(VK_RETURN, 0, 0, 0);
keybd_event(VK_MENU, 0, 2, 0);
keybd_event(VK_RETURN, 0, 2, 0);
}