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' ) {