Comments (3)
import psutil
import webbrowser
import time
def find_process_by_name(name):
for process in psutil.process_iter(['name']):
if process.info['name'].lower() == name.lower():
return process
return None
def kill_process_tree(pid):
try:
parent = psutil.Process(pid)
for child in parent.children(recursive=True):
child.kill()
parent.kill()
except psutil.NoSuchProcess:
pass
def launch_roblox_game(game_url):
webbrowser.open(game_url)
def check_and_manage_roblox(game_url):
roblox_process = find_process_by_name("Roblox Game Client")
if roblox_process:
if find_process_by_name("Krampus Crash"):
print("Found 'Krampus Crash' process. Terminating Roblox...")
kill_process_tree(roblox_process.pid)
time.sleep(5)
print("Launching specific Roblox game...")
launch_roblox_game(game_url)
else:
print("Roblox is running without issues.")
else:
print("Roblox is not running. Launching the game...")
launch_roblox_game(game_url)
def main():
game_url = "roblox://placeId=8737899170"
while True:
check_and_manage_roblox(game_url)
print("Waiting for the next check...")
time.sleep(60)
if __name__ == "__main__":
main()
from bloxstrap.
and could you also make it an option that relaunches roblox if u notices it crashed?
from bloxstrap.
nvm, i figured it out
from bloxstrap.
Related Issues (20)
- [BUG] an unexpecter error occurred and roblox needs to quit HOT 1
- [BUG] (potential roblox issue) Error Code: 403 when trying to join a game/launch roblox through the website HOT 1
- [BUG] No Sound Driver [In Bloxstrap and Roblox]
- [BUG] Bloxstrap config reset HOT 2
- [BUG] HOT 2
- [BUG] Roblox crashes due to Bloxstrap forcing the DFIntTaskSchedulerTargetFps flag to be present HOT 5
- Cant run roblox with bloxstrap
- [BUG] bloxstrap displaying as context menu container on discord and can't detect presence. HOT 1
- Project Delta ESP. HOT 4
- Clipping with xbox game bar HOT 3
- [BUG] roblox limiting my cpu HOT 1
- Idk what happend HOT 1
- [BUG] not able to hide gui HOT 2
- Adding A Custom Death Sound Option[REQ] HOT 2
- [BUG] none of my settings and fastflags will work HOT 2
- System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden). [BUG] HOT 6
- [BUG] Exception error occured while running Bloxstrap HOT 2
- [BUG] System.AggregateException: One or more errors occurred. (Access to the path 'C:\Users\DELL\AppData\Local\Bloxstrap\Versions\version-2cca5ed32b534b2a\RobloxPlayerBeta.exe' is denied.) [Inner Exception] System.UnauthorizedAccessException: Access to the path 'C:\Users\DELL\AppData\Local\Bloxstrap\Versions\version-2cca5ed32b534b2a\RobloxPlayerBeta.exe' is denied. HOT 1
- [BUG] Unable to launch HOT 1
- every time i close roblox i get an error message[BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloxstrap.