mirror of
https://github.com/danbulant/arcade-machine
synced 2026-06-16 21:11:14 +00:00
Kill Browser on asphyxia start
This commit is contained in:
parent
b635a707c5
commit
60df294328
2 changed files with 14 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
var AsphyxiaPath = "C:\\test\\cmd.exe"
|
||||
var SDVX3Path = "C:\\test\\cmd2.exe"
|
||||
var SDVX4Path = ""
|
||||
var SDVX5Path = ""
|
||||
var SDVX5Path = ""
|
||||
var browser = "brave.exe"
|
||||
|
|
@ -88,21 +88,32 @@
|
|||
</script>
|
||||
<script>
|
||||
var vers = 0;
|
||||
const { execFile } = require('child_process');
|
||||
const { execFile, exec } = require('child_process');
|
||||
function sdvx(){
|
||||
console.log("promenna",vers);
|
||||
switch (vers) {
|
||||
case 3:
|
||||
|
||||
execFile(AsphyxiaPath);
|
||||
execFile(SDVX3Path);
|
||||
setTimeout(function(){
|
||||
exec("taskkill /im " + browser)
|
||||
},1200)
|
||||
//console.log(vers);
|
||||
break;
|
||||
case 4:
|
||||
execFile(AsphyxiaPath);
|
||||
execFile(SDVX4Path);
|
||||
setTimeout(function(){
|
||||
exec("taskkill /im " + browser)
|
||||
},1200)
|
||||
break;
|
||||
case 5:
|
||||
execFile(AsphyxiaPath);
|
||||
execFile(SDVX5Path);
|
||||
setTimeout(function(){
|
||||
exec("taskkill /im " + browser)
|
||||
},1200)
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue