View Single Post
Old 16th April 2016, 23:43   #11
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 342
Find the handle that windows focus is on it

Hi
I know can find handle focus a process with this code:

HTML Code:
FindWindow $0 "notepad" ""
Now how can find the handle that windows focus is on it?

For example now windows focus is on notepad
But suppose we dont know focus is on notepad!
i want when my application start after one minunts show a handle that windows focus is on it?


And after find that handle focus i want give notepad focus and after i want compare thats focuses and if thats handles equal then show message 'now windows focus is on notepad'

is possible?
r2du-soft is offline   Reply With Quote