Pytanie: Jak zapisac if'a, aby sprawdzal czy F11 zostalo( jest) wcisniete ?
a) Gdy jest wcisniete - nic nie rob
b) gdy niejest wcisniete - wcisnij.
#include<windows.h> using namespace std; int main() { ShellExecute( NULL, "open", "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE", "www.google.pl", NULL,SW_MAXIMIZE ); Sleep(1000); if( ?????????)) { keybd_event(0x7A,0,0,0); } else ??????? return 0; }