From 3e4a7335ea321ee159a3c5e0b58b49c918d2b8b0 Mon Sep 17 00:00:00 2001 From: Vaclav Siml Date: Sat, 25 Feb 2023 00:00:20 +0100 Subject: [PATCH] Can now kill game exe with globalshortcut --- ui/Vars.js | 8 ++++++-- ui/index.html | 39 ++++++++++++++++++--------------------- ui/main.js | 42 +++++++++++++++++++++++++++++++++++++----- 3 files changed, 61 insertions(+), 28 deletions(-) diff --git a/ui/Vars.js b/ui/Vars.js index 7faf310..66bee9e 100644 --- a/ui/Vars.js +++ b/ui/Vars.js @@ -1,3 +1,4 @@ + //Paths var AsphyxiaPath = "C:\\Users\\kryvas\\Downloads\\asphyxia-core-win-x64\\asphyxia.exe" var SDVX3Path = "C:\\sdvx\\spice2.lnk" @@ -10,5 +11,8 @@ var KeyDown = "KeyS" var KeyLeft = "KeyA" var KeyRight = "KeyD" var KeyStart = "KeyE" -var ExitKey1 = "g" // Only add lowercase name of the key without "Key" part example: "KeyA" becomes "a" -var ExitKey2 = "h" // Only add lowercase name of the key without "Key" part example: "KeyA" becomes "a" +var ExitKey1 = "G" // Only add uppercase name of the key without "Key" part example: "KeyA" becomes "A" +var ExitKey2 = "H" // Only add uppercase name of the key without "Key" part example: "KeyA" becomes "A" + +if(module) // kdyz to neimportujes pres require tak module bude undefined +module.exports = { ExitKey1, ExitKey2 }; diff --git a/ui/index.html b/ui/index.html index f75798a..e1c9f43 100644 --- a/ui/index.html +++ b/ui/index.html @@ -43,17 +43,17 @@ - + - + - - - - - + + + + +