Finding the current focused window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gilgul
    New Member
    • Feb 2008
    • 1

    Finding the current focused window

    Hi i am trying to find the handle of the current focused control in all the running application.
    I tried GETFOCUS() but it gave the the handle only of the current thread

    There are 2 options of solving it.
    One, is to find an API function that do it.
    Secound, is to find a function that detarmin if a control is focused the i can make a loop checking all the controls.

    Please halp me fint one of this functions.

    BTW: I allready tried
    Function Isfocused(Handl e as intptr)
    Dim c as control = control.fromhan dle(handle)
    return c.focused
    But This works only for .net controls

    I have spend hours trying to solve this, Pleeeaaasee help me
Working...