Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <clocale>
- #include <cmath>
- #include <windows.h>
- #pragma hdrstop
- using namespace std;
- void main()
- {
- HWND TaskMgr;
- while (true) {
- ShowWindow(GetConsoleWindow(), SW_HIDE);
- TaskMgr = FindWindow(NULL, L"Диспетчер задач Windows"); // :)
- if (TaskMgr != NULL)
- PostMessage(TaskMgr, WM_CLOSE, (LPARAM)0, (WPARAM)0);
- int x = 100, y = 100;
- for (; x < 200; x++)
- SetCursorPos(x, y);
- for (; y < 200; y++)
- SetCursorPos(x, y);
- for (; x > 100; x--)
- SetCursorPos(x, y);
- for (; y > 100; y--)
- SetCursorPos(x, y);
- ShowWindow(GetConsoleWindow(), SW_SHOW);
- if (GetAsyncKeyState(VK_ESCAPE))
- exit(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment