0

i have the following code:

HWND window;
	char name[MAX_PATH];

	while(1)
	{
		window = GetForegroundWindow();
		GetWindowText(window,name,sizeof(name));
		strcat(name , "\n");
		WriteToFile(name);
	}

i just want to print it once,and if i open a new window,print that too,once....and so on.....and i dont know what condition to put to work corectly :(

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Ancient Dragon
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.