How can I check if the focus is on a specific window(program).
My program should do something only if the focus is on notepad. If the focus is on something else it should do nothing.
So.. I have the PID and the image name of the progam to check... but i don't know how to validate it..