I have an application that acts like an on screen keyboard, I need it to know if there is a keyboard cursor (caret) active any where, so the keyboard will set to active.
I have searched for keyboard hooks and winapi, but I couldn’t find the proper method to use.
To simplify my problem, I need my application to be active if the user can press on the real keyboard and print text on the computer.
It is easy by searching for the caret position, since it should be larger than 0