Click here to Skip to main content
14,668,708 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello all,

I am developing a simple input method, the requirement is: when some input box in other application, then my input application should show out and after input hide by itself.

Now i set a timer to detect when i should show my window out, so i need to detect the input box window handle of other application, if it is a valid handle, then i will show my input method out. But unfortunately, i don't know to do. Do anybody can help me? thanks very much.

i tried GetForegroundInfo to get the foreground window handle and the focus window handle, but it always return valid value whatever it need input or not.
Posted

Rate this:
Please Sign up or sign in to vote.

Solution 1

All Windows have handles, so you need to have some more information about the type of window you are searching for. Also from your question you are going to miss lots of input if your application relies on a timer. You probably need to look into the use of hooks[^].
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Thanks Richiard,

I think I have to give up this method as i don't know the type of window i am searching for.

whatever, thanks for your reply.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100