| 1. |
Solve : Help needed with this batch file? |
|
Answer» Firstly I want to make it clear that I have no EXPERIENCE in this. Using Win 7 x64. I'm playing a game and somehow another program called Netlimiter is interfering with the game's online. With some experimentation, I figured out that if I close Netlimiter before starting the game, then start the game, then start that program again by Alt+Tab-ing to the DESKTOP -- then the game runs fine. I don't know of any way to execute a batch file without it taking application focus.No, actually it's not the batch file taking focus. As you can see that I'm using it to run the game as well, thus it automatically switches to the game window. The issue is that in the last line where Netlimiter starts again in the system tray, my game window minimizes to desktop for whatever reason. I read that it only takes app focus if the app has a window which isn't the case here, so Idk why it's happening. But anyway, if somehow the focus could be brought back to the game, then that's all I'm looking for.Sorry, what I meant was, I don't know of any way to start a program from the command line (or a batch file) which can specify that the new program should not take focus. However, VBS allows you to do that. So if you refactor your batch file as a VBScript, it might do what you want. Ultimately however the application is going to decide whether it's focused or not. If there's code in Netlimiter that specifically takes control of application focus, you're probably just gonna have to live with it. |
|