KRI$85 Posted April 18 Posted April 18 Hello, if I may, I would like to join the topic, but I would like to do 3 things: 1. So that Launchers such as steam, origin epic, etc. so that applications close after exiting the game - After exiting the wheels, playlist steam origin, etc. launchers close - so that launchers close after starting the game from outside these launchers 2. I have several Bats (list) on/off (kill) for programs that start at the same time as starting the big box, but I don't know how to make the same programs, individual ones, close after closing the big box? 3. Similar to above, only a bat for the 1-5 Default- OC Profile of the graphics card in MSI Afterburner, so called: switches to a given profile 2 after starting the big box and returns to Profile 1 default after closing the big box Do you have any ideas? Quote
JoeViking245 Posted April 19 Posted April 19 2 hours ago, KRI$85 said: 1. So that Launchers such as steam, origin epic, etc. so that applications close after exiting the game The only way I've found to do that is to create a pseudo emulator. Here's an example for doing it with Steam. 2 hours ago, KRI$85 said: 2. I have several Bats (list) on/off (kill) for programs that start at the same time as starting the big box, but I don't know how to make the same programs, individual ones, close after closing the big box? You can create a batch file to start Big Box. Since you have BB setup to start apps when opened, you don't need to worry about those. When you then start BB, add the wait parameter. You'll also need to start BigBox.exe from the /Core/ folder. I'm not at my main PC right now, but it's something like start "" /w "D:\LaunchBox\core\BigBox.exe" This will wait until BB closes. Add you commands to close whatever you need closed after this line. 3 hours ago, KRI$85 said: 3. Similar to above, only a bat for the 1-5 Default- OC Profile of the graphics card in MSI Afterburner, so called: switches to a given profile 2 after starting the big box and returns to Profile 1 default after closing the big box You can add above the command I show above, whatever the command is to set profile 2. Then below it, just like closing your other apps, add whatever the command is to set profile 1. 1 Quote
KRI$85 Posted April 20 Posted April 20 22 hours ago, JoeViking245 said: Thanks for the quick reply 🤗 1. With Steam alone, there are over 2500 games and adding and pasting them into each game will take ages, but I think I'll skip turning off Steam and risk a ban for a few games, so-called students, if you know what I mean It's a shame the bat doesn't work, so-called I managed to make a bat, and it turns off Steam after starting it, but with LB it doesn't work, so-called it doesn't turn off Steam 😕 Apparently there used to be an option in Steam that after turning off a game, Steam would turn off, but it's gone 😕 22 hours ago, JoeViking245 said: You can create a batch file to start Big Box. Since you have BB setup to start apps when opened, you don't need to worry about those. When you then start BB, add the wait parameter. You'll also need to start BigBox.exe from the /Core/ folder. I'm not at my main PC right now, but it's something like start "" /w "D:\LaunchBox\core\BigBox.exe" This will wait until BB closes. Add you commands to close whatever you need closed after this line. In general your solution didn't quite work, so for it to work I had to add e.g.: taskkill /f /I'm XBOX360 Controller.exe /T otherwise, the programs wouldn't close In general, the above program is the only one that doesn't close so far, but it's a small problem. I forgot to add what if I have Bat that starts and closes through the DevManView program, e.g.,: BT My Flash dolphin Bar etc. While there's no issue with the bat to start Bt, Dolphin Bar, disabling them causes a problem, so they don't turn off, I'm definitely doing something wrong, but I don't know what this is what an example bat looks like to turn off BT "G:\ARCADE WORLD\Lunchbox\Tools\Script\DevManView\DevManView.exe" /disable "USB\VID_XXXXXXX" Enabling and disabling must be as admin because otherwise it won't work, so I'm running BB as admin. 22 hours ago, JoeViking245 said: On 4/19/2025 at 12:40 AM, KRI$85 said: 3. Similar to above, only a bat for the 1-5 Default- OC Profile of the graphics card in MSI Afterburner, so called: switches to a given profile 2 after starting the big box and returns to Profile 1 default after closing the big box You can add above the command I show above, whatever the command is to set profile 2. Then below it, just like closing your other apps, add whatever the command is to set profile 1. I don't quite understand hmm I don't have any bat switch manually with the shortcut Ctrl+ F1 Profile default Ctrl+F2 Profile OC and I would like the Profile to change to Profile 2 OC and after exiting BB return to Profile 1 Default I don't quite know how to do it, hmm. Generally MSI has options that in 2d mode there is profile 1 and in 3d mode there is profile OC, but it doesn't always work. 😕 Quote
JoeViking245 Posted April 20 Posted April 20 31 minutes ago, KRI$85 said: 1. With Steam alone, there are over 2500 games and adding and pasting them into each game will take ages, The AHK script I referenced was for creating an 'emulator'. So you'd only need to make one. Then have your Steam games use that emulator. The way it's written, it assumes your games were added to LB, by LB. Where the games ROM path is something like steam://rungameid/21130. Now if your games for some reason all point to an exe, the script could be modified to still work. 47 minutes ago, KRI$85 said: It's a shame the bat doesn't work, so-called I managed to make a bat, and it turns off Steam after starting it, but with LB it doesn't work, so-called it doesn't turn off Steam It could be that the batch file just needs a little finessing. 50 minutes ago, KRI$85 said: in general your solution didn't quite work, so for it to work I had to add e.g.: taskkill /f /I'm XBOX360 Controller.exe /T otherwise, the programs wouldn't close Is that a problem having the 'taskkill' line in there? 54 minutes ago, KRI$85 said: Enabling and disabling must be as admin because otherwise it won't work, so I'm running BB as admin. Not sure I've heard of BT devices requiring admin privileges to start/stop. Running BB as admin is not advised. But if it works for you, go with it. If in the future you have any issues with BB, i.e. not launching games [with other emulators], adding images or videos etc., try them again with BB not running as admin. 1 hour ago, KRI$85 said: I don't have any bat switch manually with the shortcut Ctrl+ F1 Profile default Ctrl+F2 Profile OC and I would like the Profile to change to Profile 2 OC and after exiting BB return to Profile 1 Default I don't quite know how to do it, If the only way to change the profile is via a keyboard shortcut, you could create an AutoHotkey script to do that. But you may want to do a search to see if there's a way to do that from the command prompt. Then once you know how to switch it that way, just put that in a batch file. Quote
KRI$85 Posted Thursday at 03:28 PM Posted Thursday at 03:28 PM On 4/20/2025 at 4:05 AM, JoeViking245 said: The AHK script I referenced was for creating an 'emulator'. So you'd only need to make one. Then have your Steam games use that emulator. The way it's written, it assumes your games were added to LB, by LB. Where the games ROM path is something like steam://rungameid/21130. Now if your games for some reason all point to an exe, the script could be modified to still work. It could be that the batch file just needs a little finessing. Is that a problem having the 'taskkill' line in there? Not sure I've heard of BT devices requiring admin privileges to start/stop. Running BB as admin is not advised. But if it works for you, go with it. If in the future you have any issues with BB, i.e. not launching games [with other emulators], adding images or videos etc., try them again with BB not running as admin. If the only way to change the profile is via a keyboard shortcut, you could create an AutoHotkey script to do that. But you may want to do a search to see if there's a way to do that from the command prompt. Then once you know how to switch it that way, just put that in a batch file. Ok Today I'm finally trying to have some more time for fun and maybe fix steam on off. I also think that something is wrong in the bat file, I'll try to fix it. No, it's not about that, what's strange is that without this taskkill' bat it doesn't work Hmm Unfortunately, that's how it is, if I don't run the bat as admin, BT won't turn on or off, that's why I have 4 shortcuts to BB, LB as admin and without admin, I know it's strange but it works, when I want to play I run the admin shortcut and when I want to add or change something, I run it without admin. The problem will start when I get to the point where LB BB starts with the system, i.e. at the very end of the settings for everything We'll see what comes of it because as I said, it's annoying that every time I have to remember to change the profile before starting BB and then turn it off after closing, even if it's bats that I have on the desktop, I'd rather automate some things. Similarly, I have a dilemma how to make a whip for visibility, screen activation in Win-nvidia The so-called as in the picture (picture borrowed from the Internet) to Automatically uncheck this tick if we do not start it is BB (it is about Marquee) if I start Arcade Cabinet then with an additional monitor, monitors depend on whether Pinball or Marquee. Unfortunately, for now I use one PC for Arcade Cab and Work etc. in the near future I would like to make a separate system. Quote
JoeViking245 Posted Thursday at 04:43 PM Posted Thursday at 04:43 PM 58 minutes ago, KRI$85 said: Unfortunately, that's how it is, if I don't run the bat as admin, BT won't turn on or off Get creative and have the batch file "tell itself to run the commands elevated". You don't need to run/execute this [example] batch file as Admin, but it will start "notepad.exe" elevated (as Admin). Adjust ONLY THE ONE LINE to meet your needs, accordingly. @if (0)==(0) echo off >nul 2>&1 "%__APPDIR__%net.exe" session &&goto __elevated__ set __args__=%* "%__APPDIR__%cscript.exe" //nologo //e:jscript "%~fs0" exit /b :__elevated__ :::::::: update below here ONLY :::::::: start "" notepad.exe :::::::: update above here ONLY :::::::: goto :eof @end new ActiveXObject('Shell.Application').ShellExecute('cmd.exe','/c ""'+WScript.ScriptFullName+'" '+new ActiveXObject('WScript.Shell').Environment('PROCESS')('__args__')+'"','','runas',1); Don't change anything except the line that starts with start. Change that line to execute whatever you need ran as Admin. Pro tip: Lines starting with :: (2 or more consecutive colons) are comments in a batch file. Alternately, you can add comments by starting the line with rem (short for "remark") and is not case seNSitiVe. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.