mirror of
https://github.com/danbulant/arcade-machine
synced 2026-07-05 11:00:36 +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 AsphyxiaPath = "C:\\test\\cmd.exe"
|
||||||
var SDVX3Path = "C:\\test\\cmd2.exe"
|
var SDVX3Path = "C:\\test\\cmd2.exe"
|
||||||
var SDVX4Path = ""
|
var SDVX4Path = ""
|
||||||
var SDVX5Path = ""
|
var SDVX5Path = ""
|
||||||
|
var browser = "brave.exe"
|
||||||
|
|
@ -88,21 +88,32 @@
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
var vers = 0;
|
var vers = 0;
|
||||||
const { execFile } = require('child_process');
|
const { execFile, exec } = require('child_process');
|
||||||
function sdvx(){
|
function sdvx(){
|
||||||
|
console.log("promenna",vers);
|
||||||
switch (vers) {
|
switch (vers) {
|
||||||
case 3:
|
case 3:
|
||||||
|
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
execFile(SDVX3Path);
|
execFile(SDVX3Path);
|
||||||
|
setTimeout(function(){
|
||||||
|
exec("taskkill /im " + browser)
|
||||||
|
},1200)
|
||||||
//console.log(vers);
|
//console.log(vers);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
execFile(SDVX4Path);
|
execFile(SDVX4Path);
|
||||||
|
setTimeout(function(){
|
||||||
|
exec("taskkill /im " + browser)
|
||||||
|
},1200)
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
execFile(AsphyxiaPath);
|
execFile(AsphyxiaPath);
|
||||||
execFile(SDVX5Path);
|
execFile(SDVX5Path);
|
||||||
|
setTimeout(function(){
|
||||||
|
exec("taskkill /im " + browser)
|
||||||
|
},1200)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue