- Jul
- 534
- 10
Is there a command that can grab focus back? Sort of like "window restore"?
I'm trying to do things I shoudln't do, basically, use windows terminal panes to spawn subprocesses instead of the start command. But it's a keypress-driven interface to open a new pane, and the new pane grabs focus. I've succesfully automated the keypresses to return focus, but if I call this too many times in a row, too fast, there's no real state tracking, and the focus just doesn't return right. If I could have a command to grab the focus back, it would solve the problem. (Except it might not due to this unexplored multi-pane behavior, but I'd like to try. I would prefer to see subprocesses running in a pane than a separate window.)
I'm trying to do things I shoudln't do, basically, use windows terminal panes to spawn subprocesses instead of the start command. But it's a keypress-driven interface to open a new pane, and the new pane grabs focus. I've succesfully automated the keypresses to return focus, but if I call this too many times in a row, too fast, there's no real state tracking, and the focus just doesn't return right. If I could have a command to grab the focus back, it would solve the problem. (Except it might not due to this unexplored multi-pane behavior, but I'd like to try. I would prefer to see subprocesses running in a pane than a separate window.)