From 84bb87e03450f3a600f5a76659c67963fccbd417 Mon Sep 17 00:00:00 2001 From: Zarcolio Date: Sat, 15 Jul 2023 10:46:11 +0200 Subject: [PATCH] always use ALTSTRING --- BadUSB/Ducky Script creator/index.html | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/BadUSB/Ducky Script creator/index.html b/BadUSB/Ducky Script creator/index.html index 24ba83a..b760512 100644 --- a/BadUSB/Ducky Script creator/index.html +++ b/BadUSB/Ducky Script creator/index.html @@ -254,11 +254,7 @@ You can edit this manually before saving, if needed."> continue; // Skip empty lines } - if (hasDeadKeys(line)) { - translatedInput += `ALTCODE ${line}\n`; - } else { - translatedInput += `STRING ${line}\n`; - } + translatedInput += `ALTSTRING ${line}\n`; } // If the input does not end with a new line, append a new line to the translated input @@ -283,11 +279,7 @@ You can edit this manually before saving, if needed."> continue; // Skip empty lines } - if (hasDeadKeys(line)) { - translatedInput += `ALTCODE ${line}\n`; - } else { translatedInput += `REM ${line}\n`; - } } // If the input does not end with a new line, append a new line to the translated input @@ -299,11 +291,6 @@ You can edit this manually before saving, if needed."> input.value = ''; // Clear the input } - function hasDeadKeys(input) { - const deadKeys = /[`^~"']/; - return deadKeys.test(input); - } - function appendToOutput(value) { const output = document.getElementById('output'); if (value === 'CTRL' || value === 'CONTROL' || value === 'SHIFT' || value === 'ALT' || value === 'GUI' ) {