awaescher / RepoZ

👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements
MIT License
1.01k stars 93 forks source link

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

Closed philippseith closed 4 years ago

philippseith commented 4 years ago

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.