Spy++ comes with Visual Studio. It runs in the background, you start other processes, then turn on Spy++ - wherever you move the cursor it gives you information about the window (control) where the cursor current is.