#define NOMINMAX #include #include #include #include #include void my_SendF11Command () { INPUT inputs[2] = {}; for ( int i = 0 ; i < 2 ; i++ ) { inputs[i].type = INPUT_KEYBOARD; inputs[i].ki.wVk = VK_F11; inputs[i].ki.time = 0; inputs[i].ki.dwExtraInfo = 0; } inputs[0].ki.dwFlags = 0; inputs[1].ki.dwFlags = KEYEVENTF_KEYUP; SendInput( 2 , inputs , sizeof(INPUT) ); } int main () { int opt = 0; do { std::cout << "\n | Choose a activity to realize:" << std::endl; std::cout << "\n [1] Chess/main"; std::cout << "\n [2] Typing/modes"; std::cout << "\n [3] Apple Game"; std::cout << "\n [4] Sudoku/extreme"; std::cout << "\n [5] Caca Palavras"; std::cout << "\n [6] Jogo da Forca"; std::cout << "\n [7] Quebra Cabeca"; std::cout << "\n [8] Mathe Lernen" << std::endl; std::cout << "\n Chosen Option: "; if (!(std::cin >> opt)) { std::cin.clear(); std::cin.ignore(std::numeric_limits::max(), '\n'); system("cls"); std::cout << "\nInvalid input. Please enter a number between 1 and 8." << std::endl; continue; } system("cls"); std::cout << "\nInvalid input. Please enter a number between 1 and 8." << std::endl; } while ( opt < 1 || 8 < opt ); if ( opt == 1 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://www.chess.com/de\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 2 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://www.typing.com/student/tests\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 3 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://en.gamesaien.com/game/fruit_box/\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 4 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://sudoku.com/de/extreme/\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 5 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://rachacuca.com.br/palavras/caca-palavras/\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 6 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://rachacuca.com.br/palavras/jogo-da-forca/\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 7 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://rachacuca.com.br/raciocinio/quebra-cabeca/\" " , NULL, SW_SHOWMAXIMIZED);} if ( opt == 8 ) { ShellExecute(NULL, L"open", L"chrome.exe", L" --incognito --new-window --directory-profile=\"Profile 1\" \"https://mathe-lernen.net/\" " , NULL, SW_SHOWMAXIMIZED);} std::this_thread::sleep_for(std::chrono::seconds(1)); my_SendF11Command(); return 0; }