Hook to select Process

314 views Asked by At

how to use this lib to hook key and mouse to target process not global not my app

public void Subscribe()
{
    // Note: for the application hook, use the Hook.AppEvents() instead
    m_GlobalHook = Hook.GlobalEvents();

    m_GlobalHook.MouseDownExt += GlobalHookMouseDownExt;
    m_GlobalHook.KeyPress += GlobalHookKeyPress;
}

// Note: for the application hook, use the Hook.AppEvents() instead

but how to get the target app or process ?

0

There are 0 answers