And sorry for the bump like that and I'm new with this forum so didnt know about the edit
Thnkcx you for evrythings
Oh
By the way
1 2 3 4 5
int len = GetWindowTextLength(GetForegroundWindow());
TCHAR *winBuf = new TCHAR[len];
GetWindowText(hWnd,winBuf,len+1);
if(strcmp(winBuf,oldWinBuf) != 0)
winBuf and oldWinBuf they outputting an error
TCHAR* is incompatible with the type const TCHAR* not sure why