Skip to content

Not working with simple steal focus hack #11

@Mudr0x

Description

@Mudr0x

Hello,
Thanks first for this interesting and useful project.
I tested it on Win10 with a test tool I made with the simple well-known steal focus hack working with such thread injection:

DWORD windowThreadProcessId = GetWindowThreadProcessId(GetForegroundWindow(), LPDWORD(0)); DWORD currentThreadId = GetCurrentThreadId(); AttachThreadInput(windowThreadProcessId, currentThreadId, true); BringWindowToTop(bhWnd); ShowWindow(bhWnd, SW_SHOWNORMAL); AttachThreadInput(windowThreadProcessId, currentThreadId, false);

I also tested with SetForegroundWindow instead of BringWindowToTop, and it isn't able to keep focus. :(

Here's my tool you can test with:
BlinkingWindow.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions