if (FindWindow(NULL, "Calculator") != NULL)
{
cout << "there is a calc" << endl;
}
if (FindWindow(NULL, "Calculator") == NULL)
{
cout << "there is a not calc" << endl;
}
When i run this code even with calculator open it says there is no calculator
I am a beginner.
Works for me with Win 7 and VS 2017.
What do you use ?
Here's a code snippet that prints the Title of all Windows. Have a look if you can find your calculator there.