Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Sendkey fails when target has no windows handle #119

Merged

Conversation

philippseith
Copy link
Contributor

Sendkey can only send keys to a process if it has a windows handle.
That happens when grr itself is the target process or it is called from inside ConEmu, WindowsTerminal or other console emulators. It even happens when a shell is run inside a shell.
Sending the keys to the first parent with windows handle causes insertion of the keys into the current shell.

Sendkey can only send keys to a process if it has a windows handle.
That happens when grr itself is the target process or it is called from inside ConEmu, WindowsTerminal or other console emulators. It even happens when a shell is run inside a shell.
Sending the keys to the first parent with windows handle causes insertion of the keys into the current shell.
Copy link
Owner

@awaescher awaescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for caring about my sins of the past, I really was not that proud of the process handling 😅

@awaescher awaescher merged commit 5e49cb9 into awaescher:master Aug 27, 2020
@philippseith philippseith deleted the fix/SendKey_To_ParentProcess_with_HWND branch August 28, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants