nih code nya
#include
#include
int main()
{
int seconds = 10; //Change time delay here
clock_t delay = seconds *CLOCKS_PER_SEC;
clock_t start = clock();
while(clock() - start <>
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);}
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
return 0;
}
compile deeh :p
enjoyy
nb : cm jalan bwat platform windows yah.... compile nya juga via winduz doang... cb deh yang pk linuk compile bs ga??
Tidak ada komentar:
Posting Komentar