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...
Read more
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...
Read more