Skip to content

Commit

Permalink
fix(utils): add new kill commands #201
Browse files Browse the repository at this point in the history
  • Loading branch information
iholston committed Mar 22, 2024
1 parent 5631264 commit 1761013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lolbot/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
KILL_LEAGUE_CLIENT = 'TASKKILL /F /IM LeagueClient.exe'
KILL_LEAGUE = 'TASKKILL /F /IM "League of Legends.exe"'
KILL_RIOT_CLIENT = 'TASKKILL /F /IM RiotClientUx.exe'
KILL_HANDLER_WMIC = 'wmic process where "name=\'LeagueCrashHandler64.exe\'" delete'
KILL_LEAGUE_WMIC = 'wmic process where "name=\'LeagueClient.exe\'" delete'


class WindowNotFound(Exception):
Expand Down Expand Up @@ -71,6 +73,8 @@ def close_all_processes() -> None:
os.system(KILL_LEAGUE)
os.system(KILL_LEAGUE_CLIENT)
os.system(KILL_RIOT_CLIENT)
os.system(KILL_HANDLER_WMIC)
os.system(KILL_LEAGUE_WMIC)
sleep(5)


Expand Down

0 comments on commit 1761013

Please sign in to comment.