SendInput() is turning off the screen?

when this code runs it will turn off my screen, like when I'm afk for a while, what can cause this error? O_o

1
2
3
4
5
6
7
8
9
10
11
12
13
INPUT ip;
			ip.type = INPUT_MOUSE;
			ip.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE;
			ip.mi.dx = 1360*(65536/GetSystemMetrics(SM_CXSCREEN));
			ip.mi.dy = 600*(65536/GetSystemMetrics(SM_CYSCREEN));
			ip.mi.mouseData = 0;
			SendInput(1, &ip, sizeof(ip));
			Sleep(50);
			ip.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
			SendInput(1, &ip, sizeof(ip));
			Sleep(50);
			ip.mi.dwFlags = MOUSEEVENTF_LEFTUP;
			SendInput(1, &ip, sizeof(ip));
Topic archived. No new replies allowed.