I wrote a really annoying program that goes something like this:
I was wondering, is there a way to move the console window? All this does is resize.Code:#include <time.h> #include <windows.h> #include <stdlib.h> int main() { time_t now; time(&now); srand(now); while(true) { Sleep(100); SMALL_RECT WinRect = {0, 0, rand() % 100 + 1, rand() % 70 + 1}; SMALL_RECT* WinSize = &WinRect; SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE), true, WinSize); } return 0; }