#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int main () { HWND x; WORD TimerID; x = FindWindow(NULL,"Untitled - Notepad"); TimerID = SetTimer(x,545,1000,NULL); }