From 68b6c1b326efdadcc12277a13d8f3e8a79fa6d96 Mon Sep 17 00:00:00 2001 From: TheMaster1127 Date: Wed, 10 Jul 2024 11:05:34 +0300 Subject: [PATCH] added null --- HTH-Playground.hth | 9 +- HTH.ahk | 14 +- HTH.exe | Bin 1545728 -> 1546240 bytes HTH.htpy | 9 +- HTH.py | 1666 ++++++++++++++++++++++---------------------- index.html | 17 +- 6 files changed, 874 insertions(+), 841 deletions(-) diff --git a/HTH-Playground.hth b/HTH-Playground.hth index 776b2d8..c744225 100644 --- a/HTH-Playground.hth +++ b/HTH-Playground.hth @@ -3927,6 +3927,11 @@ if (out2 = "disable") out0 := "GuiControl(" . Chr(34) . "" . out2 . "" . Chr(34) . ", " . Chr(34) . "Gui" . GuiNumber . "" . out3 . ");" } +if (out2 = "destroy") +{ +out0 := "GuiControl(" . Chr(34) . "" . out2 . "" . Chr(34) . ", " . Chr(34) . "Gui" . GuiNumber . "" . out3 . ");" +} + if (out2 = "enable") { out0 := "GuiControl(" . Chr(34) . "" . out2 . "" . Chr(34) . ", " . Chr(34) . "Gui" . GuiNumber . "" . out3 . ");" @@ -5780,7 +5785,7 @@ StringTrimRight, jsCode, outJScodeLastTime2, 1 -jsCode := "`n" . "// Declare and assign a variable`nlet variables = {};`n" . jsCode . "`n" +jsCode := "`n" . "// Declare and assign a variable`nlet variables = {`nnull: null,`n};`n" . jsCode . "`n" funcs .= "}" @@ -5874,7 +5879,7 @@ addFuncIfWeUseIt_isMobileDevice := "`n function isMobileDevice() {`n addFuncIfWeUseIt_SetTimer := "`n // Object to store timer intervals for different functions`n const timerIntervals = {};`n`n async function SetTimer(func, timeOrOnOff) {`n if (typeof func !== " . Chr(34) . "function" . Chr(34) . " || typeof timeOrOnOff === " . Chr(34) . "undefined" . Chr(34) . ") {`n console.error(" . Chr(34) . "Invalid arguments. Please provide a valid function and time/On/Off state." . Chr(34) . ");`n return;`n }`n`n if (typeof timeOrOnOff === " . Chr(34) . "number" . Chr(34) . ") {`n // If a number is provided, set the timer to that time in milliseconds and start it.`n func.interval = timeOrOnOff; // Store the interval within the function`n func(); // Call the function initially`n func.intervalId = setInterval(func, timeOrOnOff);`n timerIntervals[func] = func.intervalId; // Store the interval ID`n } else if (timeOrOnOff === " . Chr(34) . "On" . Chr(34) . ") {`n // If 'On' is provided, start the timer if it's not already running.`n if (!func.intervalId && func.interval) {`n func(); // Call the function initially`n func.intervalId = setInterval(func, func.interval); // Start with the stored interval`n timerIntervals[func] = func.intervalId; // Store the interval ID`n } else {`n console.error(" . Chr(34) . "Timer is not set. Please provide a valid interval." . Chr(34) . ");`n }`n } else if (timeOrOnOff === " . Chr(34) . "Off" . Chr(34) . ") {`n // If 'Off' is provided, clear the timer if it's running.`n clearInterval(func.intervalId);`n func.intervalId = null;`n delete timerIntervals[func]; // Remove the interval ID from storage`n } else {`n console.error(" . Chr(34) . "Invalid time/On/Off state. Please provide a valid time in milliseconds or 'On'/'Off'." . Chr(34) . ");`n }`n }`n" -addFuncIfWeUseIt_GuiControl := "`n function GuiControl(action, id, param1, param2, param3, param4) {`n const element = document.getElementById(id);`n if (element) {`n // Handle DOM elements`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Set position and size`n element.style.left = param1 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.top = param2 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.width = param3 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.height = param4 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "focus" . Chr(34) . " && (element instanceof HTMLInputElement || element instanceof HTMLElement)) {`n // Focus on the element`n element.focus();`n } else if (action === " . Chr(34) . "text" . Chr(34) . ") {`n // Set new text content`n element.textContent = param1;`n } else if (action === " . Chr(34) . "hide" . Chr(34) . ") {`n // Hide the element`n element.style.display = " . Chr(34) . "none" . Chr(34) . ";`n } else if (action === " . Chr(34) . "show" . Chr(34) . ") {`n // Show the element`n element.style.display = " . Chr(34) . "" . Chr(34) . ";`n } else if (action === " . Chr(34) . "enable" . Chr(34) . ") {`n // Enable the element`n element.disabled = false;`n } else if (action === " . Chr(34) . "disable" . Chr(34) . ") {`n // Disable the element`n element.disabled = true;`n } else if (action === " . Chr(34) . "font" . Chr(34) . ") {`n // Set font size`n element.style.fontSize = param1 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Set color`n element.style.color = param1;`n } else if (action === " . Chr(34) . "picture" . Chr(34) . ") {`n // Change the image source`n if (element instanceof HTMLImageElement) {`n element.src = param1;`n } else {`n console.error(" . Chr(34) . "Element is not an tag, cannot change picture." . Chr(34) . ");`n }`n } else if (action === " . Chr(34) . "textide" . Chr(34) . ") {`n // Set value for Ace editor`n var editor = ace.edit(id); // Access the Ace editor instance using its ID`n if (editor && param1) {`n editor.session.setValue(param1);`n } else {`n console.error(" . Chr(34) . "Element is not an Ace editor or parameter is missing." . Chr(34) . ");`n }`n }`n } else {`n // Handle canvas or non-existing element`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Update position and size of the rectangle`n updateRectangle(id, param1, param2, param3, param4);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Update color of the rectangle`n updateRectangleColor(id, param1);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n }`n }`n }`n" +addFuncIfWeUseIt_GuiControl := "`n function GuiControl(action, id, param1, param2, param3, param4) {`n const element = document.getElementById(id);`n if (element) {`n // Handle DOM elements`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Set position and size`n element.style.left = param1 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.top = param2 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.width = param3 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.height = param4 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "focus" . Chr(34) . " && (element instanceof HTMLInputElement || element instanceof HTMLElement)) {`n // Focus on the element`n element.focus();`n } else if (action === " . Chr(34) . "text" . Chr(34) . ") {`n // Set new text content`n element.textContent = param1;`n } else if (action === " . Chr(34) . "hide" . Chr(34) . ") {`n // Hide the element`n element.style.display = " . Chr(34) . "none" . Chr(34) . ";`n } else if (action === " . Chr(34) . "show" . Chr(34) . ") {`n // Show the element`n element.style.display = " . Chr(34) . "" . Chr(34) . ";`n } else if (action === " . Chr(34) . "enable" . Chr(34) . ") {`n // Enable the element`n element.disabled = false;`n } else if (action === " . Chr(34) . "disable" . Chr(34) . ") {`n // Disable the element`n element.disabled = true;`n } else if (action === " . Chr(34) . "font" . Chr(34) . ") {`n // Set font size`n element.style.fontSize = param1 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "destroy" . Chr(34) . ") {`n // Remove the element from the DOM`n element.parentNode.removeChild(element);`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Set color`n element.style.color = param1;`n } else if (action === " . Chr(34) . "picture" . Chr(34) . ") {`n // Change the image source`n if (element instanceof HTMLImageElement) {`n element.src = param1;`n } else {`n console.error(" . Chr(34) . "Element is not an tag, cannot change picture." . Chr(34) . ");`n }`n } else if (action === " . Chr(34) . "textide" . Chr(34) . ") {`n // Set value for Ace editor`n var editor = ace.edit(id); // Access the Ace editor instance using its ID`n if (editor && param1) {`n editor.session.setValue(param1);`n } else {`n console.error(" . Chr(34) . "Element is not an Ace editor or parameter is missing." . Chr(34) . ");`n }`n }`n } else {`n // Handle canvas or non-existing element`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Update position and size of the rectangle`n updateRectangle(id, param1, param2, param3, param4);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Update color of the rectangle`n updateRectangleColor(id, param1);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n }`n }`n }`n" addFuncIfWeUseIt_getDataFromEndpoint := "`n async function getDataFromEndpoint(data, endpoint) {`n // Convert data to JSON string`n const requestData = JSON.stringify(data);`n`n // Set up fetch request options`n const requestOptions = {`n method: " . Chr(34) . "POST" . Chr(34) . ", // or 'GET' depending on your server's requirements`n headers: {`n " . Chr(34) . "Content-Type" . Chr(34) . ": " . Chr(34) . "application/json" . Chr(34) . ",`n },`n body: requestData,`n };`n`n // Fetch data from the specified endpoint`n const response = await fetch(endpoint, requestOptions);`n`n // Check if response is successful`n if (!response.ok) {`n throw new Error(" . Chr(96) . "Failed to fetch data from ${endpoint}. Status: ${response.status}" . Chr(96) . ");`n }`n`n // Parse response data based on Content-Type header`n const contentType = response.headers.get(" . Chr(34) . "content-type" . Chr(34) . ");`n if (contentType && contentType.includes(" . Chr(34) . "application/json" . Chr(34) . ")) {`n return response.json(); // Parse JSON response`n } else {`n return response.text(); // Parse plain text response`n }`n }`n" diff --git a/HTH.ahk b/HTH.ahk index 349e391..14a8854 100644 --- a/HTH.ahk +++ b/HTH.ahk @@ -156,6 +156,7 @@ removeCurlyBracet := 0 variables .= " " . "A_Index" . ": null," . "`n" variables .= " " . "A_LoopField" . ": null," . "`n" variables .= " " . "characters" . ": null," . "`n" +variables .= " " . "null" . ": null," . "`n" jsCodeGui := "" @@ -6474,6 +6475,14 @@ GuiControl("%out2%", "Gui%GuiNumber%%out3%); ) } +if (out2 = "destroy") +{ +out0 = +( +GuiControl("%out2%", "Gui%GuiNumber%%out3%); +) +} + if (out2 = "enable") { out0 = @@ -9258,7 +9267,10 @@ addFuncIfWeUseIt_GuiControl = } else if (action === "font") { // Set font size element.style.fontSize = param1 + "px"; - } else if (action === "color") { + } else if (action === "destroy") { + // Remove the element from the DOM + element.parentNode.removeChild(element); + } else if (action === "color") { // Set color element.style.color = param1; } else if (action === "picture") { diff --git a/HTH.exe b/HTH.exe index aa1b0245e68aa3fba042752d11aa0389064c680b..0f9d768b8abfa3f3a5af84c0403b6bea2e2feb1f 100644 GIT binary patch delta 702 zcmZoz6W6dIZi65r_P33~+ut^dB>iVkNi8lZ%CDUMwpP@8yMLqTmeci6Atg tag, cannot change picture." . Chr(34) . ");`n }`n } else if (action === " . Chr(34) . "textide" . Chr(34) . ") {`n // Set value for Ace editor`n var editor = ace.edit(id); // Access the Ace editor instance using its ID`n if (editor && param1) {`n editor.session.setValue(param1);`n } else {`n console.error(" . Chr(34) . "Element is not an Ace editor or parameter is missing." . Chr(34) . ");`n }`n }`n } else {`n // Handle canvas or non-existing element`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Update position and size of the rectangle`n updateRectangle(id, param1, param2, param3, param4);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Update color of the rectangle`n updateRectangleColor(id, param1);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n }`n }`n }`n" +addFuncIfWeUseIt_GuiControl := "`n function GuiControl(action, id, param1, param2, param3, param4) {`n const element = document.getElementById(id);`n if (element) {`n // Handle DOM elements`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Set position and size`n element.style.left = param1 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.top = param2 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.width = param3 + " . Chr(34) . "px" . Chr(34) . ";`n element.style.height = param4 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "focus" . Chr(34) . " && (element instanceof HTMLInputElement || element instanceof HTMLElement)) {`n // Focus on the element`n element.focus();`n } else if (action === " . Chr(34) . "text" . Chr(34) . ") {`n // Set new text content`n element.textContent = param1;`n } else if (action === " . Chr(34) . "hide" . Chr(34) . ") {`n // Hide the element`n element.style.display = " . Chr(34) . "none" . Chr(34) . ";`n } else if (action === " . Chr(34) . "show" . Chr(34) . ") {`n // Show the element`n element.style.display = " . Chr(34) . "" . Chr(34) . ";`n } else if (action === " . Chr(34) . "enable" . Chr(34) . ") {`n // Enable the element`n element.disabled = false;`n } else if (action === " . Chr(34) . "disable" . Chr(34) . ") {`n // Disable the element`n element.disabled = true;`n } else if (action === " . Chr(34) . "font" . Chr(34) . ") {`n // Set font size`n element.style.fontSize = param1 + " . Chr(34) . "px" . Chr(34) . ";`n } else if (action === " . Chr(34) . "destroy" . Chr(34) . ") {`n // Remove the element from the DOM`n element.parentNode.removeChild(element);`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Set color`n element.style.color = param1;`n } else if (action === " . Chr(34) . "picture" . Chr(34) . ") {`n // Change the image source`n if (element instanceof HTMLImageElement) {`n element.src = param1;`n } else {`n console.error(" . Chr(34) . "Element is not an tag, cannot change picture." . Chr(34) . ");`n }`n } else if (action === " . Chr(34) . "textide" . Chr(34) . ") {`n // Set value for Ace editor`n var editor = ace.edit(id); // Access the Ace editor instance using its ID`n if (editor && param1) {`n editor.session.setValue(param1);`n } else {`n console.error(" . Chr(34) . "Element is not an Ace editor or parameter is missing." . Chr(34) . ");`n }`n }`n } else {`n // Handle canvas or non-existing element`n if (action === " . Chr(34) . "move" . Chr(34) . ") {`n // Update position and size of the rectangle`n updateRectangle(id, param1, param2, param3, param4);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n } else if (action === " . Chr(34) . "color" . Chr(34) . ") {`n // Update color of the rectangle`n updateRectangleColor(id, param1);`n redrawCanvas(); // Redraw the canvas with updated rectangles`n }`n }`n }`n" addFuncIfWeUseIt_getDataFromEndpoint := "`n async function getDataFromEndpoint(data, endpoint) {`n // Convert data to JSON string`n const requestData = JSON.stringify(data);`n`n // Set up fetch request options`n const requestOptions = {`n method: " . Chr(34) . "POST" . Chr(34) . ", // or 'GET' depending on your server's requirements`n headers: {`n " . Chr(34) . "Content-Type" . Chr(34) . ": " . Chr(34) . "application/json" . Chr(34) . ",`n },`n body: requestData,`n };`n`n // Fetch data from the specified endpoint`n const response = await fetch(endpoint, requestOptions);`n`n // Check if response is successful`n if (!response.ok) {`n throw new Error(" . Chr(96) . "Failed to fetch data from ${endpoint}. Status: ${response.status}" . Chr(96) . ");`n }`n`n // Parse response data based on Content-Type header`n const contentType = response.headers.get(" . Chr(34) . "content-type" . Chr(34) . ");`n if (contentType && contentType.includes(" . Chr(34) . "application/json" . Chr(34) . ")) {`n return response.json(); // Parse JSON response`n } else {`n return response.text(); // Parse plain text response`n }`n }`n" diff --git a/HTH.py b/HTH.py index 16d6476..3792276 100644 --- a/HTH.py +++ b/HTH.py @@ -173,13 +173,13 @@ def indent_nested_curly_braces(input_string): variables['A_LoopField1'] = A_LoopField1 variables['trimmed_line'] = Trim(variables['A_LoopField1']) if (variables['trimmed_line'] == Chr(123)): - variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) + variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) variables['current_indent'] = variables['current_indent'] + variables['indent_size'] elif (variables['trimmed_line'] == Chr(125)): variables['current_indent'] = variables['current_indent'] - variables['indent_size'] - variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) + variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) else: - variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) + variables['result'] += ((Chr(32) + RepeatSpaces(variables['current_indent'])) + (variables['trimmed_line'] + "\n")) # Return the result return variables['result'] def RepeatSpaces(count): @@ -323,24 +323,24 @@ def transpileVariables(sstr123455, functionNames): if (variables['howManyCharIfVar2'] == variables['howManyCharIfVar']): variables['isNumKindaVar'] = 1 if (variables['isNumKindaVar'] == 1): - variables['outOftranspileVariables'] += variables['A_LoopField10'] + Chr(32) + variables['outOftranspileVariables'] += variables['A_LoopField10'] + Chr(32) else: if (InStr(variables['A_LoopField10'] , "%")): - if (( SubStr(Trim(variables['A_LoopField10']), 1 , 1)== "%")and(SubStr(Trim(variables['A_LoopField10']), 0)== "%")): + if ((SubStr(Trim(variables['A_LoopField10']), 1 , 1)== "%")and(SubStr(Trim(variables['A_LoopField10']), 0)== "%")): variables['var1'] = StringTrimRight(variables['A_LoopField10'], 1) variables['var1'] = StringTrimLeft(variables['var1'], 1) - variables['out1'] = "variables." + variables['var1'] - variables['outOftranspileVariables'] += variables['out1'] + Chr(32) + variables['out1'] = "variables." + variables['var1'] + variables['outOftranspileVariables'] += variables['out1'] + Chr(32) else: variables['var1'] = StrSplit(variables['A_LoopField10'] , "%" , 1) variables['var2'] = StrSplit(variables['A_LoopField10'] , "%" , 2) - variables['out1'] = "variables[" + Chr(34) + variables['var1'] + Chr(34) + " + variables." + variables['var2'] + "]" - variables['outOftranspileVariables'] += variables['out1'] + Chr(32) + variables['out1'] = "variables[" + Chr(34) + variables['var1'] + Chr(34) + " + variables." + variables['var2'] + "]" + variables['outOftranspileVariables'] += variables['out1'] + Chr(32) else: - variables['out1'] = "variables." + variables['A_LoopField10'] - variables['outOftranspileVariables'] += variables['out1'] + Chr(32) + variables['out1'] = "variables." + variables['A_LoopField10'] + variables['outOftranspileVariables'] += variables['out1'] + Chr(32) else: - variables['outOftranspileVariables'] += variables['A_LoopField10'] + Chr(32) + variables['outOftranspileVariables'] += variables['A_LoopField10'] + Chr(32) variables['wasHereVarTryUhBug'] = 0 if (variables['wasHereVarTryUhBug'] == 1): variables['outOftranspileVariables'] = variables['outOftranspileVariablesOut'] @@ -354,16 +354,16 @@ def transpileVariables(sstr123455, functionNames): for A_Index16, A_LoopField16 in enumerate(items, start=1): variables['A_Index16'] = A_Index16 variables['A_LoopField16'] = A_LoopField16 - if ("variables." + variables['ALoopFieldFixFunc'] == variables['A_LoopField16']): - variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "variables." + variables['ALoopFieldFixFunc'] , "await " + variables['ALoopFieldFixFunc']) + if ("variables." + variables['ALoopFieldFixFunc'] == variables['A_LoopField16']): + variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "variables." + variables['ALoopFieldFixFunc'] , "await " + variables['ALoopFieldFixFunc']) for A_Index17 in range(1, variables['numOfStrings'] + 1): variables['A_Index17'] = A_Index17 - variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "freeeeepaestine-sav-etehmtyeah-freee-n" + variables['A_Index17'] , Chr(34) + variables[f'theString{variables["A_Index17"]}'] + Chr(34)) + variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "freeeeepaestine-sav-etehmtyeah-freee-n" + variables['A_Index17'] , Chr(34) + variables[f'theString{variables["A_Index17"]}'] + Chr(34)) #OutputDebug, |%outOftranspileVariables%| variables['outOftranspileVariables'] = Trim(variables['outOftranspileVariables']) variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , Chr(96), Chr(92)) - variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , Chr(92) + Chr(92), Chr(96)) - variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "cyiasasasasstAYtheummonlyemlpystringya-a-" + Chr(100), Chr(34) + Chr(34)) + variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , Chr(92) + Chr(92), Chr(96)) + variables['outOftranspileVariables'] = StrReplace(variables['outOftranspileVariables'] , "cyiasasasasstAYtheummonlyemlpystringya-a-" + Chr(100), Chr(34) + Chr(34)) #OutputDebug, %outOftranspileVariables% # Check and replace "variables.false" if (SubStr(variables['outOftranspileVariables'] , -14)== "variables.false"): @@ -408,11 +408,11 @@ def transpileLowVariables(sstr): if (Mod(variables['A_Index18'] , 2)): variables['outOftranspileVariablesOut'] += variables['A_LoopField18'] else: - variables['outOftranspileVariablesOut'] += Chr(34) + " + variables." + variables['A_LoopField18'] + " + " + Chr(34) + variables['outOftranspileVariablesOut'] += Chr(34) + " + variables." + variables['A_LoopField18'] + " + " + Chr(34) else: - variables['sstr'] = Chr(34) + variables['sstr'] + Chr(34) + variables['sstr'] = Chr(34) + variables['sstr'] + Chr(34) return variables['sstr'] - variables['outOftranspileVariablesOut'] = variables['outOftranspileVariablesOut'] + Chr(34) + variables['outOftranspileVariablesOut'] = variables['outOftranspileVariablesOut'] + Chr(34) return variables['outOftranspileVariablesOut'] def ExtractFileNameWithoutExtension(path): variables['path'] = path @@ -467,7 +467,7 @@ def TitleCaseString(string): variables['out1'] += Chr(Ascc(variables['A_LoopField24'])- 32) else: variables['out1'] += variables['A_LoopField24'] - variables['out'] += variables['out1'] + " " + variables['out'] += variables['out1'] + " " variables['out'] = StringTrimRight(variables['out'], 1) return variables['out'] def CountCommasWithoutBacktick(s): @@ -479,13 +479,13 @@ def CountCommasWithoutBacktick(s): for A_Index25, A_LoopField25 in enumerate(items, start=1): variables['A_Index25'] = A_Index25 variables['A_LoopField25'] = A_LoopField25 - if (InStr(variables['A_LoopField25'] , ",")) and( not (InStr(variables['A_LoopField25'] , variables['bbbackitck'] + ","))): + if (InStr(variables['A_LoopField25'] , ","))and( not (InStr(variables['A_LoopField25'] , variables['bbbackitck'] + ","))): variables['AIndex'] += 1 #~ MsgBox, %A_LoopField25% #~ MsgBox, AIndex %AIndex% #~ MsgBox, % bbbackitck . "," #~ MsgBox, % A_LoopField25 - if (InStr(variables['A_LoopField25'] , variables['bbbackitck'] + ",")): + if (InStr(variables['A_LoopField25'] , variables['bbbackitck'] + ",")): variables['howManyCommasWhitBacktickAtTheBegining'] += 1 #MsgBox, % howManyCommasWhitBacktickAtTheBegining if (variables['AIndex'] >= 3): @@ -549,7 +549,7 @@ def compiler(): variables['HotKeyCalledHotKyes'] = "" variables['jsCode'] = "" variables['outAHKCodeTrimed'] = "" - variables['guiColorShow'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" + variables['guiColorShow'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" variables['guiFontShow'] = "15" variables['nothing'] = "" if (variables['AHKcode'] == ""): @@ -559,7 +559,7 @@ def compiler(): for A_Index27, A_LoopField27 in enumerate(items, start=1): variables['A_Index27'] = A_Index27 variables['A_LoopField27'] = A_LoopField27 - variables['outAHKCodeTrimed'] += Trim(variables['A_LoopField27']) + "\n" + variables['outAHKCodeTrimed'] += Trim(variables['A_LoopField27']) + "\n" variables['AHKcode'] = StringTrimRight(variables['outAHKCodeTrimed'], 1) variables['AHKcodeOUT754754'] = "" variables['areWEinSome34sNum'] = 0 @@ -583,7 +583,7 @@ def compiler(): variables[f'theIdNumOfThe34theVar{variables["theIdNumOfThe34"]}'] += variables['A_LoopField29'] else: variables['theIdNumOfThe34'] += 1 - variables['AHKcodeOUT754754'] += "ihuiuuhuuhtheidFor--asas-theuhturtyphoutr-" + Chr(65) + Chr(65) + str(variables['theIdNumOfThe34']) + Chr(65) + Chr(65) + variables['AHKcodeOUT754754'] += "ihuiuuhuuhtheidFor--asas-theuhturtyphoutr-" + Chr(65) + Chr(65) + str(variables['theIdNumOfThe34']) + Chr(65) + Chr(65) if (variables['areWEinSome34sNum'] == 2)or(variables['areWEinSome34sNum'] == 0): if (variables['A_LoopField29'] != Chr(34)): variables['AHKcodeOUT754754'] += variables['A_LoopField29'] @@ -628,7 +628,7 @@ def compiler(): variables['upCode'] = "" variables['varOutJsCanvasFixTranspernat'] = "" variables['functionNames'] = "eval|str|showCustomMessageBox|BuildInVars|MakeHotKey|Abs|ACos|ASin|ATan|Ceil|Cos|Exp|Floor|Ln|Log|Round|Sin|Sqrt|Tan|Chr|sleep|InStr|RegExMatch|StrLen|getRandomNumber|SubStr|Trim|ParseInt|StrReplace|Mod|Asc|StringTrimLeft|StringTrimRight|isMobileDevice|SetTimer|GuiControl|getDataFromEndpoint|FileAppend|isConnectedToBackend|MouseGetPos|SoundPlay|StoreLocally|createToggleSwitch|getUrlParams|reloadWithParams|PlayVideoFromBase64|PlayVideoFromUrl|PlayYoutubeVid|changeFavicon|OnKeyPress|GetKeyState|createCustomDropdown|StrLower|getDataFromAPI|getDataFromJSON|createCheckbox|createCustomIframe|StrSplit|RegExReplace|AddIDE|runPyCode|SortLikeAHK" - variables['awesdrtf'] = "|A" + Chr(95) + "LoopField|A" + Chr(95) + "Index" + variables['awesdrtf'] = "|A" + Chr(95) + "LoopField|A" + Chr(95) + "Index" variables['willNextLineBeCurlyBracee'] = 0 variables['theFuncWeFound'] = "" variables['theFuncWeFoundAllNames'] = "" @@ -641,10 +641,10 @@ def compiler(): # 123 is { if (variables['A_LoopField31'] == Chr(123)): variables['willNextLineBeCurlyBracee'] = 0 - variables['functionNames'] += "|" + variables['lastFuncName'] + variables['functionNames'] += "|" + variables['lastFuncName'] #lastFuncFullName - variables['theFuncWeFound'] += variables['lastFuncFullName'] + "\n" - variables['theFuncWeFoundAllNames'] += variables['lastFuncName'] + Chr(40) + "\n" + variables['theFuncWeFound'] += variables['lastFuncFullName'] + "\n" + variables['theFuncWeFoundAllNames'] += variables['lastFuncName'] + Chr(40) + "\n" if (SubStr(StrLower(variables['A_LoopField31']), 1 , 4)== variables['CheckIFandElsesss1'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 3)== variables['CheckIFandElsesss2'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 5)== variables['CheckIFandElsesss3'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 4)== variables['CheckIFandElsesss4'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 9)== variables['CheckIFandElsesss5'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 8)== variables['CheckIFandElsesss6'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 10)== variables['CheckIFandElsesss7'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 9)== variables['CheckIFandElsesss8'])or(SubStr(StrLower(variables['A_LoopField31']), 1 , 5)== "loop,"): # not a func variables['willNextLineBeCurlyBracee'] = 0 @@ -680,32 +680,32 @@ def compiler(): variables[f'fixFuncSyntaxBugFixNum{variables["numAIndexfixFuncSyntaxBugFixNum"]}'] = "" if (InStr(variables['AHKcode'] , "OnMouseClick:")): variables['AHKcodeOnMouseClickAdd'] = "\nAttw456543w45eqsubeotibebrawaaachingeventlistenertodocumentaddEventListeneThisfunnctionaftertouchends768ds798y9z7s7xcfy8s7d9fcx\n" - variables['AHKcode'] = variables['AHKcodeOnMouseClickAdd'] + "\n" + variables['AHKcode'] + "\n" + variables['AHKcode'] = variables['AHKcodeOnMouseClickAdd'] + "\n" + variables['AHKcode'] + "\n" items = LoopParseFunc(variables['AHKcode'], "\n", "\r") for A_Index33, A_LoopField33 in enumerate(items, start=1): variables['A_Index33'] = A_Index33 variables['A_LoopField33'] = A_LoopField33 variables['out'] = variables['A_LoopField33'] - if (SubStr(StrLower(variables['out']), 1 , 19)== StrLower("Gui, Add, Rectangle")) or(SubStr(StrLower(variables['out']), 1 , 16)== StrLower("Gui, Add, Circle")): + if (SubStr(StrLower(variables['out']), 1 , 19)== StrLower("Gui, Add, Rectangle"))or(SubStr(StrLower(variables['out']), 1 , 16)== StrLower("Gui, Add, Circle")): variables['weUseCnanvasAtALL'] = 1 items = LoopParseFunc(variables['AHKcode'], "\n", "\r") for A_Index34, A_LoopField34 in enumerate(items, start=1): variables['A_Index34'] = A_Index34 variables['A_LoopField34'] = A_LoopField34 variables['lineDone'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 15)== StrLower("OutputDebug, % ")): + if (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 15)== StrLower("OutputDebug, % ")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 14) variables['var2'] = Trim(transpileVariables(variables['var1'] , variables['functionNames'])) - variables['out'] = "console.log(" + variables['var2'] + ")" + variables['out'] = "console.log(" + variables['var2'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 13)== StrLower("OutputDebug, ")) and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 15) != StrLower("OutputDebug, % ")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 13)== StrLower("OutputDebug, "))and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 15) != StrLower("OutputDebug, % ")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 12) variables['OUTvarMsgLow'] = transpileLowVariables(variables['var1']) - variables['out'] = "console.log(" + variables['OUTvarMsgLow'] + ")" + variables['out'] = "console.log(" + variables['OUTvarMsgLow'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 6)== "sort, "): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 6)== "sort, "): variables['str1'] = StringTrimLeft(variables['A_LoopField34'], 6) variables['str1'] = Trim(variables['str1']) variables['weHaveAcommaFixSortCommand'] = 0 @@ -721,11 +721,11 @@ def compiler(): variables['s'] = StrSplit(variables['str1'] , "," , 2) variables['out2'] = Trim(variables['s']) if (variables['weHaveAcommaFixSortCommand'] == 1): - variables['out2'] = variables['out2'] + Chr(44) - variables['var1'] = "variables." + variables['out1'] + " = SortLikeAHK(variables." + variables['out1'] + ", " + Chr(34) + variables['out2'] + Chr(34) + ")" + variables['out2'] = variables['out2'] + Chr(44) + variables['var1'] = "variables." + variables['out1'] + " = SortLikeAHK(variables." + variables['out1'] + ", " + Chr(34) + variables['out2'] + Chr(34) + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 5)== StrLower("Gui, ")) or(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 4)== StrLower("Gui ")): + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 5)== StrLower("Gui, "))or(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 4)== StrLower("Gui ")): variables['isFullScren'] = 0 variables['str1'] = variables['A_LoopField34'] variables['gradient'] = StringTrimLeft(variables['str1'], 15) @@ -751,7 +751,7 @@ def compiler(): variables['s'] = Trim(variables['s']) if (variables['out2'] != "show"): variables['out3'] = StrLower(Trim(variables['s'])) - variables['out3Good'] = ( Trim(variables['s'])) + variables['out3Good'] = (Trim(variables['s'])) else: variables['out3'] = Trim(variables['s']) variables['s'] = StrSplit(variables['str1'] , ", " , 4) @@ -759,39 +759,39 @@ def compiler(): variables['s'] = StrSplit(variables['str1'] , ", " , 5) variables['out5'] = Trim(variables['s']) if (variables['onceGuiAdd'] == 1): - variables['jsCodeGui'] += "\nvar Gui" + variables['GuiNumber'] + " = {};\nGui" + variables['GuiNumber'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n" + variables['jsCodeGui'] += "\nvar Gui" + variables['GuiNumber'] + " = {};\nGui" + variables['GuiNumber'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n" variables['NumOfButtons'] = 0 variables['onceGuiAdd'] += 1 #;;;;;;;;;;;;;;;;;;;;; #;;;;;;;;;;;;;;;;;;;;; if (variables['out2'] == "color"): - variables['guiColorShow'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" + variables['guiColorShow'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#121212" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" items = LoopParseFunc(variables['out3Good'], " ") for A_Index35, A_LoopField35 in enumerate(items, start=1): variables['A_Index35'] = A_Index35 variables['A_LoopField35'] = A_LoopField35 - if (SubStr(Trim(StrLower(variables['A_LoopField35'])) , 1 , 1)== StrLower("c")): + if (SubStr(Trim(StrLower(variables['A_LoopField35'])), 1 , 1)== StrLower("c")): variables['guiColorShow'] = Trim(variables['A_LoopField35']) variables['guiColorShow'] = StringTrimLeft(variables['guiColorShow'], 1) - variables['var1'] = "" + Chr(34) + " + " + Chr(34) + "#" + variables['guiColorShow'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + " + Chr(34) + "#" + variables['guiColorShow'] + "" + Chr(34) + " + " + Chr(34) + "" variables['guiColorShow'] = variables['var1'] - if (InStr(variables['guiColorShow'] , "%")) and not (( InStr(variables['guiColorShow'] , "%,")) or(InStr(variables['guiColorShow'] , "%)"))): + if (InStr(variables['guiColorShow'] , "%"))and not ((InStr(variables['guiColorShow'] , "%,"))or(InStr(variables['guiColorShow'] , "%)"))): variables['str1'] = variables['guiColorShow'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] #MsgBox, % out2 - variables['var1'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" + variables['var1'] = "linear-gradient(90deg, " + Chr(34) + " + " + Chr(34) + "#" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + Chr(34) + " + " + Chr(34) + " 0" + Chr(37) + ", " + Chr(34) + " + " + Chr(34) + "#" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + Chr(34) + " + " + Chr(34) + " 100" + Chr(37) + ")" variables['guiColorShow'] = variables['var1'] - if (SubStr(Trim(StrLower(variables['A_LoopField35'])) , 1 , 3)== StrLower("gr-")): + if (SubStr(Trim(StrLower(variables['A_LoopField35'])), 1 , 3)== StrLower("gr-")): variables['guiColorShow'] = variables['gradient'] #MsgBox, % linearGradient if (InStr(variables['guiColorShow'] , "thisissemicolonattheendplaceokmansurebruh49475472472")): variables['guiColorShow'] = StringTrimRight(variables['guiColorShow'], 54) - if (InStr(variables['guiColorShow'] , "%")) and not (( InStr(variables['guiColorShow'] , "%,")) or(InStr(variables['guiColorShow'] , "%)"))): + if (InStr(variables['guiColorShow'] , "%"))and not ((InStr(variables['guiColorShow'] , "%,"))or(InStr(variables['guiColorShow'] , "%)"))): variables['str1'] = variables['guiColorShow'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] - variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" variables['guiColorShow'] = variables['var1'] #MsgBox, % guiColorShow if (variables['out2'] == "font"): @@ -799,23 +799,23 @@ def compiler(): for A_Index36, A_LoopField36 in enumerate(items, start=1): variables['A_Index36'] = A_Index36 variables['A_LoopField36'] = A_LoopField36 - if (SubStr(Trim(StrLower(variables['A_LoopField36'])) , 1 , 1)== StrLower("s")): + if (SubStr(Trim(StrLower(variables['A_LoopField36'])), 1 , 1)== StrLower("s")): variables['guiFontShow'] = Trim(variables['A_LoopField36']) variables['guiFontShow'] = StringTrimLeft(variables['guiFontShow'], 1) if (InStr(variables['guiFontShow'] , "%")): variables['str1'] = variables['guiFontShow'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] - variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" variables['guiFontShow'] = variables['var1'] - if (SubStr(Trim(StrLower(variables['A_LoopField36'])) , 1 , 1)== StrLower("f")): + if (SubStr(Trim(StrLower(variables['A_LoopField36'])), 1 , 1)== StrLower("f")): variables['fontName'] = Trim(variables['A_LoopField36']) variables['fontName'] = StringTrimLeft(variables['fontName'], 1) if (InStr(variables['fontName'] , "%")): variables['str1'] = variables['fontName'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] - variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" variables['fontName'] = str(variables['var1']) if (variables['out2'] == "add"): if (variables['out3'] == "text"): @@ -838,52 +838,52 @@ def compiler(): variables['A_LoopField38'] = A_LoopField38 #MsgBox, |%A_LoopField38%| variables['guiOutOfTextNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("c")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("c")): variables['guiOutOfTextC'] = 1 variables['guiOutOfText0'] = StrLower(variables['A_LoopField38']) if (InStr(variables['guiOutOfText0'] , "%")): variables['str1'] = variables['guiOutOfText0'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText0'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfText0'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfText0'] = StringTrimLeft(variables['guiOutOfText0'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("x")): variables['guiOutOfTextX'] = 1 variables['guiOutOfText1'] = variables['A_LoopField38'] if (InStr(variables['guiOutOfText1'] , "%")): variables['str1'] = variables['guiOutOfText1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfText1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfText1'] = StringTrimLeft(variables['guiOutOfText1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("y")): variables['guiOutOfTextY'] = 1 variables['guiOutOfText2'] = variables['A_LoopField38'] if (InStr(variables['guiOutOfText2'] , "%")): variables['str1'] = variables['guiOutOfText2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfText2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfText2'] = StringTrimLeft(variables['guiOutOfText2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("w")): variables['guiOutOfTextW'] = 1 variables['guiOutOfText3'] = variables['A_LoopField38'] if (InStr(variables['guiOutOfText3'] , "%")): variables['str1'] = variables['guiOutOfText3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfText3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfText3'] = StringTrimLeft(variables['guiOutOfText3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("h")): variables['guiOutOfTextH'] = 1 variables['guiOutOfText4'] = variables['A_LoopField38'] if (InStr(variables['guiOutOfText4'] , "%")): variables['str1'] = variables['guiOutOfText4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfText4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfText4'] = StringTrimLeft(variables['guiOutOfText4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("v")): variables['guiOutOfTextV'] = 1 variables['guiOutOfText5'] = variables['A_LoopField38'] variables['guiOutOfText52'] = variables['A_LoopField38'] @@ -892,11 +892,11 @@ def compiler(): variables['str1'] = variables['guiOutOfText5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfText5'] = " [variables." + variables['var1'] + "]" - variables['guiOutOfText52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" + variables['guiOutOfText5'] = " [variables." + variables['var1'] + "]" + variables['guiOutOfText52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" variables['guiOutOfText5'] = StringTrimLeft(variables['guiOutOfText5'], 1) variables['guiOutOfText52'] = StringTrimLeft(variables['guiOutOfText52'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField38'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField38'])), 1 , 1)== StrLower("g")): variables['guiOutOfTextG'] = 1 variables['guiOutOfText6'] = variables['A_LoopField38'] variables['guiOutOfText6'] = StringTrimLeft(variables['guiOutOfText6'], 1) @@ -905,37 +905,37 @@ def compiler(): variables['str1'] = variables['out5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" + variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" if (variables['dynamicGuiSet'] == 0): if (variables['guiOutOfTextV'] == 1): if (variables['guiOutOfTextG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfTextG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfTextV'] == 1): if (variables['guiOutOfTextG'] == 1): - variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfText52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfText5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfTextG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfText6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + " = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Static" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfTexts']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.color = " + Chr(34) + "#" + variables['guiOutOfText0'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfText1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfText2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfText3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfText4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Static" + str(variables['NumOfTexts']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" if (variables['out3'] == "button"): variables['guiOutOfButtonNum'] = 0 variables['guiOutOfButtonX'] = 0 @@ -955,54 +955,54 @@ def compiler(): variables['A_LoopField40'] = A_LoopField40 #MsgBox, |%A_LoopField40%| variables['guiOutOfButtonNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("c")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("c")): variables['guiOutOfButton7'] = variables['A_LoopField40'] variables['guiOutOfButton7'] = StringTrimLeft(variables['guiOutOfButton7'], 1) if (InStr(variables['guiOutOfButton7'] , "%")): variables['str1'] = variables['guiOutOfButton7'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton7'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" + variables['guiOutOfButton7'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" else: - variables['guiOutOfButton7'] = "#" + variables['guiOutOfButton7'] - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 3)== StrLower("gr-")): + variables['guiOutOfButton7'] = "#" + variables['guiOutOfButton7'] + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 3)== StrLower("gr-")): variables['guiOutOfButton11'] = variables['A_LoopField40'] variables['guiOutOfButton11'] = StringTrimLeft(variables['guiOutOfButton11'], 3) if (InStr(variables['guiOutOfButton11'] , "%")): variables['str1'] = variables['guiOutOfButton11'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton11'] = "" + Chr(34) + " + variables." + variables['var1'] + "//" - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("f")): + variables['guiOutOfButton11'] = "" + Chr(34) + " + variables." + variables['var1'] + "//" + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("f")): variables['guiOutOfButton12'] = Trim(variables['A_LoopField40']) variables['guiOutOfButton12'] = StringTrimLeft(variables['guiOutOfButton12'], 1) if (InStr(variables['guiOutOfButton12'] , "%")): variables['str1'] = variables['guiOutOfButton12'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] - variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" variables['guiOutOfButton12'] = variables['var1'] - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 2)== StrLower("bg")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 2)== StrLower("bg")): variables['guiOutOfButton8'] = variables['A_LoopField40'] variables['guiOutOfButton8'] = StringTrimLeft(variables['guiOutOfButton8'], 2) if (InStr(variables['guiOutOfButton8'] , "%")): variables['str1'] = variables['guiOutOfButton8'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton8'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" + variables['guiOutOfButton8'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" else: - variables['guiOutOfButton8'] = "#" + variables['guiOutOfButton8'] - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("r")): + variables['guiOutOfButton8'] = "#" + variables['guiOutOfButton8'] + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("r")): variables['guiOutOfButton9'] = variables['A_LoopField40'] variables['guiOutOfButton9'] = StringTrimLeft(variables['guiOutOfButton9'], 1) if (InStr(variables['guiOutOfButton9'] , "%")): variables['str1'] = variables['guiOutOfButton9'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton9'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" + variables['guiOutOfButton9'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" else: - variables['guiOutOfButton9'] = variables['guiOutOfButton9'] + "px" - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 7)== StrLower("-border")): + variables['guiOutOfButton9'] = variables['guiOutOfButton9'] + "px" + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 7)== StrLower("-border")): variables['guiOutOfButton10'] = variables['A_LoopField40'] variables['guiOutOfButton10'] = StringTrimLeft(variables['guiOutOfButton10'], 7) variables['guiOutOfButton10'] = "none" @@ -1010,44 +1010,44 @@ def compiler(): variables['str1'] = variables['guiOutOfButton10'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton10'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("x")): + variables['guiOutOfButton10'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("x")): variables['guiOutOfButtonX'] = 1 variables['guiOutOfButton1'] = variables['A_LoopField40'] if (InStr(variables['guiOutOfButton1'] , "%")): variables['str1'] = variables['guiOutOfButton1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfButton1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfButton1'] = StringTrimLeft(variables['guiOutOfButton1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("y")): variables['guiOutOfButtonY'] = 1 variables['guiOutOfButton2'] = variables['A_LoopField40'] if (InStr(variables['guiOutOfButton2'] , "%")): variables['str1'] = variables['guiOutOfButton2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfButton2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfButton2'] = StringTrimLeft(variables['guiOutOfButton2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("w")): variables['guiOutOfButtonW'] = 1 variables['guiOutOfButton3'] = variables['A_LoopField40'] if (InStr(variables['guiOutOfButton3'] , "%")): variables['str1'] = variables['guiOutOfButton3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfButton3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfButton3'] = StringTrimLeft(variables['guiOutOfButton3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("h")): variables['guiOutOfButtonH'] = 1 variables['guiOutOfButton4'] = variables['A_LoopField40'] if (InStr(variables['guiOutOfButton4'] , "%")): variables['str1'] = variables['guiOutOfButton4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfButton4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfButton4'] = StringTrimLeft(variables['guiOutOfButton4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("v")): variables['guiOutOfButtonV'] = 1 variables['guiOutOfButton5'] = variables['A_LoopField40'] variables['guiOutOfButton52'] = variables['A_LoopField40'] @@ -1056,11 +1056,11 @@ def compiler(): variables['str1'] = variables['guiOutOfButton5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfButton5'] = " [variables." + variables['var1'] + "]" - variables['guiOutOfButton52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" + variables['guiOutOfButton5'] = " [variables." + variables['var1'] + "]" + variables['guiOutOfButton52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" variables['guiOutOfButton5'] = StringTrimLeft(variables['guiOutOfButton5'], 1) variables['guiOutOfButton52'] = StringTrimLeft(variables['guiOutOfButton52'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 1)== StrLower("g")) and not (( SubStr(Trim(StrLower(variables['A_LoopField40'])) , 1 , 3)== StrLower("gr-"))): + if (SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 1)== StrLower("g"))and not ((SubStr(Trim(StrLower(variables['A_LoopField40'])), 1 , 3)== StrLower("gr-"))): variables['guiOutOfButtonG'] = 1 variables['guiOutOfButton6'] = variables['A_LoopField40'] variables['guiOutOfButton6'] = StringTrimLeft(variables['guiOutOfButton6'], 1) @@ -1069,37 +1069,37 @@ def compiler(): variables['str1'] = variables['out5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" + variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" if (variables['dynamicGuiSet'] == 0): if (variables['guiOutOfButtonV'] == 1): if (variables['guiOutOfButtonG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfButtonG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfButtonV'] == 1): if (variables['guiOutOfButtonG'] == 1): - variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfButton52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfButton5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfButtonG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfButton6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + " = document.createElement(" + Chr(34) + "button" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Button" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfButtons']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".textContent = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfButton1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfButton2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfButton3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfButton4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.cursor = " + Chr(34) + "pointer" + Chr(34) + "; // Change cursor on hover\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfButton10'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfButton11'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfButton8'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfButton9'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfButton7'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfButton12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Button" + str(variables['NumOfButtons']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" if (variables['out3'] == "edit"): variables['guiOutOfEditNum'] = 0 variables['guiOutOfEditX'] = 0 @@ -1118,54 +1118,54 @@ def compiler(): variables['A_LoopField42'] = A_LoopField42 #MsgBox, |%A_LoopField42%| variables['guiOutOfEditNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("c")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("c")): variables['guiOutOfEdit7'] = variables['A_LoopField42'] variables['guiOutOfEdit7'] = StringTrimLeft(variables['guiOutOfEdit7'], 1) if (InStr(variables['guiOutOfEdit7'] , "%")): variables['str1'] = variables['guiOutOfEdit7'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit7'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" + variables['guiOutOfEdit7'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" else: - variables['guiOutOfEdit7'] = "#" + variables['guiOutOfEdit7'] - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 3)== StrLower("gr-")): + variables['guiOutOfEdit7'] = "#" + variables['guiOutOfEdit7'] + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 3)== StrLower("gr-")): variables['guiOutOfEdit11'] = variables['A_LoopField42'] variables['guiOutOfEdit11'] = StringTrimLeft(variables['guiOutOfEdit11'], 3) if (InStr(variables['guiOutOfEdit11'] , "%")): variables['str1'] = variables['guiOutOfEdit11'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit11'] = "" + Chr(34) + " + variables." + variables['var1'] + "//" - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 2)== StrLower("bg")): + variables['guiOutOfEdit11'] = "" + Chr(34) + " + variables." + variables['var1'] + "//" + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 2)== StrLower("bg")): variables['guiOutOfEdit8'] = variables['A_LoopField42'] variables['guiOutOfEdit8'] = StringTrimLeft(variables['guiOutOfEdit8'], 2) if (InStr(variables['guiOutOfEdit8'] , "%")): variables['str1'] = variables['guiOutOfEdit8'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit8'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" + variables['guiOutOfEdit8'] = "#" + Chr(34) + " + variables." + variables['var1'] + "//" else: - variables['guiOutOfEdit8'] = "#" + variables['guiOutOfEdit8'] - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("f")): + variables['guiOutOfEdit8'] = "#" + variables['guiOutOfEdit8'] + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("f")): variables['guiOutOfEdit12'] = Trim(variables['A_LoopField42']) variables['guiOutOfEdit12'] = StringTrimLeft(variables['guiOutOfEdit12'], 1) if (InStr(variables['guiOutOfEdit12'] , "%")): variables['str1'] = variables['guiOutOfEdit12'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['out2'] = variables['s'] - variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" + variables['var1'] = "" + Chr(34) + " + variables." + variables['out2'] + " + " + Chr(34) + "" variables['guiOutOfEdit12'] = variables['var1'] - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("r")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("r")): variables['guiOutOfEdit9'] = variables['A_LoopField42'] variables['guiOutOfEdit9'] = StringTrimLeft(variables['guiOutOfEdit9'], 1) if (InStr(variables['guiOutOfEdit9'] , "%")): variables['str1'] = variables['guiOutOfEdit9'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit9'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" + variables['guiOutOfEdit9'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" else: - variables['guiOutOfEdit9'] = variables['guiOutOfEdit9'] + "px" - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 7)== StrLower("-border")): + variables['guiOutOfEdit9'] = variables['guiOutOfEdit9'] + "px" + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 7)== StrLower("-border")): variables['guiOutOfEdit10'] = variables['A_LoopField42'] variables['guiOutOfEdit10'] = StringTrimLeft(variables['guiOutOfEdit10'], 7) variables['guiOutOfEdit10'] = "none" @@ -1173,44 +1173,44 @@ def compiler(): variables['str1'] = variables['guiOutOfEdit10'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit10'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("x")): + variables['guiOutOfEdit10'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("x")): variables['guiOutOfEditX'] = 1 variables['guiOutOfEdit1'] = variables['A_LoopField42'] if (InStr(variables['guiOutOfEdit1'] , "%")): variables['str1'] = variables['guiOutOfEdit1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfEdit1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfEdit1'] = StringTrimLeft(variables['guiOutOfEdit1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("y")): variables['guiOutOfEditY'] = 1 variables['guiOutOfEdit2'] = variables['A_LoopField42'] if (InStr(variables['guiOutOfEdit2'] , "%")): variables['str1'] = variables['guiOutOfEdit2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfEdit2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfEdit2'] = StringTrimLeft(variables['guiOutOfEdit2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("w")): variables['guiOutOfEditW'] = 1 variables['guiOutOfEdit3'] = variables['A_LoopField42'] if (InStr(variables['guiOutOfEdit3'] , "%")): variables['str1'] = variables['guiOutOfEdit3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfEdit3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfEdit3'] = StringTrimLeft(variables['guiOutOfEdit3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("h")): variables['guiOutOfEditH'] = 1 variables['guiOutOfEdit4'] = variables['A_LoopField42'] if (InStr(variables['guiOutOfEdit4'] , "%")): variables['str1'] = variables['guiOutOfEdit4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfEdit4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfEdit4'] = StringTrimLeft(variables['guiOutOfEdit4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("v")): variables['guiOutOfEditV'] = 1 variables['guiOutOfEdit5'] = variables['A_LoopField42'] variables['guiOutOfEdit52'] = variables['A_LoopField42'] @@ -1219,11 +1219,11 @@ def compiler(): variables['str1'] = variables['guiOutOfEdit5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfEdit5'] = " [variables." + variables['var1'] + "]" - variables['guiOutOfEdit52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" + variables['guiOutOfEdit5'] = " [variables." + variables['var1'] + "]" + variables['guiOutOfEdit52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" variables['guiOutOfEdit52'] = StringTrimLeft(variables['guiOutOfEdit52'], 1) variables['guiOutOfEdit5'] = StringTrimLeft(variables['guiOutOfEdit5'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 1)== StrLower("g")) and not (( SubStr(Trim(StrLower(variables['A_LoopField42'])) , 1 , 3)== StrLower("gr-"))): + if (SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 1)== StrLower("g"))and not ((SubStr(Trim(StrLower(variables['A_LoopField42'])), 1 , 3)== StrLower("gr-"))): variables['guiOutOfEditG'] = 1 variables['guiOutOfEdit6'] = variables['A_LoopField42'] variables['guiOutOfEdit6'] = StringTrimLeft(variables['guiOutOfEdit6'], 1) @@ -1232,37 +1232,37 @@ def compiler(): variables['str1'] = variables['out5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" + variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" if (variables['dynamicGuiSet'] == 0): if (variables['guiOutOfEditV'] == 1): if (variables['guiOutOfEditG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfEditG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfEditV'] == 1): if (variables['guiOutOfEditG'] == 1): - variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\n\n\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfEdit52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfEdit5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfEditG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".addEventListener(" + Chr(34) + "input" + Chr(34) + ", function () {\nvariables.A_GuiControl = Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".value\n " + variables['guiOutOfEdit6'] + "(variables.A_GuiControl);\n});\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + " = document.createElement(" + Chr(34) + "textarea" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Edit" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfEdits']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".placeholder = " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.resize = " + Chr(34) + "none" + Chr(34) + "; // Disable resizing\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfEdit1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfEdit2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfEdit3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfEdit4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.border = " + Chr(34) + "" + variables['guiOutOfEdit10'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.color = " + Chr(34) + "" + variables['guiOutOfEdit7'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.background = " + Chr(34) + "" + variables['guiOutOfEdit11'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.backgroundColor = " + Chr(34) + "" + variables['guiOutOfEdit8'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfEdit9'] + "" + Chr(34) + "\nGui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ".style.fontFamily = " + Chr(34) + "" + variables['guiOutOfEdit12'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Edit" + str(variables['NumOfEdits']) + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" if (variables['out3'] == "picture"): variables['base64ImageNum'] += 1 variables['guiOutOfPictureNum'] = 0 @@ -1282,43 +1282,43 @@ def compiler(): variables['A_LoopField44'] = A_LoopField44 #MsgBox, |%A_LoopField44%| variables['guiOutOfPictureNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("x")): variables['guiOutOfPictureX'] = 1 variables['guiOutOfPicture1'] = variables['A_LoopField44'] if (InStr(variables['guiOutOfPicture1'] , "%")): variables['str1'] = variables['guiOutOfPicture1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfPicture1'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfPicture1'] = StringTrimLeft(variables['guiOutOfPicture1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("y")): variables['guiOutOfPictureY'] = 1 variables['guiOutOfPicture2'] = variables['A_LoopField44'] if (InStr(variables['guiOutOfPicture2'] , "%")): variables['str1'] = variables['guiOutOfPicture2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfPicture2'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfPicture2'] = StringTrimLeft(variables['guiOutOfPicture2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("w")): variables['guiOutOfPictureW'] = 1 variables['guiOutOfPicture3'] = variables['A_LoopField44'] if (InStr(variables['guiOutOfPicture3'] , "%")): variables['str1'] = variables['guiOutOfPicture3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfPicture3'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfPicture3'] = StringTrimLeft(variables['guiOutOfPicture3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("h")): variables['guiOutOfPictureH'] = 1 variables['guiOutOfPicture4'] = variables['A_LoopField44'] if (InStr(variables['guiOutOfPicture4'] , "%")): variables['str1'] = variables['guiOutOfPicture4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfPicture4'] = " " + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfPicture4'] = StringTrimLeft(variables['guiOutOfPicture4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("v")): variables['guiOutOfPictureV'] = 1 variables['guiOutOfPicture5'] = variables['A_LoopField44'] variables['guiOutOfPicture52'] = variables['A_LoopField44'] @@ -1327,78 +1327,78 @@ def compiler(): variables['str1'] = variables['guiOutOfPicture5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture5'] = " [variables." + variables['var1'] + "]" - variables['guiOutOfPicture52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" + variables['guiOutOfPicture5'] = " [variables." + variables['var1'] + "]" + variables['guiOutOfPicture52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" variables['guiOutOfPicture5'] = StringTrimLeft(variables['guiOutOfPicture5'], 1) variables['guiOutOfPicture52'] = StringTrimLeft(variables['guiOutOfPicture52'], 1) variables['weDontHaveAvImage'] = 0 else: variables['weDontHaveAvImage'] = 1 - if (SubStr(Trim(StrLower(variables['A_LoopField44'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField44'])), 1 , 1)== StrLower("g")): variables['guiOutOfPictureG'] = 1 variables['guiOutOfPicture6'] = variables['A_LoopField44'] variables['guiOutOfPicture6'] = StringTrimLeft(variables['guiOutOfPicture6'], 1) variables['NumOfPictures'] += 1 if (variables['weDontHaveAvImage'] == 1): variables['guiOutOfPictureV'] = 1 - variables['guiOutOfPicture5'] = "v" + "Picture" + str(variables['NumOfPictures']) - variables['guiOutOfPicture52'] = "v" + "Picture" + str(variables['NumOfPictures']) + variables['guiOutOfPicture5'] = "v" + "Picture" + str(variables['NumOfPictures']) + variables['guiOutOfPicture52'] = "v" + "Picture" + str(variables['NumOfPictures']) variables['dynamicGuiSet'] = 1 if (InStr(variables['guiOutOfPicture5'] , "%")): variables['str1'] = variables['guiOutOfPicture5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfPicture5'] = " [variables." + variables['var1'] + "]" - variables['guiOutOfPicture52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" + variables['guiOutOfPicture5'] = " [variables." + variables['var1'] + "]" + variables['guiOutOfPicture52'] = " " + Chr(34) + " + [variables." + variables['var1'] + "]" + " + " + "" + Chr(34) + "" variables['guiOutOfPicture5'] = StringTrimLeft(variables['guiOutOfPicture5'], 1) variables['guiOutOfPicture52'] = StringTrimLeft(variables['guiOutOfPicture52'], 1) if (InStr(variables['out5'] , "%")): variables['str1'] = variables['out5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" + variables['out5'] = "" + Chr(34) + "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + Chr(34) + "" if (InStr(variables['out5'] , "https://")or InStr(variables['out5'] , "http://")or InStr(variables['out5'] , "www.")or InStr(variables['out5'] , "ftp://")): # One or more of the specified substrings are found in out5 #MsgBox, URL or FTP link detected in out5: %out5% - variables['isBase64orURL2'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".src = base64Image" + str(variables['base64ImageNum']) + ";\n" + variables['isBase64orURL2'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".src = base64Image" + str(variables['base64ImageNum']) + ";\n" variables['base64out'] = variables['out5'] variables['isBase64orURL'] = variables['isBase64orURL2'] else: # None of the specified substrings are found in out5 #MsgBox, No URL or FTP link detected in out5: %out5% variables['gg'] = 0 - variables['base64'] = "let base64Image" + str(variables['base64ImageNum']) + " = " + Chr(34) + "" + variables['base64out'] + "" + Chr(34) + "" - variables['base64ImageData'] += variables['base64'] + "\n" + variables['base64'] = "let base64Image" + str(variables['base64ImageNum']) + " = " + Chr(34) + "" + variables['base64out'] + "" + Chr(34) + "" + variables['base64ImageData'] += variables['base64'] + "\n" if (variables['dynamicGuiSet'] == 0): if (variables['guiOutOfPictureV'] == 1): if (variables['guiOutOfPictureG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfPictureG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n" + variables['isBase64orURL'] + "\n\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n" + variables['isBase64orURL'] + "\n\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfPictureV'] == 1): if (variables['guiOutOfPictureG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.id.replace(/^Gui" + Chr(92) + "d*/, " + Chr(34) + "" + Chr(34) + ");\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "" + variables['guiOutOfPicture52'] + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: if (variables['guiOutOfPictureG'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".src = " + Chr(34) + "data:image/*;base64," + Chr(34) + " + base64Image" + str(variables['base64ImageNum']) + "; // Assuming the image is in PNG format\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".onclick = function (event) {\nvariables.A_GuiControl = event.target.textContent\n " + variables['guiOutOfPicture6'] + "(variables.A_GuiControl);\n};\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".src = " + Chr(34) + "data:image/*;base64," + Chr(34) + " + base64Image" + str(variables['base64ImageNum']) + "; // Assuming the image is in PNG format\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + " = document.createElement(" + Chr(34) + "img" + Chr(34) + ");\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".id = " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + " + Chr(34) + "Picture" + Chr(34) + " + " + Chr(34) + "" + str(variables['NumOfPictures']) + "" + Chr(34) + "; // Set ID for referencing\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.fontSize = " + Chr(34) + "" + variables['guiFontShow'] + "px" + Chr(34) + "; // Set font size\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.position = " + Chr(34) + "absolute" + Chr(34) + "; // Set position to absolute\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.left = " + Chr(34) + "" + variables['guiOutOfPicture1'] + "px" + Chr(34) + "; // Set initial x position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.top = " + Chr(34) + "" + variables['guiOutOfPicture2'] + "px" + Chr(34) + "; // Set initial y position\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.width = " + Chr(34) + "" + variables['guiOutOfPicture3'] + "px" + Chr(34) + "; // Set width\nGui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ".style.height = " + Chr(34) + "" + variables['guiOutOfPicture4'] + "px" + Chr(34) + "; // Set height\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "Picture" + str(variables['NumOfPictures']) + ");\n\n\n\n\n// Set the src attribute to the Base64-encoded image string for the second block\n" + variables['isBase64orURL'] + "\n\n// Set CSS styles to resize the image to fit inside the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxWidth = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the width of the div\nGui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ".style.maxHeight = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + "; // Resize the image to fit the height of the div\n\n// Append the img element to the div for the second block\nGui" + variables['GuiNumber'] + ".appendChild(Gui" + variables['GuiNumber'] + "" + variables['guiOutOfPicture5'] + ");\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" if (variables['out3'] == "toggle"): variables['guiOutOfSwitchNum'] = 0 variables['guiOutOfSwitchX'] = 0 @@ -1421,46 +1421,46 @@ def compiler(): variables['A_LoopField46'] = A_LoopField46 #MsgBox, |%A_LoopField46%| variables['guiOutOfSwitchNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("x")): variables['guiOutOfSwitchX'] = 1 variables['guiOutOfSwitch1'] = variables['A_LoopField46'] if (InStr(variables['guiOutOfSwitch1'] , "%")): variables['str1'] = variables['guiOutOfSwitch1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfSwitch1'] = " variables." + variables['var1'] + variables['guiOutOfSwitch1'] = " variables." + variables['var1'] variables['guiOutOfSwitch1'] = StringTrimLeft(variables['guiOutOfSwitch1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("y")): variables['guiOutOfSwitchY'] = 1 variables['guiOutOfSwitch2'] = variables['A_LoopField46'] if (InStr(variables['guiOutOfSwitch2'] , "%")): variables['str1'] = variables['guiOutOfSwitch2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfSwitch2'] = " variables." + variables['var1'] + variables['guiOutOfSwitch2'] = " variables." + variables['var1'] variables['guiOutOfSwitch2'] = StringTrimLeft(variables['guiOutOfSwitch2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("w")): variables['guiOutOfSwitchW'] = 1 variables['guiOutOfSwitch3'] = variables['A_LoopField46'] if (InStr(variables['guiOutOfSwitch3'] , "%")): variables['str1'] = variables['guiOutOfSwitch3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfSwitch3'] = " variables." + variables['var1'] + variables['guiOutOfSwitch3'] = " variables." + variables['var1'] variables['guiOutOfSwitch3'] = StringTrimLeft(variables['guiOutOfSwitch3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("h")): variables['guiOutOfSwitchH'] = 1 variables['guiOutOfSwitch4'] = variables['A_LoopField46'] if (InStr(variables['guiOutOfSwitch4'] , "%")): variables['str1'] = variables['guiOutOfSwitch4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfSwitch4'] = " variables." + variables['var1'] + variables['guiOutOfSwitch4'] = " variables." + variables['var1'] variables['guiOutOfSwitch4'] = StringTrimLeft(variables['guiOutOfSwitch4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("v")): variables['guiOutOfSwitchV'] = 1 - variables['guiOutOfSwitch5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField46'] + "" + Chr(34) + "" - variables['guiOutOfSwitch5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField46'] + "" + Chr(34) + "" + variables['guiOutOfSwitch5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField46'] + "" + Chr(34) + "" + variables['guiOutOfSwitch5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField46'] + "" + Chr(34) + "" variables['guiOutOfSwitch5Fix'] = StringTrimRight(variables['guiOutOfSwitch5Fix'], 1) variables['guiOutOfSwitch5Fix'] = StringTrimLeft(variables['guiOutOfSwitch5Fix'], 2) variables['guiOutOfSwitch52'] = variables['A_LoopField46'] @@ -1469,32 +1469,32 @@ def compiler(): variables['str1'] = variables['guiOutOfSwitch5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfSwitch5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" - variables['guiOutOfSwitch5Fix'] = " + [variables." + variables['var1'] + "]" + variables['guiOutOfSwitch5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfSwitch5Fix'] = " + [variables." + variables['var1'] + "]" else: variables['A_LoopField46OutFixCnavas'] = StringTrimLeft(variables['A_LoopField46'], 1) - variables['guiOutOfSwitch5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField46OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfSwitch5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField46OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfSwitch5'] = StringTrimLeft(variables['guiOutOfSwitch5'], 1) variables['guiOutOfSwitch52'] = StringTrimLeft(variables['guiOutOfSwitch52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 1)== StrLower("g")): variables['guiOutOfSwitchG'] = 1 variables['guiOutOfSwitch6'] = variables['A_LoopField46'] variables['guiOutOfSwitch6'] = StringTrimLeft(variables['guiOutOfSwitch6'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField46'])) , 1 , 2)== StrLower("on")): + if (SubStr(Trim(StrLower(variables['A_LoopField46'])), 1 , 2)== StrLower("on")): variables['guiOutOfSwitchOn'] = 1 variables['switchId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfSwitch5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Switch" + str(variables['switchId']) + "" + Chr(34) + "" - variables['guiOutOfSwitch5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "Switch" + str(variables['switchId']) + "" + Chr(34) + "" + variables['guiOutOfSwitch5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Switch" + str(variables['switchId']) + "" + Chr(34) + "" + variables['guiOutOfSwitch5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "Switch" + str(variables['switchId']) + "" + Chr(34) + "" variables['guiOutOfSwitch5Fix'] = StringTrimRight(variables['guiOutOfSwitch5Fix'], 1) variables['guiOutOfSwitch5Fix'] = StringTrimLeft(variables['guiOutOfSwitch5Fix'], 1) if (variables['guiOutOfSwitchOn'] == 1): - variables['switchOut'] = "createToggleSwitch(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfSwitch5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#2196F3" + Chr(34) + ", " + variables['guiOutOfSwitch1'] + ", " + variables['guiOutOfSwitch2'] + ", " + variables['guiOutOfSwitch3'] + ", " + variables['guiOutOfSwitch4'] + ", " + variables['guiOutOfSwitch6'] + " );\ndocument.getElementById('Gui" + variables['GuiNumber'] + "" + variables['guiOutOfSwitch5Fix'] + "').click();" + variables['switchOut'] = "createToggleSwitch(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfSwitch5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#2196F3" + Chr(34) + ", " + variables['guiOutOfSwitch1'] + ", " + variables['guiOutOfSwitch2'] + ", " + variables['guiOutOfSwitch3'] + ", " + variables['guiOutOfSwitch4'] + ", " + variables['guiOutOfSwitch6'] + " );\ndocument.getElementById('Gui" + variables['GuiNumber'] + "" + variables['guiOutOfSwitch5Fix'] + "').click();" else: - variables['switchOut'] = "createToggleSwitch(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfSwitch5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#2196F3" + Chr(34) + ", " + variables['guiOutOfSwitch1'] + ", " + variables['guiOutOfSwitch2'] + ", " + variables['guiOutOfSwitch3'] + ", " + variables['guiOutOfSwitch4'] + ", " + variables['guiOutOfSwitch6'] + " );" + variables['switchOut'] = "createToggleSwitch(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfSwitch5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#2196F3" + Chr(34) + ", " + variables['guiOutOfSwitch1'] + ", " + variables['guiOutOfSwitch2'] + ", " + variables['guiOutOfSwitch3'] + ", " + variables['guiOutOfSwitch4'] + ", " + variables['guiOutOfSwitch6'] + " );" #MsgBox, % rectangleOut - variables['jsCode'] += "\n" + variables['switchOut'] + "\n" + variables['jsCode'] += "\n" + variables['switchOut'] + "\n" if (variables['out3'] == "checkbox"): variables['guiOutOfCheckboxNum'] = 0 variables['guiOutOfCheckboxX'] = 0 @@ -1517,46 +1517,46 @@ def compiler(): variables['A_LoopField48'] = A_LoopField48 #MsgBox, |%A_LoopField48%| variables['guiOutOfCheckboxNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("x")): variables['guiOutOfCheckboxX'] = 1 variables['guiOutOfCheckbox1'] = variables['A_LoopField48'] if (InStr(variables['guiOutOfCheckbox1'] , "%")): variables['str1'] = variables['guiOutOfCheckbox1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfCheckbox1'] = " variables." + variables['var1'] + variables['guiOutOfCheckbox1'] = " variables." + variables['var1'] variables['guiOutOfCheckbox1'] = StringTrimLeft(variables['guiOutOfCheckbox1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("y")): variables['guiOutOfCheckboxY'] = 1 variables['guiOutOfCheckbox2'] = variables['A_LoopField48'] if (InStr(variables['guiOutOfCheckbox2'] , "%")): variables['str1'] = variables['guiOutOfCheckbox2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfCheckbox2'] = " variables." + variables['var1'] + variables['guiOutOfCheckbox2'] = " variables." + variables['var1'] variables['guiOutOfCheckbox2'] = StringTrimLeft(variables['guiOutOfCheckbox2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("w")): variables['guiOutOfCheckboxW'] = 1 variables['guiOutOfCheckbox3'] = variables['A_LoopField48'] if (InStr(variables['guiOutOfCheckbox3'] , "%")): variables['str1'] = variables['guiOutOfCheckbox3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfCheckbox3'] = " variables." + variables['var1'] + variables['guiOutOfCheckbox3'] = " variables." + variables['var1'] variables['guiOutOfCheckbox3'] = StringTrimLeft(variables['guiOutOfCheckbox3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("h")): variables['guiOutOfCheckboxH'] = 1 variables['guiOutOfCheckbox4'] = variables['A_LoopField48'] if (InStr(variables['guiOutOfCheckbox4'] , "%")): variables['str1'] = variables['guiOutOfCheckbox4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfCheckbox4'] = " variables." + variables['var1'] + variables['guiOutOfCheckbox4'] = " variables." + variables['var1'] variables['guiOutOfCheckbox4'] = StringTrimLeft(variables['guiOutOfCheckbox4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("v")): variables['guiOutOfCheckboxV'] = 1 - variables['guiOutOfCheckbox5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField48'] + "" + Chr(34) + "" - variables['guiOutOfCheckbox5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField48'] + "" + Chr(34) + "" + variables['guiOutOfCheckbox5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField48'] + "" + Chr(34) + "" + variables['guiOutOfCheckbox5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField48'] + "" + Chr(34) + "" variables['guiOutOfCheckbox5Fix'] = StringTrimRight(variables['guiOutOfCheckbox5Fix'], 1) variables['guiOutOfCheckbox5Fix'] = StringTrimLeft(variables['guiOutOfCheckbox5Fix'], 2) variables['guiOutOfCheckbox52'] = variables['A_LoopField48'] @@ -1565,28 +1565,28 @@ def compiler(): variables['str1'] = variables['guiOutOfCheckbox5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfCheckbox5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" - variables['guiOutOfCheckbox5Fix'] = " + [variables." + variables['var1'] + "]" + variables['guiOutOfCheckbox5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfCheckbox5Fix'] = " + [variables." + variables['var1'] + "]" else: variables['A_LoopField48OutFixCnavas'] = StringTrimLeft(variables['A_LoopField48'], 1) - variables['guiOutOfCheckbox5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField48OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfCheckbox5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField48OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfCheckbox5'] = StringTrimLeft(variables['guiOutOfCheckbox5'], 1) variables['guiOutOfCheckbox52'] = StringTrimLeft(variables['guiOutOfCheckbox52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 1)== StrLower("g")): variables['guiOutOfCheckboxG'] = 1 variables['guiOutOfCheckbox6'] = variables['A_LoopField48'] variables['guiOutOfCheckbox6'] = StringTrimLeft(variables['guiOutOfCheckbox6'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField48'])) , 1 , 2)== StrLower("on")): + if (SubStr(Trim(StrLower(variables['A_LoopField48'])), 1 , 2)== StrLower("on")): variables['guiOutOfCheckboxOn'] = "true" variables['CheckboxId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfCheckbox5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Checkbox" + str(variables['CheckboxId']) + "" + Chr(34) + "" - variables['guiOutOfCheckbox5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "Checkbox" + str(variables['CheckboxId']) + "" + Chr(34) + "" + variables['guiOutOfCheckbox5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Checkbox" + str(variables['CheckboxId']) + "" + Chr(34) + "" + variables['guiOutOfCheckbox5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "Checkbox" + str(variables['CheckboxId']) + "" + Chr(34) + "" variables['guiOutOfCheckbox5Fix'] = StringTrimRight(variables['guiOutOfCheckbox5Fix'], 1) variables['guiOutOfCheckbox5Fix'] = StringTrimLeft(variables['guiOutOfCheckbox5Fix'], 1) - variables['CheckboxOut'] = "createCheckbox(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfCheckbox5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfCheckboxOn'] + ", " + variables['guiOutOfCheckbox1'] + ", " + variables['guiOutOfCheckbox2'] + ", " + variables['guiOutOfCheckbox6'] + " );" - variables['jsCode'] += "\n" + variables['CheckboxOut'] + "\n" + variables['CheckboxOut'] = "createCheckbox(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfCheckbox5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfCheckboxOn'] + ", " + variables['guiOutOfCheckbox1'] + ", " + variables['guiOutOfCheckbox2'] + ", " + variables['guiOutOfCheckbox6'] + " );" + variables['jsCode'] += "\n" + variables['CheckboxOut'] + "\n" if (variables['out3'] == "ide"): variables['guiOutOfIDENum'] = 0 variables['guiOutOfIDEX'] = 0 @@ -1611,64 +1611,64 @@ def compiler(): variables['A_LoopField50'] = A_LoopField50 #MsgBox, |%A_LoopField50%| variables['guiOutOfIDENum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("x")): variables['guiOutOfIDEX'] = 1 variables['guiOutOfIDE1'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE1'] , "%")): variables['str1'] = variables['guiOutOfIDE1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE1'] = " variables." + variables['var1'] + variables['guiOutOfIDE1'] = " variables." + variables['var1'] variables['guiOutOfIDE1'] = StringTrimLeft(variables['guiOutOfIDE1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("s")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("s")): variables['guiOutOfIDES'] = 1 variables['guiOutOfIDE8'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE8'] , "%")): variables['str1'] = variables['guiOutOfIDE8'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE8'] = " variables." + variables['var1'] + variables['guiOutOfIDE8'] = " variables." + variables['var1'] variables['guiOutOfIDE8'] = StringTrimLeft(variables['guiOutOfIDE8'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("l")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("l")): variables['guiOutOfIDEL'] = 1 variables['guiOutOfIDE7'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE7'] , "%")): variables['str1'] = variables['guiOutOfIDE7'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE7'] = " variables." + variables['var1'] + variables['guiOutOfIDE7'] = " variables." + variables['var1'] variables['guiOutOfIDE7'] = StringTrimLeft(variables['guiOutOfIDE7'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("y")): variables['guiOutOfIDEY'] = 1 variables['guiOutOfIDE2'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE2'] , "%")): variables['str1'] = variables['guiOutOfIDE2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE2'] = " variables." + variables['var1'] + variables['guiOutOfIDE2'] = " variables." + variables['var1'] variables['guiOutOfIDE2'] = StringTrimLeft(variables['guiOutOfIDE2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("w")): variables['guiOutOfIDEW'] = 1 variables['guiOutOfIDE3'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE3'] , "%")): variables['str1'] = variables['guiOutOfIDE3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE3'] = " variables." + variables['var1'] + variables['guiOutOfIDE3'] = " variables." + variables['var1'] variables['guiOutOfIDE3'] = StringTrimLeft(variables['guiOutOfIDE3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("h")): variables['guiOutOfIDEH'] = 1 variables['guiOutOfIDE4'] = variables['A_LoopField50'] if (InStr(variables['guiOutOfIDE4'] , "%")): variables['str1'] = variables['guiOutOfIDE4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE4'] = " variables." + variables['var1'] + variables['guiOutOfIDE4'] = " variables." + variables['var1'] variables['guiOutOfIDE4'] = StringTrimLeft(variables['guiOutOfIDE4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("v")): variables['guiOutOfIDEV'] = 1 - variables['guiOutOfIDE5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField50'] + "" + Chr(34) + "" - variables['guiOutOfIDE5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField50'] + "" + Chr(34) + "" + variables['guiOutOfIDE5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField50'] + "" + Chr(34) + "" + variables['guiOutOfIDE5Fix'] = "" + Chr(34) + "" + "" + variables['A_LoopField50'] + "" + Chr(34) + "" variables['guiOutOfIDE5Fix'] = StringTrimRight(variables['guiOutOfIDE5Fix'], 1) variables['guiOutOfIDE5Fix'] = StringTrimLeft(variables['guiOutOfIDE5Fix'], 2) variables['guiOutOfIDE52'] = variables['A_LoopField50'] @@ -1677,35 +1677,35 @@ def compiler(): variables['str1'] = variables['guiOutOfIDE5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIDE5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" - variables['guiOutOfIDE5Fix'] = " + [variables." + variables['var1'] + "]" + variables['guiOutOfIDE5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfIDE5Fix'] = " + [variables." + variables['var1'] + "]" else: variables['A_LoopField50OutFixCnavas'] = StringTrimLeft(variables['A_LoopField50'], 1) - variables['guiOutOfIDE5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField50OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfIDE5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField50OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfIDE5'] = StringTrimLeft(variables['guiOutOfIDE5'], 1) variables['guiOutOfIDE52'] = StringTrimLeft(variables['guiOutOfIDE52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField50'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField50'])), 1 , 1)== StrLower("g")): variables['guiOutOfIDEG'] = 1 variables['guiOutOfIDE6'] = variables['A_LoopField50'] variables['guiOutOfIDE6'] = StringTrimLeft(variables['guiOutOfIDE6'], 1) variables['IDEId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfIDE5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "IDE" + str(variables['IDEId']) + "" + Chr(34) + "" - variables['guiOutOfIDE5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "IDE" + str(variables['IDEId']) + "" + Chr(34) + "" + variables['guiOutOfIDE5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "IDE" + str(variables['IDEId']) + "" + Chr(34) + "" + variables['guiOutOfIDE5Fix'] = "" + Chr(34) + "" + "" + variables['GuiNumber'] + "IDE" + str(variables['IDEId']) + "" + Chr(34) + "" variables['guiOutOfIDE5Fix'] = StringTrimRight(variables['guiOutOfIDE5Fix'], 1) variables['guiOutOfIDE5Fix'] = StringTrimLeft(variables['guiOutOfIDE5Fix'], 1) if (InStr(variables['out5'] , "%")): variables['out5'] = StringTrimRight(variables['out5'], 1) variables['out5'] = StringTrimLeft(variables['out5'], 1) - variables['out5'] = "variables." + variables['out5'] + variables['out5'] = "variables." + variables['out5'] else: variables['out5'] = "null" if (variables['guiOutOfIDE7'] == ""): variables['guiOutOfIDE7'] = "autohotkey" #AddIDE(parent, xPos, yPos, w, h, id, font, langName = "autohotkey", onChangeFunc, initialText = "") - variables['IDEOut'] = "AddIDE(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfIDE1'] + ", " + variables['guiOutOfIDE2'] + ", " + variables['guiOutOfIDE3'] + ", " + variables['guiOutOfIDE4'] + ", " + variables['guiOutOfIDE5'] + ", " + variables['guiOutOfIDE8'] + ", " + Chr(34) + "" + variables['guiOutOfIDE7'] + "" + Chr(34) + ", " + variables['guiOutOfIDE6'] + ", " + variables['out5'] + " );" - variables['jsCode'] += "\n" + variables['IDEOut'] + "\n" + variables['IDEOut'] = "AddIDE(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfIDE1'] + ", " + variables['guiOutOfIDE2'] + ", " + variables['guiOutOfIDE3'] + ", " + variables['guiOutOfIDE4'] + ", " + variables['guiOutOfIDE5'] + ", " + variables['guiOutOfIDE8'] + ", " + Chr(34) + "" + variables['guiOutOfIDE7'] + "" + Chr(34) + ", " + variables['guiOutOfIDE6'] + ", " + variables['out5'] + " );" + variables['jsCode'] += "\n" + variables['IDEOut'] + "\n" if (variables['out3'] == "dropdownlist"): variables['guiOutOfDropDownListNum'] = 0 variables['guiOutOfDropDownListX'] = 0 @@ -1727,68 +1727,68 @@ def compiler(): variables['A_LoopField52'] = A_LoopField52 #MsgBox, |%A_LoopField52%| variables['guiOutOfDropDownListNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("x")): variables['guiOutOfDropDownListX'] = 1 variables['guiOutOfDropDownList1'] = variables['A_LoopField52'] if (InStr(variables['guiOutOfDropDownList1'] , "%")): variables['str1'] = variables['guiOutOfDropDownList1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfDropDownList1'] = " variables." + variables['var1'] + variables['guiOutOfDropDownList1'] = " variables." + variables['var1'] variables['guiOutOfDropDownList1'] = StringTrimLeft(variables['guiOutOfDropDownList1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("y")): variables['guiOutOfDropDownListY'] = 1 variables['guiOutOfDropDownList2'] = variables['A_LoopField52'] if (InStr(variables['guiOutOfDropDownList2'] , "%")): variables['str1'] = variables['guiOutOfDropDownList2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfDropDownList2'] = " variables." + variables['var1'] + variables['guiOutOfDropDownList2'] = " variables." + variables['var1'] variables['guiOutOfDropDownList2'] = StringTrimLeft(variables['guiOutOfDropDownList2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("w")): variables['guiOutOfDropDownListW'] = 1 variables['guiOutOfDropDownList3'] = variables['A_LoopField52'] if (InStr(variables['guiOutOfDropDownList3'] , "%")): variables['str1'] = variables['guiOutOfDropDownList3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfDropDownList3'] = " variables." + variables['var1'] + variables['guiOutOfDropDownList3'] = " variables." + variables['var1'] variables['guiOutOfDropDownList3'] = StringTrimLeft(variables['guiOutOfDropDownList3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("h")): variables['guiOutOfDropDownListH'] = 1 variables['guiOutOfDropDownList4'] = variables['A_LoopField52'] if (InStr(variables['guiOutOfDropDownList4'] , "%")): variables['str1'] = variables['guiOutOfDropDownList4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfDropDownList4'] = " variables." + variables['var1'] + variables['guiOutOfDropDownList4'] = " variables." + variables['var1'] variables['guiOutOfDropDownList4'] = StringTrimLeft(variables['guiOutOfDropDownList4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("v")): variables['guiOutOfDropDownListV'] = 1 - variables['guiOutOfDropDownList5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField52'] + "" + Chr(34) + "" + variables['guiOutOfDropDownList5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField52'] + "" + Chr(34) + "" variables['guiOutOfDropDownList52'] = variables['A_LoopField52'] variables['dynamicGuiSet'] = 1 if (InStr(variables['guiOutOfDropDownList5'] , "%")): variables['str1'] = variables['guiOutOfDropDownList5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfDropDownList5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfDropDownList5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" else: variables['A_LoopField52OutFixCnavas'] = StringTrimLeft(variables['A_LoopField52'], 1) - variables['guiOutOfDropDownList5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField52OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfDropDownList5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField52OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfDropDownList5'] = StringTrimLeft(variables['guiOutOfDropDownList5'], 1) variables['guiOutOfDropDownList52'] = StringTrimLeft(variables['guiOutOfDropDownList52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField52'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField52'])), 1 , 1)== StrLower("g")): variables['guiOutOfDropDownListG'] = 1 variables['guiOutOfDropDownList6'] = variables['A_LoopField52'] variables['guiOutOfDropDownList6'] = StringTrimLeft(variables['guiOutOfDropDownList6'], 1) variables['DropDownListId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfDropDownList5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "DropDownList" + str(variables['DropDownListId']) + "" + Chr(34) + "" - variables['DropDownListOut'] = "createCustomDropdown(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfDropDownList5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#333333" + Chr(34) + ", " + variables['guiOutOfDropDownList1'] + ", " + variables['guiOutOfDropDownList2'] + ", " + variables['guiOutOfDropDownList3'] + ", " + variables['guiOutOfDropDownList4'] + ", " + variables['guiOutOfDropDownList6'] + " );" + variables['guiOutOfDropDownList5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "DropDownList" + str(variables['DropDownListId']) + "" + Chr(34) + "" + variables['DropDownListOut'] = "createCustomDropdown(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfDropDownList5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#333333" + Chr(34) + ", " + variables['guiOutOfDropDownList1'] + ", " + variables['guiOutOfDropDownList2'] + ", " + variables['guiOutOfDropDownList3'] + ", " + variables['guiOutOfDropDownList4'] + ", " + variables['guiOutOfDropDownList6'] + " );" #MsgBox, % rectangleOut - variables['jsCode'] += "\n" + variables['DropDownListOut'] + "\n" + variables['jsCode'] += "\n" + variables['DropDownListOut'] + "\n" if (variables['out3'] == "iframe"): variables['guiOutOfIframeNum'] = 0 variables['guiOutOfIframeX'] = 0 @@ -1810,67 +1810,67 @@ def compiler(): variables['A_LoopField54'] = A_LoopField54 #MsgBox, |%A_LoopField54%| variables['guiOutOfIframeNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("x")): variables['guiOutOfIframeX'] = 1 variables['guiOutOfIframe1'] = variables['A_LoopField54'] if (InStr(variables['guiOutOfIframe1'] , "%")): variables['str1'] = variables['guiOutOfIframe1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIframe1'] = " variables." + variables['var1'] + variables['guiOutOfIframe1'] = " variables." + variables['var1'] variables['guiOutOfIframe1'] = StringTrimLeft(variables['guiOutOfIframe1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("y")): variables['guiOutOfIframeY'] = 1 variables['guiOutOfIframe2'] = variables['A_LoopField54'] if (InStr(variables['guiOutOfIframe2'] , "%")): variables['str1'] = variables['guiOutOfIframe2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIframe2'] = " variables." + variables['var1'] + variables['guiOutOfIframe2'] = " variables." + variables['var1'] variables['guiOutOfIframe2'] = StringTrimLeft(variables['guiOutOfIframe2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("w")): variables['guiOutOfIframeW'] = 1 variables['guiOutOfIframe3'] = variables['A_LoopField54'] if (InStr(variables['guiOutOfIframe3'] , "%")): variables['str1'] = variables['guiOutOfIframe3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIframe3'] = " variables." + variables['var1'] + variables['guiOutOfIframe3'] = " variables." + variables['var1'] variables['guiOutOfIframe3'] = StringTrimLeft(variables['guiOutOfIframe3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("h")): variables['guiOutOfIframeH'] = 1 variables['guiOutOfIframe4'] = variables['A_LoopField54'] if (InStr(variables['guiOutOfIframe4'] , "%")): variables['str1'] = variables['guiOutOfIframe4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIframe4'] = " variables." + variables['var1'] + variables['guiOutOfIframe4'] = " variables." + variables['var1'] variables['guiOutOfIframe4'] = StringTrimLeft(variables['guiOutOfIframe4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("v")): variables['guiOutOfIframeV'] = 1 - variables['guiOutOfIframe5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField54'] + "" + Chr(34) + "" + variables['guiOutOfIframe5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField54'] + "" + Chr(34) + "" variables['guiOutOfIframe52'] = variables['A_LoopField54'] variables['dynamicGuiSet'] = 1 if (InStr(variables['guiOutOfIframe5'] , "%")): variables['str1'] = variables['guiOutOfIframe5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfIframe5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfIframe5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" else: variables['A_LoopField54OutFixCnavas'] = StringTrimLeft(variables['A_LoopField54'], 1) - variables['guiOutOfIframe5'] = " " + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField54OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfIframe5'] = " " + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField54OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfIframe5'] = StringTrimLeft(variables['guiOutOfIframe5'], 1) variables['guiOutOfIframe52'] = StringTrimLeft(variables['guiOutOfIframe52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField54'])) , 1 , 1)== StrLower("r")): + if (SubStr(Trim(StrLower(variables['A_LoopField54'])), 1 , 1)== StrLower("r")): variables['guiOutOfIframeG'] = 1 variables['guiOutOfIframe6'] = variables['A_LoopField54'] variables['guiOutOfIframe6'] = StringTrimLeft(variables['guiOutOfIframe6'], 1) variables['IframeId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfIframe5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Iframe" + str(variables['IframeId']) + "" + Chr(34) + "" - variables['IframeOut'] = "createCustomIframe(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfIframe5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#333333" + Chr(34) + ", " + variables['guiOutOfIframe1'] + ", " + variables['guiOutOfIframe2'] + ", " + variables['guiOutOfIframe3'] + ", " + variables['guiOutOfIframe4'] + ", " + variables['guiOutOfIframe6'] + ");" - variables['jsCode'] += "\n" + variables['IframeOut'] + "\n" + variables['guiOutOfIframe5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Iframe" + str(variables['IframeId']) + "" + Chr(34) + "" + variables['IframeOut'] = "createCustomIframe(Gui" + variables['GuiNumber'] + ", " + variables['guiOutOfIframe5'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + Chr(34) + "#333333" + Chr(34) + ", " + variables['guiOutOfIframe1'] + ", " + variables['guiOutOfIframe2'] + ", " + variables['guiOutOfIframe3'] + ", " + variables['guiOutOfIframe4'] + ", " + variables['guiOutOfIframe6'] + ");" + variables['jsCode'] += "\n" + variables['IframeOut'] + "\n" if (variables['out3'] == "player"): variables['guiOutOfVideoNum'] = 0 variables['guiOutOfVideoX'] = 0 @@ -1892,59 +1892,59 @@ def compiler(): variables['A_LoopField56'] = A_LoopField56 #MsgBox, |%A_LoopField56%| variables['guiOutOfVideoNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("x")): variables['guiOutOfVideoX'] = 1 variables['guiOutOfVideo1'] = variables['A_LoopField56'] if (InStr(variables['guiOutOfVideo1'] , "%")): variables['str1'] = variables['guiOutOfVideo1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfVideo1'] = " variables." + variables['var1'] + variables['guiOutOfVideo1'] = " variables." + variables['var1'] variables['guiOutOfVideo1'] = StringTrimLeft(variables['guiOutOfVideo1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("y")): variables['guiOutOfVideoY'] = 1 variables['guiOutOfVideo2'] = variables['A_LoopField56'] if (InStr(variables['guiOutOfVideo2'] , "%")): variables['str1'] = variables['guiOutOfVideo2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfVideo2'] = " variables." + variables['var1'] + variables['guiOutOfVideo2'] = " variables." + variables['var1'] variables['guiOutOfVideo2'] = StringTrimLeft(variables['guiOutOfVideo2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("w")): variables['guiOutOfVideoW'] = 1 variables['guiOutOfVideo3'] = variables['A_LoopField56'] if (InStr(variables['guiOutOfVideo3'] , "%")): variables['str1'] = variables['guiOutOfVideo3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfVideo3'] = " variables." + variables['var1'] + variables['guiOutOfVideo3'] = " variables." + variables['var1'] variables['guiOutOfVideo3'] = StringTrimLeft(variables['guiOutOfVideo3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("h")): variables['guiOutOfVideoH'] = 1 variables['guiOutOfVideo4'] = variables['A_LoopField56'] if (InStr(variables['guiOutOfVideo4'] , "%")): variables['str1'] = variables['guiOutOfVideo4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfVideo4'] = " variables." + variables['var1'] + variables['guiOutOfVideo4'] = " variables." + variables['var1'] variables['guiOutOfVideo4'] = StringTrimLeft(variables['guiOutOfVideo4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("v")): variables['guiOutOfVideoV'] = 1 - variables['guiOutOfVideo5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField56'] + "" + Chr(34) + "" + variables['guiOutOfVideo5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField56'] + "" + Chr(34) + "" variables['guiOutOfVideo52'] = variables['A_LoopField56'] variables['dynamicGuiSet'] = 1 if (InStr(variables['guiOutOfVideo5'] , "%")): variables['str1'] = variables['guiOutOfVideo5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfVideo5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfVideo5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" else: variables['A_LoopField56OutFixCnavas'] = StringTrimLeft(variables['A_LoopField56'], 1) - variables['guiOutOfVideo5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField56OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfVideo5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField56OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfVideo5'] = StringTrimLeft(variables['guiOutOfVideo5'], 1) variables['guiOutOfVideo52'] = StringTrimLeft(variables['guiOutOfVideo52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField56'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField56'])), 1 , 1)== StrLower("g")): variables['guiOutOfVideoG'] = 1 variables['guiOutOfVideo6'] = variables['A_LoopField56'] variables['guiOutOfVideo6'] = StringTrimLeft(variables['guiOutOfVideo6'], 1) @@ -1956,29 +1956,29 @@ def compiler(): # One or more of the specified substrings are found in out5 #MsgBox, URL or FTP link detected in out5: %out5% variables['typeOfAvideo'] = 1 - if (InStr(variables['out5'] , "https://www.youtube.com/")) or(InStr(variables['out5'] , "https://youtu.be/")): + if (InStr(variables['out5'] , "https://www.youtube.com/"))or(InStr(variables['out5'] , "https://youtu.be/")): variables['typeOfAvideo'] = 2 if (InStr(variables['out5'] , "https://www.youtube.com/")): variables['gg'] = 0 else: variables['str1'] = Trim(variables['out5']) variables['s'] = StrSplit(variables['str1'] , "https://youtu.be/" , 2) - variables['out5'] = "https://www.youtube.com/watch?v=" + variables['s'] + variables['out5'] = "https://www.youtube.com/watch?v=" + variables['s'] else: # None of the specified substrings are found in out5 #MsgBox, No URL or FTP link detected in out5: %out5% variables['typeOfAvideo'] = 3 variables['videoId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfVideo5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Video" + str(variables['videoId']) + "" + Chr(34) + "" + variables['guiOutOfVideo5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + "Video" + str(variables['videoId']) + "" + Chr(34) + "" if (variables['typeOfAvideo'] == 1): - variables['videoOut'] = "\nPlayVideoFromUrl(Gui" + variables['GuiNumber'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" + variables['videoOut'] = "\nPlayVideoFromUrl(Gui" + variables['GuiNumber'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" if (variables['typeOfAvideo'] == 2): - variables['videoOut'] = "\nPlayYoutubeVid(Gui" + variables['GuiNumber'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" + variables['videoOut'] = "\nPlayYoutubeVid(Gui" + variables['GuiNumber'] + ", " + Chr(34) + "" + variables['out5'] + "" + Chr(34) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" if (variables['typeOfAvideo'] == 3): - variables['videoOut'] = "\nPlayVideoFromBase64(Gui" + variables['GuiNumber'] + ", base64VideoData" + str(variables['base64ImageNum']) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" + variables['videoOut'] = "\nPlayVideoFromBase64(Gui" + variables['GuiNumber'] + ", base64VideoData" + str(variables['base64ImageNum']) + ", " + variables['guiOutOfVideo5'] + ", " + variables['guiOutOfVideo1'] + ", " + variables['guiOutOfVideo2'] + ", " + variables['guiOutOfVideo3'] + ", " + variables['guiOutOfVideo4'] + ", false)\n" #MsgBox, % rectangleOut - variables['jsCode'] += "\n" + variables['videoOut'] + "\n" + variables['jsCode'] += "\n" + variables['videoOut'] + "\n" if (variables['out3'] == "rectangle")or(variables['out3'] == "circle"): variables['ifWeUseCanvasThenAddUpdateFunc1'] = "updateRectangle(id, param1, param2, param3, param4);\nredrawCanvas(); // Redraw the canvas with updated rectangles" variables['ifWeUseCanvasThenAddUpdateFunc2'] = "updateRectangleColor(id, param1);\nredrawCanvas(); // Redraw the canvas with updated rectangles" @@ -2002,86 +2002,86 @@ def compiler(): variables['A_LoopField58'] = A_LoopField58 #MsgBox, |%A_LoopField58%| variables['guiOutOfRectangleNum'] += 1 - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("x")): variables['guiOutOfRectangleX'] = 1 variables['guiOutOfRectangle1'] = variables['A_LoopField58'] if (InStr(variables['guiOutOfRectangle1'] , "%")): variables['str1'] = variables['guiOutOfRectangle1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfRectangle1'] = " variables." + variables['var1'] + variables['guiOutOfRectangle1'] = " variables." + variables['var1'] variables['guiOutOfRectangle1'] = StringTrimLeft(variables['guiOutOfRectangle1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("y")): variables['guiOutOfRectangleY'] = 1 variables['guiOutOfRectangle2'] = variables['A_LoopField58'] if (InStr(variables['guiOutOfRectangle2'] , "%")): variables['str1'] = variables['guiOutOfRectangle2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfRectangle2'] = " variables." + variables['var1'] + variables['guiOutOfRectangle2'] = " variables." + variables['var1'] variables['guiOutOfRectangle2'] = StringTrimLeft(variables['guiOutOfRectangle2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("w")): variables['guiOutOfRectangleW'] = 1 variables['guiOutOfRectangle3'] = variables['A_LoopField58'] if (InStr(variables['guiOutOfRectangle3'] , "%")): variables['str1'] = variables['guiOutOfRectangle3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfRectangle3'] = " variables." + variables['var1'] + variables['guiOutOfRectangle3'] = " variables." + variables['var1'] variables['guiOutOfRectangle3'] = StringTrimLeft(variables['guiOutOfRectangle3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("h")): variables['guiOutOfRectangleH'] = 1 variables['guiOutOfRectangle4'] = variables['A_LoopField58'] if (InStr(variables['guiOutOfRectangle4'] , "%")): variables['str1'] = variables['guiOutOfRectangle4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfRectangle4'] = " variables." + variables['var1'] + variables['guiOutOfRectangle4'] = " variables." + variables['var1'] variables['guiOutOfRectangle4'] = StringTrimLeft(variables['guiOutOfRectangle4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("v")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("v")): variables['guiOutOfRectangleV'] = 1 - variables['guiOutOfRectangle5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField58'] + "" + Chr(34) + "" + variables['guiOutOfRectangle5'] = "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField58'] + "" + Chr(34) + "" variables['guiOutOfRectangle52'] = variables['A_LoopField58'] variables['dynamicGuiSet'] = 1 if (InStr(variables['guiOutOfRectangle5'] , "%")): variables['str1'] = variables['guiOutOfRectangle5'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfRectangle5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" + variables['guiOutOfRectangle5'] = " " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + Chr(34) + " + [variables." + variables['var1'] + "]" else: variables['A_LoopField58OutFixCnavas'] = StringTrimLeft(variables['A_LoopField58'], 1) - variables['guiOutOfRectangle5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField58OutFixCnavas'] + "" + Chr(34) + "" + variables['guiOutOfRectangle5'] = " " + "" + Chr(34) + "" + "Gui" + variables['GuiNumber'] + variables['A_LoopField58OutFixCnavas'] + "" + Chr(34) + "" variables['guiOutOfRectangle5'] = StringTrimLeft(variables['guiOutOfRectangle5'], 1) variables['guiOutOfRectangle52'] = StringTrimLeft(variables['guiOutOfRectangle52'], 1) variables['isThereArecId'] = 0 - if (SubStr(Trim(StrLower(variables['A_LoopField58'])) , 1 , 1)== StrLower("g")): + if (SubStr(Trim(StrLower(variables['A_LoopField58'])), 1 , 1)== StrLower("g")): variables['guiOutOfRectangleG'] = 1 variables['guiOutOfRectangle6'] = variables['A_LoopField58'] variables['guiOutOfRectangle6'] = StringTrimLeft(variables['guiOutOfRectangle6'], 1) variables['rectangleId'] += 1 if (variables['isThereArecId'] == 1): - variables['guiOutOfRectangle5'] = "" + Chr(34) + "" + "Gui1Rectangle" + str(variables['switchId']) + "" + Chr(34) + "" + variables['guiOutOfRectangle5'] = "" + Chr(34) + "" + "Gui1Rectangle" + str(variables['switchId']) + "" + Chr(34) + "" if (variables['out3'] == "circle"): - variables['rectangleOut'] = "// draw a circle dont look that is says drawRoundedRectangle look at the 6th parameter in function its for rounding the rectangle and since we are rounding it to the half of the width of the rectangle it will look like a circle\nrectangles.push(drawRoundedRectangle(ctx, " + variables['guiOutOfRectangle1'] + ", " + variables['guiOutOfRectangle2'] + ", " + variables['guiOutOfRectangle3'] + ", " + variables['guiOutOfRectangle4'] + ", Round(" + variables['guiOutOfRectangle3'] + " / 2), " + Chr(34) + "#E5E5E5" + Chr(34) + ", " + variables['guiOutOfRectangle5'] + "));" + variables['rectangleOut'] = "// draw a circle dont look that is says drawRoundedRectangle look at the 6th parameter in function its for rounding the rectangle and since we are rounding it to the half of the width of the rectangle it will look like a circle\nrectangles.push(drawRoundedRectangle(ctx, " + variables['guiOutOfRectangle1'] + ", " + variables['guiOutOfRectangle2'] + ", " + variables['guiOutOfRectangle3'] + ", " + variables['guiOutOfRectangle4'] + ", Round(" + variables['guiOutOfRectangle3'] + " / 2), " + Chr(34) + "#E5E5E5" + Chr(34) + ", " + variables['guiOutOfRectangle5'] + "));" else: - variables['rectangleOut'] = "rectangles.push(drawRoundedRectangle(ctx, " + variables['guiOutOfRectangle1'] + ", " + variables['guiOutOfRectangle2'] + ", " + variables['guiOutOfRectangle3'] + ", " + variables['guiOutOfRectangle4'] + ", 3, " + Chr(34) + "#E5E5E5" + Chr(34) + ", " + variables['guiOutOfRectangle5'] + "));" + variables['rectangleOut'] = "rectangles.push(drawRoundedRectangle(ctx, " + variables['guiOutOfRectangle1'] + ", " + variables['guiOutOfRectangle2'] + ", " + variables['guiOutOfRectangle3'] + ", " + variables['guiOutOfRectangle4'] + ", 3, " + Chr(34) + "#E5E5E5" + Chr(34) + ", " + variables['guiOutOfRectangle5'] + "));" #MsgBox, % rectangleOut - variables['jsCode'] += "\n" + variables['rectangleOut'] + "\n" + variables['jsCode'] += "\n" + variables['rectangleOut'] + "\n" if (variables['out2'] == "hide"): - variables['outJSshowNoMore'] = "Gui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "none" + Chr(34) + ";" - variables['jsCode'] += "\n" + variables['outJSshowNoMore'] + "\n" + variables['outJSshowNoMore'] = "Gui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "none" + Chr(34) + ";" + variables['jsCode'] += "\n" + variables['outJSshowNoMore'] + "\n" if (variables['out2'] == "show")or(variables['out2'] == "move"): if (Trim(variables['out3'])== ""): - variables['outJSshowNoMore'] = "Gui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";" - variables['jsCode'] += "\n" + variables['outJSshowNoMore'] + "\n" + variables['outJSshowNoMore'] = "Gui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";" + variables['jsCode'] += "\n" + variables['outJSshowNoMore'] + "\n" else: variables['guiOutOfShowX'] = 0 variables['guiOutOfShowY'] = 0 variables['guiOutOfShowW'] = 0 variables['guiOutOfShowH'] = 0 variables['guiOutOfShowRound'] = "0" - variables['boderinGuiYes'] = "Gui" + variables['GuiNumber'] + ".style.border = " + Chr(34) + "2px solid white" + Chr(34) + ";" - variables['boderinGuiYesCan'] = "canvas.style.border = " + Chr(34) + "2px solid white" + Chr(34) + ";" + variables['boderinGuiYes'] = "Gui" + variables['GuiNumber'] + ".style.border = " + Chr(34) + "2px solid white" + Chr(34) + ";" + variables['boderinGuiYesCan'] = "canvas.style.border = " + Chr(34) + "2px solid white" + Chr(34) + ";" for A_Index59 in range(1, 4 + 1): variables['A_Index59'] = A_Index59 variables[f'guiOutOfShow{variables["A_Index59"]}'] = "" @@ -2089,111 +2089,111 @@ def compiler(): for A_Index60, A_LoopField60 in enumerate(items, start=1): variables['A_Index60'] = A_Index60 variables['A_LoopField60'] = A_LoopField60 - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 7)== StrLower("-border")): - variables['boderinGuiYes'] = "Gui" + variables['GuiNumber'] + ".style.border = " + Chr(34) + "" + Chr(34) + ";" - variables['boderinGuiYesCan'] = "canvas.style.border = " + Chr(34) + "" + Chr(34) + ";" - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 12)== StrLower("+WebsiteMode")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 7)== StrLower("-border")): + variables['boderinGuiYes'] = "Gui" + variables['GuiNumber'] + ".style.border = " + Chr(34) + "" + Chr(34) + ";" + variables['boderinGuiYesCan'] = "canvas.style.border = " + Chr(34) + "" + Chr(34) + ";" + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 12)== StrLower("+WebsiteMode")): variables['isFullScren'] = 1 - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 1)== StrLower("x")): variables['guiOutOfShowX'] = 1 variables['guiOutOfShow1'] = variables['A_LoopField60'] if (InStr(variables['guiOutOfShow1'] , "%")): variables['str1'] = variables['guiOutOfShow1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfShow1'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfShow1'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfShow1'] = StringTrimLeft(variables['guiOutOfShow1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 1)== StrLower("y")): variables['guiOutOfShowY'] = 1 variables['guiOutOfShow2'] = variables['A_LoopField60'] if (InStr(variables['guiOutOfShow2'] , "%")): variables['str1'] = variables['guiOutOfShow2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfShow2'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfShow2'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfShow2'] = StringTrimLeft(variables['guiOutOfShow2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 1)== StrLower("w")): variables['guiOutOfShowW'] = 1 variables['guiOutOfShow3'] = variables['A_LoopField60'] if (InStr(variables['guiOutOfShow3'] , "%")): variables['str1'] = variables['guiOutOfShow3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfShow3'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfShow3'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfShow3'] = StringTrimLeft(variables['guiOutOfShow3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 1)== StrLower("h")): variables['guiOutOfShowH'] = 1 variables['guiOutOfShow4'] = variables['A_LoopField60'] if (InStr(variables['guiOutOfShow4'] , "%")): variables['str1'] = variables['guiOutOfShow4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfShow4'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" + variables['guiOutOfShow4'] = " " + Chr(34) + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "" variables['guiOutOfShow4'] = StringTrimLeft(variables['guiOutOfShow4'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField60'])) , 1 , 1)== StrLower("r")): + if (SubStr(Trim(StrLower(variables['A_LoopField60'])), 1 , 1)== StrLower("r")): variables['guiOutOfShowRound'] = variables['A_LoopField60'] variables['guiOutOfShowRound'] = StringTrimLeft(variables['guiOutOfShowRound'], 1) if (InStr(variables['guiOutOfShowRound'] , "%")): variables['str1'] = variables['guiOutOfShowRound'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfShowRound'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" + variables['guiOutOfShowRound'] = "" + Chr(34) + " + variables." + variables['var1'] + " + " + Chr(34) + "px" else: - variables['guiOutOfButton9'] = variables['guiOutOfButton9'] + "px" + variables['guiOutOfButton9'] = variables['guiOutOfButton9'] + "px" if (variables['guiOutOfShowX'] == 1): - variables['jsCode01'] = "Gui" + variables['GuiNumber'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfShow1'] + "px" + Chr(34) + ";" + variables['jsCode01'] = "Gui" + variables['GuiNumber'] + ".style.left = " + Chr(34) + "" + variables['guiOutOfShow1'] + "px" + Chr(34) + ";" else: - variables['jsCode01'] = "Gui" + variables['GuiNumber'] + ".style.left = (window.innerWidth - parseInt(Gui" + variables['GuiNumber'] + ".style.width)) / 2 + " + Chr(34) + "px" + Chr(34) + ";" + variables['jsCode01'] = "Gui" + variables['GuiNumber'] + ".style.left = (window.innerWidth - parseInt(Gui" + variables['GuiNumber'] + ".style.width)) / 2 + " + Chr(34) + "px" + Chr(34) + ";" if (variables['guiOutOfShowY'] == 1): - variables['jsCode02'] = "Gui" + variables['GuiNumber'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfShow2'] + "px" + Chr(34) + ";" + variables['jsCode02'] = "Gui" + variables['GuiNumber'] + ".style.top = " + Chr(34) + "" + variables['guiOutOfShow2'] + "px" + Chr(34) + ";" else: - variables['jsCode02'] = "Gui" + variables['GuiNumber'] + ".style.top = (window.innerHeight - parseInt(Gui" + variables['GuiNumber'] + ".style.height)) / 2 + " + Chr(34) + "px" + Chr(34) + ";" + variables['jsCode02'] = "Gui" + variables['GuiNumber'] + ".style.top = (window.innerHeight - parseInt(Gui" + variables['GuiNumber'] + ".style.height)) / 2 + " + Chr(34) + "px" + Chr(34) + ";" if (variables['guiOutOfShowX'] == 1): - variables['jsCode01Canvas'] = "canvas.style.left = " + Chr(34) + "" + variables['guiOutOfShow1'] + "px" + Chr(34) + ";" + variables['jsCode01Canvas'] = "canvas.style.left = " + Chr(34) + "" + variables['guiOutOfShow1'] + "px" + Chr(34) + ";" else: - variables['jsCode01Canvas'] = "canvas.style.left = (window.innerWidth - canvas.width) / 2 + " + Chr(34) + "px" + Chr(34) + ";" + variables['jsCode01Canvas'] = "canvas.style.left = (window.innerWidth - canvas.width) / 2 + " + Chr(34) + "px" + Chr(34) + ";" if (variables['guiOutOfShowY'] == 1): - variables['jsCode02Canvas'] = "canvas.style.top = " + Chr(34) + "" + variables['guiOutOfShow2'] + "px" + Chr(34) + ";" + variables['jsCode02Canvas'] = "canvas.style.top = " + Chr(34) + "" + variables['guiOutOfShow2'] + "px" + Chr(34) + ";" else: - variables['jsCode02Canvas'] = "canvas.style.top = (window.innerHeight - canvas.height) / 2 + " + Chr(34) + "px" + Chr(34) + ";" + variables['jsCode02Canvas'] = "canvas.style.top = (window.innerHeight - canvas.height) / 2 + " + Chr(34) + "px" + Chr(34) + ";" if (variables['isFullScren'] == 1): variables['isFullScrenOnce'] += 1 if (variables['isFullScrenOnce'] == 1): - variables['FullScrenFixCode'] = "document.documentElement.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "padding: 0; margin: 0;" + Chr(34) + ");\ndocument.head.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "padding: 0; margin: 0;" + Chr(34) + ");\ndocument.body.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "overflow-x: hidden;padding: 0; margin: 0;" + Chr(34) + ");" + variables['FullScrenFixCode'] = "document.documentElement.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "padding: 0; margin: 0;" + Chr(34) + ");\ndocument.head.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "padding: 0; margin: 0;" + Chr(34) + ");\ndocument.body.setAttribute(" + Chr(34) + "style" + Chr(34) + ", " + Chr(34) + "overflow-x: hidden;padding: 0; margin: 0;" + Chr(34) + ");" else: variables['FullScrenFixCode'] = "\n" else: variables['FullScrenFixCode'] = "\n" #MsgBox, % weUseCnanvasAtALL if (variables['weUseCnanvasAtALL'] == 1): - variables['varOutJsCanvasFixTranspernat'] = "Gui1.style.backgroundColor = " + Chr(34) + "transparent" + Chr(34) + ";\nGui1.style.zIndex = " + Chr(34) + "100" + Chr(34) + ";" + variables['varOutJsCanvasFixTranspernat'] = "Gui1.style.backgroundColor = " + Chr(34) + "transparent" + Chr(34) + ";\nGui1.style.zIndex = " + Chr(34) + "100" + Chr(34) + ";" if (variables['isFullScren'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = window.innerWidth + " + Chr(34) + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = window.innerWidth + " + Chr(34) + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\n" + variables['boderinGuiYes'] + "\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\n\n// Calculate center position\n" + variables['jsCode01'] + "\n" + variables['jsCode02'] + "\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\n" + variables['boderinGuiYes'] + "\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\n\n// Calculate center position\n" + variables['jsCode01'] + "\n" + variables['jsCode02'] + "\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" else: if (variables['isFullScren'] == 1): - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = window.innerWidth + " + Chr(34) + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = window.innerWidth + " + Chr(34) + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" else: - variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\n" + variables['boderinGuiYes'] + "\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n// Calculate center position\n" + variables['jsCode01'] + "\n" + variables['jsCode02'] + "\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" + variables['jsCode0'] = "\nGui" + variables['GuiNumber'] + ".style.position = " + Chr(34) + "absolute" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "px" + Chr(34) + "; // Set the width\nGui" + variables['GuiNumber'] + ".style.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "px" + Chr(34) + "; // Set the height\nGui" + variables['GuiNumber'] + ".style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.color = " + Chr(34) + "white" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.fontSize = " + Chr(34) + "15px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\nGui" + variables['GuiNumber'] + ".style.padding = " + Chr(34) + "0px" + Chr(34) + ";\n" + variables['boderinGuiYes'] + "\nGui" + variables['GuiNumber'] + ".style.fontFamily = " + Chr(34) + "" + variables['fontName'] + ", sans-serif" + Chr(34) + "; // Specify your desired font here\nGui" + variables['GuiNumber'] + ".style.zIndex = " + Chr(34) + "" + variables['GuiNumber'] + "00" + Chr(34) + ";\n\n// Calculate center position\n" + variables['jsCode01'] + "\n" + variables['jsCode02'] + "\n\n\n" + variables['varOutJsCanvasFixTranspernat'] + "\n\ndocument.body.appendChild(Gui" + variables['GuiNumber'] + "); // Append the GUI window to the body\nGui" + variables['GuiNumber'] + ".style.display = " + Chr(34) + "block" + Chr(34) + ";\n" if (variables['isFullScren'] == 1): - variables['jsCode0Canvas'] = "\n\n// Create a canvas element dynamically\ncanvas = document.createElement(" + Chr(34) + "canvas" + Chr(34) + ");\ncanvas.id = " + Chr(34) + "canvasId" + Chr(34) + "; // Assign ID to the canvas element\ncanvas.style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\ncanvas.width = window.innerWidth;\ncanvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height\ncanvas.style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\ncanvas.style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + "; // Set background color\n\n// Get the 2D rendering context\nctx = canvas.getContext(" + Chr(34) + "2d" + Chr(34) + ");\n\n// Center the canvas\ncanvas.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n\n\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\n\n// Array to store information about rectangles\nrectangles = [];\n" + variables['jsCode0Canvas'] = "\n\n// Create a canvas element dynamically\ncanvas = document.createElement(" + Chr(34) + "canvas" + Chr(34) + ");\ncanvas.id = " + Chr(34) + "canvasId" + Chr(34) + "; // Assign ID to the canvas element\ncanvas.style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\ncanvas.width = window.innerWidth;\ncanvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height\ncanvas.style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\ncanvas.style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + "; // Set background color\n\n// Get the 2D rendering context\nctx = canvas.getContext(" + Chr(34) + "2d" + Chr(34) + ");\n\n// Center the canvas\ncanvas.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n\n\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\n\n// Array to store information about rectangles\nrectangles = [];\n" else: - variables['jsCode0Canvas'] = "\n\n// Create a canvas element dynamically\ncanvas = document.createElement(" + Chr(34) + "canvas" + Chr(34) + ");\ncanvas.id = " + Chr(34) + "canvasId" + Chr(34) + "; // Assign ID to the canvas element\ncanvas.style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\ncanvas.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "" + Chr(34) + "; // Set the width\ncanvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height\ncanvas.style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\n" + variables['boderinGuiYesCan'] + "\ncanvas.style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + "; // Set background color\n\n// Get the 2D rendering context\nctx = canvas.getContext(" + Chr(34) + "2d" + Chr(34) + ");\n\n// Center the canvas\ncanvas.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n" + variables['jsCode01Canvas'] + "\n" + variables['jsCode02Canvas'] + "\n\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\n\n// Array to store information about rectangles\nrectangles = [];\n" + variables['jsCode0Canvas'] = "\n\n// Create a canvas element dynamically\ncanvas = document.createElement(" + Chr(34) + "canvas" + Chr(34) + ");\ncanvas.id = " + Chr(34) + "canvasId" + Chr(34) + "; // Assign ID to the canvas element\ncanvas.style.background = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + ";\ncanvas.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "" + Chr(34) + "; // Set the width\ncanvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height\ncanvas.style.borderRadius = " + Chr(34) + "" + variables['guiOutOfShowRound'] + "px" + Chr(34) + ";\n" + variables['boderinGuiYesCan'] + "\ncanvas.style.backgroundColor = " + Chr(34) + "" + variables['guiColorShow'] + "" + Chr(34) + "; // Set background color\n\n// Get the 2D rendering context\nctx = canvas.getContext(" + Chr(34) + "2d" + Chr(34) + ");\n\n// Center the canvas\ncanvas.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n" + variables['jsCode01Canvas'] + "\n" + variables['jsCode02Canvas'] + "\n\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\n\n// Array to store information about rectangles\nrectangles = [];\n" if (variables['guiOutOfShow3'] != ""): - variables['jsCode01CanvasW'] = "canvas.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "" + Chr(34) + "; // Set the width" + variables['jsCode01CanvasW'] = "canvas.width = " + Chr(34) + "" + variables['guiOutOfShow3'] + "" + Chr(34) + "; // Set the width" if (variables['guiOutOfShow4'] != ""): - variables['jsCode01CanvasH'] = "canvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height" - variables['jsCode0Canvas2'] = "\n" + variables['jsCode01CanvasW'] + "\n" + variables['jsCode01CanvasH'] + "\n\n\n" + variables['jsCode01Canvas'] + "\n" + variables['jsCode02Canvas'] + "\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\nredrawCanvas();\n" + variables['jsCode01CanvasH'] = "canvas.height = " + Chr(34) + "" + variables['guiOutOfShow4'] + "" + Chr(34) + "; // Set the height" + variables['jsCode0Canvas2'] = "\n" + variables['jsCode01CanvasW'] + "\n" + variables['jsCode01CanvasH'] + "\n\n\n" + variables['jsCode01Canvas'] + "\n" + variables['jsCode02Canvas'] + "\n\n// Append the canvas to the body\ndocument.body.appendChild(canvas);\nredrawCanvas();\n" if (variables['weUseCnanvasAtALLEver'] == 1): - variables['jsCode0'] = variables['jsCode0'] + variables['jsCode0Canvas2'] + variables['jsCode0'] = variables['jsCode0'] + variables['jsCode0Canvas2'] if (variables['weUseCnanvasAtALL'] == 1): - variables['jsCode0'] = variables['jsCode0'] + variables['jsCode0Canvas'] + variables['jsCode0'] = variables['jsCode0'] + variables['jsCode0Canvas'] variables['weUseCnanvasAtALL'] = 0 variables['weUseCnanvasAtALLEver'] = 1 - variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['FullScrenFixCode'] + "\n" + variables['jsCode'] += "\n" + variables['jsCode0'] + "\n" + variables['FullScrenFixCode'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 12)== StrLower("GuiControl, ")) or(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 11)== StrLower("GuiControl ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 12)== StrLower("GuiControl, "))or(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 11)== StrLower("GuiControl ")): variables['str1'] = variables['A_LoopField34'] variables['str1'] = StrReplace(variables['str1'] , ": " , ", ") variables['s'] = StrSplit(variables['str1'] , "," , 1) @@ -2215,9 +2215,9 @@ def compiler(): variables['str1'] = variables['out3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['out3'] = "" + Chr(34) + " + variables." + variables['var1'] + variables['out3'] = "" + Chr(34) + " + variables." + variables['var1'] else: - variables['out3'] = variables['out3'] + Chr(34) + variables['out3'] = variables['out3'] + Chr(34) if (variables['out2'] == "move"): variables['guiOutOfMoveX'] = 0 variables['guiOutOfMoveY'] = 0 @@ -2230,76 +2230,78 @@ def compiler(): for A_Index62, A_LoopField62 in enumerate(items, start=1): variables['A_Index62'] = A_Index62 variables['A_LoopField62'] = A_LoopField62 - if (SubStr(Trim(StrLower(variables['A_LoopField62'])) , 1 , 1)== StrLower("x")): + if (SubStr(Trim(StrLower(variables['A_LoopField62'])), 1 , 1)== StrLower("x")): variables['guiOutOfMoveX'] = 1 variables['guiOutOfMove1'] = variables['A_LoopField62'] if (InStr(variables['guiOutOfMove1'] , "%")): variables['str1'] = variables['guiOutOfMove1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfMove1'] = " variables." + variables['var1'] + variables['guiOutOfMove1'] = " variables." + variables['var1'] variables['guiOutOfMove1'] = StringTrimLeft(variables['guiOutOfMove1'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField62'])) , 1 , 1)== StrLower("y")): + if (SubStr(Trim(StrLower(variables['A_LoopField62'])), 1 , 1)== StrLower("y")): variables['guiOutOfMoveY'] = 1 variables['guiOutOfMove2'] = variables['A_LoopField62'] if (InStr(variables['guiOutOfMove2'] , "%")): variables['str1'] = variables['guiOutOfMove2'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfMove2'] = " variables." + variables['var1'] + variables['guiOutOfMove2'] = " variables." + variables['var1'] variables['guiOutOfMove2'] = StringTrimLeft(variables['guiOutOfMove2'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField62'])) , 1 , 1)== StrLower("w")): + if (SubStr(Trim(StrLower(variables['A_LoopField62'])), 1 , 1)== StrLower("w")): variables['guiOutOfMoveW'] = 1 variables['guiOutOfMove3'] = variables['A_LoopField62'] if (InStr(variables['guiOutOfMove3'] , "%")): variables['str1'] = variables['guiOutOfMove3'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfMove3'] = " variables." + variables['var1'] + variables['guiOutOfMove3'] = " variables." + variables['var1'] variables['guiOutOfMove3'] = StringTrimLeft(variables['guiOutOfMove3'], 1) - if (SubStr(Trim(StrLower(variables['A_LoopField62'])) , 1 , 1)== StrLower("h")): + if (SubStr(Trim(StrLower(variables['A_LoopField62'])), 1 , 1)== StrLower("h")): variables['guiOutOfMoveH'] = 1 variables['guiOutOfMove4'] = variables['A_LoopField62'] if (InStr(variables['guiOutOfMove4'] , "%")): variables['str1'] = variables['guiOutOfMove4'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['guiOutOfMove4'] = " variables." + variables['var1'] + variables['guiOutOfMove4'] = " variables." + variables['var1'] variables['guiOutOfMove4'] = StringTrimLeft(variables['guiOutOfMove4'], 1) - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['guiOutOfMove1'] + ", " + variables['guiOutOfMove2'] + ", " + variables['guiOutOfMove3'] + ", " + variables['guiOutOfMove4'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['guiOutOfMove1'] + ", " + variables['guiOutOfMove2'] + ", " + variables['guiOutOfMove3'] + ", " + variables['guiOutOfMove4'] + ");" #MsgBox, % out0 if (variables['out2'] == "focus"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" if (variables['out2'] == "text"): variables['var1'] = variables['out4'] if (InStr(variables['var1'] , "%")): variables['str1'] = variables['var1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['var1'] = "variables." + variables['var1'] - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" + variables['var1'] = "variables." + variables['var1'] + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" else: - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" if (variables['out2'] == "textide"): variables['var1'] = variables['out4'] if (InStr(variables['var1'] , "%")): variables['str1'] = variables['var1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['var1'] = "variables." + variables['var1'] - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" + variables['var1'] = "variables." + variables['var1'] + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" else: - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" if (variables['out2'] == "hide"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" if (variables['out2'] == "show"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" if (variables['out2'] == "disable"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + if (variables['out2'] == "destroy"): + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" if (variables['out2'] == "enable"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ");" if (variables['out2'] == "picture"): - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['out4'] + "" + Chr(34) + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['out4'] + "" + Chr(34) + ");" if (variables['out2'] == "font"): if (InStr(variables['out4'] , "s")): variables['out2'] = "font" @@ -2309,10 +2311,10 @@ def compiler(): variables['str1'] = variables['var1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['var1'] = "variables." + variables['var1'] - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" + variables['var1'] = "variables." + variables['var1'] + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" else: - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" if (InStr(variables['out4'] , "c")): variables['out2'] = "color" variables['var1'] = variables['out4'] @@ -2321,16 +2323,16 @@ def compiler(): variables['str1'] = variables['var1'] variables['s'] = StrSplit(variables['str1'] , "%" , 2) variables['var1'] = variables['s'] - variables['var1'] = "variables." + variables['var1'] - variables['var1'] = "" + Chr(34) + "#" + Chr(34) + " + " + variables['var1'] - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" + variables['var1'] = "variables." + variables['var1'] + variables['var1'] = "" + Chr(34) + "#" + Chr(34) + " + " + variables['var1'] + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + variables['var1'] + ");" else: - variables['var1'] = "#" + variables['var1'] - variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" - variables['out0'] = StrReplace(variables['out0'] , Chr(44) + Chr(32) + Chr(44) + Chr(32), "") - variables['jsCode'] += variables['out0'] + "\n" + variables['var1'] = "#" + variables['var1'] + variables['out0'] = "GuiControl(" + Chr(34) + "" + variables['out2'] + "" + Chr(34) + ", " + Chr(34) + "Gui" + variables['GuiNumber'] + "" + variables['out3'] + ", " + Chr(34) + "" + variables['var1'] + "" + Chr(34) + ");" + variables['out0'] = StrReplace(variables['out0'] , Chr(44) + Chr(32) + Chr(44) + Chr(32), "") + variables['jsCode'] += variables['out0'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 8)== StrLower("Random, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 8)== StrLower("Random, ")): variables['sstr1'] = variables['A_LoopField34'] variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['out00'] = variables['s'] @@ -2346,21 +2348,21 @@ def compiler(): variables['line11'] = transpileVariables(variables['out11'] , variables['functionNames']) variables['line22'] = transpileVariables(variables['out22'] , variables['functionNames']) #MsgBox, % line - variables['var1'] = variables['line00'] + " = getRandomNumber(" + variables['line11'] + ", " + variables['line22'] + ")" + variables['var1'] = variables['line00'] + " = getRandomNumber(" + variables['line11'] + ", " + variables['line22'] + ")" #MsgBox, % var1 variables['lineDone'] = 1 - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== "gosub, "): + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== "gosub, "): #MsgBox, % A_LoopField34 variables['sstr1'] = variables['A_LoopField34'] variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['out1'] = variables['s'] variables['out1'] = Trim(variables['out1']) - variables['out2'] = "await " + variables['out1'] + "()" + variables['out2'] = "await " + variables['out1'] + "()" #MsgBox, % out2 variables['lineDone'] = 1 - variables['jsCode'] += variables['out2'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== "settimer, "): + variables['jsCode'] += variables['out2'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== "settimer, "): variables['sstr1'] = variables['A_LoopField34'] variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['out1'] = Trim(variables['s']) @@ -2371,28 +2373,28 @@ def compiler(): variables['myVar'] = variables['out2'] if (RegExReplace(variables['myVar'] , "^\\d+(\\.\\d+)?$" , "")== ""): #MsgBox, % "The variable is a number." - variables['out3'] = "SetTimer(" + variables['out1'] + ", " + variables['out2'] + ")" + variables['out3'] = "SetTimer(" + variables['out1'] + ", " + variables['out2'] + ")" else: if (StrLower(variables['out2'])== "off"): variables['out2'] = "Off" else: variables['out2'] = "On" #MsgBox, % "The variable is not a number." - variables['out3'] = "SetTimer(" + variables['out1'] + ", " + Chr(34) + variables['out2'] + Chr(34) + ")" + variables['out3'] = "SetTimer(" + variables['out1'] + ", " + Chr(34) + variables['out2'] + Chr(34) + ")" #MsgBox, % out3 - variables['jsCode'] += variables['out3'] + "\n" + variables['jsCode'] += variables['out3'] + "\n" variables['lineDone'] = 1 - elif (RegExReplace(variables['A_LoopField34'] , "^\\w+:$" , "") != variables['A_LoopField34'])and(Trim(SubStr(variables['A_LoopField34'] , 0)) == ":")and(variables['lineDone'] != 1): + elif (RegExReplace(variables['A_LoopField34'] , "^\\w+:$" , "") != variables['A_LoopField34'])and(Trim(SubStr(variables['A_LoopField34'] , 0))== ":")and(variables['lineDone'] != 1): #MsgBox, % A_LoopField34 variables['out1'] = variables['A_LoopField34'] variables['out1'] = Trim(variables['out1']) variables['out1'] = StringTrimRight(variables['out1'], 1) if (variables['out1'] == "OnKeyPress"): - variables['onKeyPress'] = "\n document.addEventListener(" + Chr(34) + "keypress" + Chr(34) + ", function (event) {\n // Code to execute when a key is pressed\n console.log(" + Chr(34) + "Key pressed:" + Chr(34) + ", event.key);\n\n OnKeyPress(event.key);\n });\n" + variables['onKeyPress'] = "\n document.addEventListener(" + Chr(34) + "keypress" + Chr(34) + ", function (event) {\n // Code to execute when a key is pressed\n console.log(" + Chr(34) + "Key pressed:" + Chr(34) + ", event.key);\n\n OnKeyPress(event.key);\n });\n" variables['forJsCode'] = "\n async function OnKeyPress(A_ThisHotkey)\n {\n variables.A_ThisHotkey = A_ThisHotkey\n" - variables['jsCode'] += variables['forJsCode'] + "\n" + variables['jsCode'] += variables['forJsCode'] + "\n" else: - variables['jsCode'] += "async function " + variables['out1'] + "(A_GuiControl)\n{\n" + variables['jsCode'] += "async function " + variables['out1'] + "(A_GuiControl)\n{\n" #MsgBox, % out1 #~ MsgBox, % see variables['lineDone'] = 1 @@ -2424,7 +2426,7 @@ def compiler(): variables['A_LoopField64'] = A_LoopField64 variables['HotKeylettersOnlySTRLEN'] += 1 if (variables['HotKeylettersOnlySTRLEN'] != 1): - variables['HotKeylettersOnly'] = "Arrow" + variables['HotKeylettersOnly'] + variables['HotKeylettersOnly'] = "Arrow" + variables['HotKeylettersOnly'] #MsgBox, % HotKeylettersOnly variables['HotKeyNumOnly'] = "" variables['HotKeyNumOnly'] = RegExReplace(variables['out1'] , "\\D" , "") @@ -2433,27 +2435,27 @@ def compiler(): else: variables['out3'] = variables['HotKeyNumOnly'] if (variables['HotKeyCtrl'] == 1): - variables['out3'] = "Ctrl+" + variables['out3'] + variables['out3'] = "Ctrl+" + variables['out3'] if (variables['HotKeyShift'] == 1): - variables['out3'] = "Shift+" + variables['out3'] + variables['out3'] = "Shift+" + variables['out3'] if (variables['HotKeyAlt'] == 1): - variables['out3'] = "Alt+" + variables['out3'] + variables['out3'] = "Alt+" + variables['out3'] variables['out4'] = variables['out3'] variables['out4'] = StrReplace(variables['out4'] , "+" , "") variables['out3'] = StrReplace(variables['out3'] , "ArrowBackspace" , "Backspace") variables['out4'] = StrReplace(variables['out4'] , "ArrowBackspace" , "Backspace") variables['out3'] = StrReplace(variables['out3'] , "ArrowEnter" , "Enter") variables['out4'] = StrReplace(variables['out4'] , "ArrowEnter" , "Enter") - variables['HotKeyCalledHotKyesOut'] = "\nMakeHotKey(" + Chr(34) + "" + variables['out3'] + "" + Chr(34) + ", function(hotkey) {\nHotKeyCalled" + variables['out4'] + "()\n});\n" - variables['HotKeyCalledHotKyes'] += variables['HotKeyCalledHotKyesOut'] + "\n" - variables['out2'] = "\nasync function HotKeyCalled" + variables['out4'] + "()\n{\n// console.log(" + Chr(34) + "HotKeyCalled " + variables['out4'] + "" + Chr(34) + ")\n\n" + variables['HotKeyCalledHotKyesOut'] = "\nMakeHotKey(" + Chr(34) + "" + variables['out3'] + "" + Chr(34) + ", function(hotkey) {\nHotKeyCalled" + variables['out4'] + "()\n});\n" + variables['HotKeyCalledHotKyes'] += variables['HotKeyCalledHotKyesOut'] + "\n" + variables['out2'] = "\nasync function HotKeyCalled" + variables['out4'] + "()\n{\n// console.log(" + Chr(34) + "HotKeyCalled " + variables['out4'] + "" + Chr(34) + ")\n\n" #MsgBox, % out2 - variables['jsCode'] += variables['out2'] + "\n" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 elif (variables['A_LoopField34'] == "Return"): - variables['jsCode'] += "}" + "\n" + variables['jsCode'] += "}" + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== "inputbox, "): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== "inputbox, "): variables['lineDone'] = 1 variables['out2'] = StringTrimLeft(variables['A_LoopField34'], 10) variables['sstr1'] = variables['out2'] @@ -2468,47 +2470,47 @@ def compiler(): variables['ou3'] = Trim(variables['ou3']) if (variables['ou3'] == ""): variables['ou3'] = variables['ou2'] - variables['var1'] = "variables." + variables['ou1'] + " = prompt('" + variables['ou3'] + "');" - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 17)== StrLower("StringTrimRight, ")): + variables['var1'] = "variables." + variables['ou1'] + " = prompt('" + variables['ou3'] + "');" + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 17)== StrLower("StringTrimRight, ")): variables['varr1'] = StrSplit(variables['A_LoopField34'] , "," , 2) variables['varr2'] = StrSplit(variables['A_LoopField34'] , "," , 3) variables['varr3'] = StrSplit(variables['A_LoopField34'] , "," , 4) variables['outt1'] = Trim(transpileVariables(variables['varr1'] , variables['functionNames'])) variables['outt2'] = Trim(transpileVariables(variables['varr2'] , variables['functionNames'])) variables['outt3'] = Trim(transpileVariables(variables['varr3'] , variables['functionNames'])) - variables['out'] = variables['outt1'] + " = " + "StringTrimRight(" + variables['outt2'] + ", " + variables['outt3'] + ")" + variables['out'] = variables['outt1'] + " = " + "StringTrimRight(" + variables['outt2'] + ", " + variables['outt3'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 16)== StrLower("StringTrimLeft, ")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 16)== StrLower("StringTrimLeft, ")): variables['varr1'] = StrSplit(variables['A_LoopField34'] , "," , 2) variables['varr2'] = StrSplit(variables['A_LoopField34'] , "," , 3) variables['varr3'] = StrSplit(variables['A_LoopField34'] , "," , 4) variables['outt1'] = Trim(transpileVariables(variables['varr1'] , variables['functionNames'])) variables['outt2'] = Trim(transpileVariables(variables['varr2'] , variables['functionNames'])) variables['outt3'] = Trim(transpileVariables(variables['varr3'] , variables['functionNames'])) - variables['out'] = variables['outt1'] + " = " + "StringTrimLeft(" + variables['outt2'] + ", " + variables['outt3'] + ")" + variables['out'] = variables['outt1'] + " = " + "StringTrimLeft(" + variables['outt2'] + ", " + variables['outt3'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Run, % ")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Run, % ")): variables['sstr1'] = StringTrimLeft(variables['A_LoopField34'], 7) variables['out1'] = transpileVariables(variables['sstr1'] , variables['functionNames']) - variables['out2'] = "window.open(" + variables['out1'] + ");" - variables['jsCode'] += variables['out2'] + "\n" + variables['out2'] = "window.open(" + variables['out1'] + ");" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 5)== StrLower("Run, ")) and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Run, % "))): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 5)== StrLower("Run, "))and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Run, % "))): variables['sstr1'] = StringTrimLeft(variables['A_LoopField34'], 5) variables['out1'] = transpileLowVariables(variables['sstr1']) - variables['out2'] = "window.open(" + variables['out1'] + ");" - variables['jsCode'] += variables['out2'] + "\n" + variables['out2'] = "window.open(" + variables['out1'] + ");" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 6)== StrLower("Run, %")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 6)== StrLower("Run, %")): variables['sstr1'] = StringTrimLeft(variables['A_LoopField34'], 6) variables['out1'] = transpileLowVariables(variables['sstr1']) - variables['out2'] = "window.open(" + variables['out1'] + ");" - variables['jsCode'] += variables['out2'] + "\n" + variables['out2'] = "window.open(" + variables['out1'] + ");" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 13)== StrLower("MouseGetPos, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 13)== StrLower("MouseGetPos, ")): variables['str1'] = variables['A_LoopField34'] variables['out2'] = StringTrimLeft(variables['A_LoopField34'], 13) #MsgBox, % out2 @@ -2523,19 +2525,19 @@ def compiler(): variables['line1'] = transpileVariables(variables['out21'] , variables['functionNames']) variables['line2'] = transpileVariables(variables['out22'] , variables['functionNames']) #MsgBox, % line - variables['var1'] = variables['line1'] + " = MouseGetPos(" + Chr(34) + "x" + Chr(34) + ")" - variables['var2'] = variables['line2'] + " = MouseGetPos(" + Chr(34) + "y" + Chr(34) + ")" + variables['var1'] = variables['line1'] + " = MouseGetPos(" + Chr(34) + "x" + Chr(34) + ")" + variables['var2'] = variables['line2'] + " = MouseGetPos(" + Chr(34) + "y" + Chr(34) + ")" if (Trim(variables['out21'])== ""): - variables['jsCode'] += variables['var2'] + "\n" + variables['jsCode'] += variables['var2'] + "\n" else: - variables['jsCode'] += variables['var1'] + "\n" + variables['var2'] + "\n" + variables['jsCode'] += variables['var1'] + "\n" + variables['var2'] + "\n" else: variables['line'] = variables['varTraspiler'](variables['out2'] , 0) #MsgBox, % line - variables['var1'] = variables['line'] + " = MouseGetPos(" + Chr(34) + "x" + Chr(34) + ")" - variables['jsCode'] += variables['var1'] + "\n" + variables['var1'] = variables['line'] + " = MouseGetPos(" + Chr(34) + "x" + Chr(34) + ")" + variables['jsCode'] += variables['var1'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 11)== StrLower("SoundPlay, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 11)== StrLower("SoundPlay, ")): variables['str1'] = variables['A_LoopField34'] variables['out2'] = StringTrimLeft(variables['A_LoopField34'], 11) variables['out2'] = Trim(variables['out2']) @@ -2548,30 +2550,30 @@ def compiler(): variables['out22'] = Trim(variables['s']) if (InStr(variables['out21'] , "volume")): # volume - variables['var1'] = "SoundPlay(" + Chr(34) + "setVolume" + Chr(34) + ", " + variables['out22'] + ")" + variables['var1'] = "SoundPlay(" + Chr(34) + "setVolume" + Chr(34) + ", " + variables['out22'] + ")" else: # play # in out22 we have a file path that has to converted to base64 variables['base64soundNum'] += 1 variables['base64out'] = Trim(variables['out22']) variables['base64sound'] = variables['base64out'] - variables['base64soundListDummy'] = "\nlet base64sound" + str(variables['base64soundNum']) + " = " + Chr(34) + "" + variables['base64sound'] + "" + Chr(34) + "\n" + variables['base64soundListDummy'] = "\nlet base64sound" + str(variables['base64soundNum']) + " = " + Chr(34) + "" + variables['base64sound'] + "" + Chr(34) + "\n" variables['base64soundList'] += variables['base64soundListDummy'] - variables['var1'] = "SoundPlay(" + Chr(34) + "play" + Chr(34) + ", base64sound" + str(variables['base64soundNum']) + ")" + variables['var1'] = "SoundPlay(" + Chr(34) + "play" + Chr(34) + ", base64sound" + str(variables['base64soundNum']) + ")" else: variables['str1'] = Trim(variables['str1']) - variables['var1'] = "SoundPlay(" + Chr(34) + variables['str1'] + Chr(34) + ")" - variables['jsCode'] += variables['var1'] + "\n" + variables['var1'] = "SoundPlay(" + Chr(34) + variables['str1'] + Chr(34) + ")" + variables['jsCode'] += variables['var1'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 6)== StrLower("Icon, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 6)== StrLower("Icon, ")): variables['out2'] = StringTrimLeft(variables['A_LoopField34'], 6) - variables['jsCode'] += "changeFavicon(" + Chr(34) + Trim(variables['out2']) + Chr(34) + ")" + "\n" + variables['jsCode'] += "changeFavicon(" + Chr(34) + Trim(variables['out2']) + Chr(34) + ")" + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Title, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Title, ")): variables['str1'] = StringTrimLeft(variables['A_LoopField34'], 7) - variables['jsCode'] += "document.title = " + transpileLowVariables(Trim(variables['str1'])) + "\n" + variables['jsCode'] += "document.title = " + transpileLowVariables(Trim(variables['str1'])) + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 12)== "fileappend, "): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 12)== "fileappend, "): variables['sstr1'] = variables['A_LoopField34'] variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['out1'] = Trim(variables['s']) @@ -2579,11 +2581,11 @@ def compiler(): variables['out2'] = Trim(variables['s']) variables['out1'] = transpileLowVariables(variables['out1']) variables['out2'] = transpileLowVariables(variables['out2']) - variables['out3'] = "FileAppend(" + variables['out1'] + ", " + variables['out2'] + ")" + variables['out3'] = "FileAppend(" + variables['out1'] + ", " + variables['out2'] + ")" #MsgBox, % out3 - variables['jsCode'] += variables['out3'] + "\n" + variables['jsCode'] += variables['out3'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== StrLower("FileRead, ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== StrLower("FileRead, ")): variables['sstr1'] = variables['A_LoopField34'] variables['s'] = StrSplit(variables['sstr1'] , ", " , 2) variables['out1'] = variables['s'] @@ -2595,31 +2597,31 @@ def compiler(): variables['numOfTextData'] += 1 #MsgBox, % out2 variables['extractedText'] = FileRead("" + variables['out2'] + "") - variables['extractedText'] = StrReplace(variables['extractedText'] , Chr(96), Chr(92) + Chr(96)) - variables['extractedText'] = StrReplace(variables['extractedText'] , "$" , Chr(92) + Chr(36)) - variables['extractedText'] = StrReplace(variables['extractedText'] , Chr(92), Chr(92) + Chr(92)) + variables['extractedText'] = StrReplace(variables['extractedText'] , Chr(96), Chr(92) + Chr(96)) + variables['extractedText'] = StrReplace(variables['extractedText'] , "$" , Chr(92) + Chr(36)) + variables['extractedText'] = StrReplace(variables['extractedText'] , Chr(92), Chr(92) + Chr(92)) #MsgBox, % extractedText - variables['tempTextData'] = "let textData" + str(variables['numOfTextData']) + " = " + Chr(96) + "" + str(variables['extractedText']) + "" + Chr(96) + ";" + variables['tempTextData'] = "let textData" + str(variables['numOfTextData']) + " = " + Chr(96) + "" + str(variables['extractedText']) + "" + Chr(96) + ";" #MsgBox, %tempTextData% - variables['TextData'] += variables['tempTextData'] + "\n\n" - variables['out3'] = "variables." + variables['out1'] + " = " + "textData" + str(variables['numOfTextData']) - variables['jsCode'] += "\n" + variables['out3'] + "\n" + variables['TextData'] += variables['tempTextData'] + "\n\n" + variables['out3'] = "variables." + variables['out1'] + " = " + "textData" + str(variables['numOfTextData']) + variables['jsCode'] += "\n" + variables['out3'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 9)== StrLower("Sleep, % ")): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 9)== StrLower("Sleep, % ")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 9) variables['var2'] = transpileVariables(variables['var1'] , variables['functionNames']) - variables['out2'] = "await sleep(" + variables['var2'] + ")" - variables['jsCode'] += variables['out2'] + "\n" + variables['out2'] = "await sleep(" + variables['var2'] + ")" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Sleep, ")) and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 9)== StrLower("Sleep, % "))): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Sleep, "))and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 9)== StrLower("Sleep, % "))): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 7) variables['var2'] = transpileVariables(variables['var1'] , variables['functionNames']) - variables['out2'] = "await sleep(" + variables['var2'] + ")" - variables['jsCode'] += variables['out2'] + "\n" + variables['out2'] = "await sleep(" + variables['var2'] + ")" + variables['jsCode'] += variables['out2'] + "\n" variables['lineDone'] = 1 - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Msgbox,")) and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== StrLower("Msgbox, % ")))and(InStr(variables['A_LoopField34'] , " % ")) and(CountCommasWithoutBacktick(variables['A_LoopField34'])): + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Msgbox,"))and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== StrLower("Msgbox, % ")))and(InStr(variables['A_LoopField34'] , " % "))and(CountCommasWithoutBacktick(variables['A_LoopField34'])): variables['sstr1'] = variables['A_LoopField34'] - variables['sstr1'] = StrReplace(variables['sstr1'] , "" + Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") + variables['sstr1'] = StrReplace(variables['sstr1'] , "" + Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['Options'] = variables['s'] variables['Options'] = Trim(variables['Options']) @@ -2635,7 +2637,7 @@ def compiler(): variables['s'] = StrSplit(variables['sstr1'] , "," , 6) variables['toggleAwait'] = variables['s'] variables['toggleAwait'] = Trim(variables['toggleAwait']) - variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") + variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") #MsgBox, % out2 variables['out2'] = Trim(variables['out2']) variables['line'] = transpileVariables(variables['out2'] , variables['functionNames']) @@ -2649,15 +2651,15 @@ def compiler(): if (variables['timeoutMsgbox'] == ""): variables['timeoutMsgbox'] = 0 if (variables['toggleAwait'] == "1")or(variables['toggleAwait'] == ""): - variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" + variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" else: - variables['var1'] = "showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" + variables['var1'] = "showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" #MsgBox, % var1 variables['lineDone'] = 1 - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Msgbox,")) and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== StrLower("Msgbox, % ")))and( not (InStr(variables['A_LoopField34'] , " % ")))and(CountCommasWithoutBacktick(variables['A_LoopField34'])): + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Msgbox,"))and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== StrLower("Msgbox, % ")))and( not (InStr(variables['A_LoopField34'] , " % ")))and(CountCommasWithoutBacktick(variables['A_LoopField34'])): variables['sstr1'] = variables['A_LoopField34'] - variables['sstr1'] = StrReplace(variables['sstr1'] , Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") + variables['sstr1'] = StrReplace(variables['sstr1'] , Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") variables['s'] = StrSplit(variables['sstr1'] , "," , 2) variables['Options'] = variables['s'] variables['Options'] = Trim(variables['Options']) @@ -2680,20 +2682,20 @@ def compiler(): if (InStr(variables['var1'] , "%")): variables['pos'] = InStr(variables['var1'] , "%") # Replace only the first occurrence of "%" with "|" - variables['var1'] = SubStr(variables['var1'] , 1 , variables['pos'] - 1) + Chr(34) + " + variables." + SubStr(variables['var1'] , variables['pos'] + 1) + variables['var1'] = SubStr(variables['var1'] , 1 , variables['pos'] - 1) + Chr(34) + " + variables." + SubStr(variables['var1'] , variables['pos'] + 1) variables['pos'] = InStr(variables['var1'] , "%") - variables['var1'] = SubStr(variables['var1'] , 1 , variables['pos'] - 1) + " + " + Chr(34) + SubStr(variables['var1'] , variables['pos'] + 1) + variables['var1'] = SubStr(variables['var1'] , 1 , variables['pos'] - 1) + " + " + Chr(34) + SubStr(variables['var1'] , variables['pos'] + 1) else: break variables['out2'] = variables['var1'] - variables['out2'] = Chr(34) + variables['out2'] + Chr(34) + variables['out2'] = Chr(34) + variables['out2'] + Chr(34) variables['s'] = StrSplit(variables['sstr1'] , "," , 5) variables['timeoutMsgbox'] = variables['s'] variables['timeoutMsgbox'] = Trim(variables['timeoutMsgbox']) variables['s'] = StrSplit(variables['sstr1'] , "," , 6) variables['toggleAwait'] = variables['s'] variables['toggleAwait'] = Trim(variables['toggleAwait']) - variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") + variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") #MsgBox, % out2 variables['out2'] = Trim(variables['out2']) variables['line'] = variables['out2'] @@ -2707,14 +2709,14 @@ def compiler(): if (variables['timeoutMsgbox'] == ""): variables['timeoutMsgbox'] = 0 if (variables['toggleAwait'] == "1")or(variables['toggleAwait'] == ""): - variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" + variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" else: - variables['var1'] = "showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" + variables['var1'] = "showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['line']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" #MsgBox, % var1 variables['lineDone'] = 1 - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7)== StrLower("Msgbox,")) and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 10)== StrLower("Msgbox, % ")))and( not (InStr(variables['A_LoopField34'] , " % ")))and(variables['lineDone'] != 1)and( not (CountCommasWithoutBacktick(variables['A_LoopField34']))): - variables['ALoopField'] = StrReplace(variables['A_LoopField34'] , "" + Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7)== StrLower("Msgbox,"))and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 10)== StrLower("Msgbox, % ")))and( not (InStr(variables['A_LoopField34'] , " % ")))and(variables['lineDone'] != 1)and( not (CountCommasWithoutBacktick(variables['A_LoopField34']))): + variables['ALoopField'] = StrReplace(variables['A_LoopField34'] , "" + Chr(96) + "," , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|") variables['out2'] = StringTrimLeft(variables['ALoopField'], 7) variables['lineDone'] = 1 #MsgBox, % out2 @@ -2723,14 +2725,14 @@ def compiler(): variables['var1'] = transpileLowVariables(variables['out2']) #MsgBox % var1 #MsgBox % var1 - variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") + variables['out2'] = StrReplace(variables['out2'] , "|comasdhkbdsjvfesvyessfe6uw7igfweiugvseuvk|la|" , "" + Chr(92) + ",") variables['out2'] = Trim(variables['out2']) variables['Title'] = " " variables['Options'] = 0 variables['timeoutMsgbox'] = 0 - variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['var1']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 9)== StrLower("Msgbox, %")): + variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + variables['Title'] + Chr(34) + ", " + str(variables['var1']) + ", " + str(variables['Options']) + ", " + str(variables['timeoutMsgbox']) + ")" + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 9)== StrLower("Msgbox, %")): variables['lineDone'] = 1 variables['out2'] = StringTrimLeft(variables['A_LoopField34'], 9) #MsgBox, % out2 @@ -2738,54 +2740,54 @@ def compiler(): #MsgBox, % out2 variables['line'] = transpileVariables(variables['out2'] , variables['functionNames']) #MsgBox, % line - variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + " " + Chr(34) + ", " + str(variables['line']) + ", " + "0" + ", " + "0." + ")" + variables['var1'] = "await showCustomMessageBox({}," + Chr(34) + " " + Chr(34) + ", " + str(variables['line']) + ", " + "0" + ", " + "0." + ")" #MsgBox, % var1 - variables['jsCode'] += variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 3)== StrLower("if ")): + variables['jsCode'] += variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 3)== StrLower("if ")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 3) variables['var2'] = Trim(transpileVariables(variables['var1'] , variables['functionNames'])) - variables['out'] = "if (" + variables['var2'] + ")" + variables['out'] = "if (" + variables['var2'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 8)== StrLower("else if ")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 8)== StrLower("else if ")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 8) variables['var2'] = Trim(transpileVariables(variables['var1'] , variables['functionNames'])) - variables['out'] = "else if (" + variables['var2'] + ")" + variables['out'] = "else if (" + variables['var2'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 3)== StrLower("if(")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 3)== StrLower("if(")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 2) variables['var2'] = Trim(transpileVariables(variables['var1'] , variables['functionNames'])) - variables['out'] = "if (" + variables['var2'] + ")" + variables['out'] = "if (" + variables['var2'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 8)== StrLower("else if(")): + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 8)== StrLower("else if(")): variables['var1'] = StringTrimLeft(variables['A_LoopField34'], 7) variables['var2'] = Trim(transpileVariables(variables['var1'] , variables['functionNames'])) - variables['out'] = "else if (" + variables['var2'] + ")" + variables['out'] = "else if (" + variables['var2'] + ")" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" elif (SubStr(Trim(variables['A_LoopField34']), 1 , 7)== "return "): variables['sstrFormReturn'] = StringTrimLeft(variables['A_LoopField34'], 7) variables['var12312'] = transpileVariables(variables['sstrFormReturn'] , variables['functionNames']) - variables['out'] = "return " + variables['var12312'] + variables['out'] = "return " + variables['var12312'] variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" elif (StrLower(variables['A_LoopField34'])== "loop"): # infinity loops variables['haveWeEverUsedAloop'] = 1 variables['lineDone'] = 1 - variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; ; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" + variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; ; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" variables['nothing'] = "" - variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] + variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] variables['theFixTextLoopNL'] = "" variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] = 1 variables['lineDone'] = 1 - variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" - variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" + variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) variables['AindexcharLength'] += 1 - variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 6)== "loop, ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 8) != "loop, % ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 7) != "loop % ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 11) != StrLower("Loop, Parse")): + variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 6)== "loop, ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 8) != "loop, % ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 7) != "loop % ")and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 11) != StrLower("Loop, Parse")): variables['sstr123'] = variables['A_LoopField34'] #MsgBox, % sstr123 variables['out2'] = StringTrimLeft(variables['sstr123'], 6) @@ -2797,17 +2799,17 @@ def compiler(): variables['line'] = variables['lineYGI'] variables['haveWeEverUsedAloop'] = 1 #MsgBox, % line - variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= " + variables['line'] + "; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" + variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= " + variables['line'] + "; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" variables['nothing'] = "" - variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] + variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] variables['theFixTextLoopNL'] = "" variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] = 1 - variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" - variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" + variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) variables['AindexcharLength'] += 1 variables['lineDone'] = 1 - variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 8)== "loop, % "): + variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 8)== "loop, % "): variables['sstr123'] = variables['A_LoopField34'] #MsgBox, % sstr123 variables['out2'] = StringTrimLeft(variables['sstr123'], 8) @@ -2818,18 +2820,18 @@ def compiler(): variables['lineYGI'] = transpileVariables(variables['myVar'] , variables['functionNames']) variables['line'] = variables['lineYGI'] #MsgBox, % line - variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= " + variables['line'] + "; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" + variables['var1'] = "for (/* Normal Loop */ variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= " + variables['line'] + "; variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" variables['nothing'] = "" - variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] + variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] variables['theFixTextLoopNL'] = "" variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] = 1 variables['haveWeEverUsedAloop'] = 1 - variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" - variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + variables['AHKcodeLoopfixa'] += "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" + variables['AHKcodeLoopfixa1'] = "nl|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) variables['AindexcharLength'] += 1 variables['lineDone'] = 1 - variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 13)== StrLower("Loop, Parse, ")): + variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 13)== StrLower("Loop, Parse, ")): variables['var1'] = variables['A_LoopField34'] variables['lineDone'] = 1 variables['var1'] = Trim(variables['var1']) @@ -2841,50 +2843,50 @@ def compiler(): variables['itemsOut'] = "" variables['line2'] = Trim(StrSplit(variables['var1'] , "," , 2)) variables['line3'] = Trim(StrSplit(variables['var1'] , "," , 3)) - if (InStr(variables['var1'] , Chr(96) + ",")): - variables['line2'] = Chr(34) + "," + Chr(34) - variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ");" + if (InStr(variables['var1'] , Chr(96) + ",")): + variables['line2'] = Chr(34) + "," + Chr(34) + variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ");" else: if (variables['line2'] == "")and(variables['line3'] == ""): # nothing so only each char - variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ");" + variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ");" if (variables['line2'] != "")and(variables['line3'] == ""): if (InStr(variables['line2'] , Chr(96))): - variables['line2'] = Chr(34) + variables['line2'] + Chr(34) - variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ");" + variables['line2'] = Chr(34) + variables['line2'] + Chr(34) + variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ");" if (variables['line2'] != "")and(variables['line3'] != ""): if (InStr(variables['line2'] , Chr(96))): - variables['line2'] = Chr(34) + variables['line2'] + Chr(34) + variables['line2'] = Chr(34) + variables['line2'] + Chr(34) if (InStr(variables['line3'] , Chr(96))): - variables['line3'] = Chr(34) + variables['line3'] + Chr(34) - variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ", " + variables['line3'] + ");" + variables['line3'] = Chr(34) + variables['line3'] + Chr(34) + variables['itemsOut'] = "var items" + str(variables['AindexcharLength']) + " = LoopParseFunc(" + variables['line1'] + ", " + variables['line2'] + ", " + variables['line3'] + ");" variables['itemsOut'] = StrReplace(variables['itemsOut'] , Chr(96), Chr(92)) - variables['var1out'] = variables['itemsOut'] + "\n" + "for (/* Loop Parse */ let A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= items" + str(variables['AindexcharLength']) + ".length; A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" + variables['var1out'] = variables['itemsOut'] + "\n" + "for (/* Loop Parse */ let A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = 1; A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " <= items" + str(variables['AindexcharLength']) + ".length; A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "++)" variables['nothing'] = "" - variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] - variables['theFixTextLoopLP'] = "variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "\n" + "variables.A" + Chr(95) + "LoopField" + str(variables['AindexcharLength']) + " = items" + str(variables['AindexcharLength']) + "[A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " - 1];" + variables['AindexcharLengthStr'] = variables['nothing'] + str(variables['AindexcharLength']) + variables['nothing'] + variables['theFixTextLoopLP'] = "variables.A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " = A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + "\n" + "variables.A" + Chr(95) + "LoopField" + str(variables['AindexcharLength']) + " = items" + str(variables['AindexcharLength']) + "[A" + Chr(95) + "Index" + str(variables['AindexcharLength']) + " - 1];" variables['jsCodeAcurlyBraceAddSomeVrasFixLP'] = 1 variables['haveWeEverUsedAloop'] = 1 - variables['AHKcodeLoopfixa'] += "lp|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" - variables['AHKcodeLoopfixa1'] = "lp|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + variables['AHKcodeLoopfixa'] += "lp|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) + "\n" + variables['AHKcodeLoopfixa1'] = "lp|itsaersdtgtgfergsdgfsegdfsedAA|" + str(variables['AindexcharLength']) variables['AindexcharLength'] += 1 - variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1out'] + "\n" + variables['jsCode'] += variables['AHKcodeLoopfixa1'] + "\n" + variables['var1out'] + "\n" elif (SubStr(variables['A_LoopField34'] , -1)== "++"): variables['sstr123'] = Trim(variables['A_LoopField34']) variables['sstr123'] = StringTrimRight(variables['sstr123'], 2) variables['sstr123'] = Trim(transpileVariables(variables['sstr123'] , variables['functionNames'])) - variables['out'] = variables['sstr123'] + " += 1" + variables['out'] = variables['sstr123'] + " += 1" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" elif (SubStr(variables['A_LoopField34'] , -1)== "--"): variables['sstr123'] = Trim(variables['A_LoopField34']) variables['sstr123'] = StringTrimRight(variables['sstr123'], 2) variables['sstr123'] = Trim(transpileVariables(variables['sstr123'] , variables['functionNames'])) - variables['out'] = variables['sstr123'] + " -= 1" + variables['out'] = variables['sstr123'] + " -= 1" variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" - elif (( InStr(variables['A_LoopField34'] , " := ")) or(InStr(variables['A_LoopField34'] , " .= ")) or(InStr(variables['A_LoopField34'] , " += ")) or(InStr(variables['A_LoopField34'] , " -= ")) or(InStr(variables['A_LoopField34'] , " *= ")) and(variables['lineDone'] == 0)and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(59)))): - if ( not (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(59))): + variables['jsCode'] += variables['out'] + "\n" + elif ((InStr(variables['A_LoopField34'] , " := "))or(InStr(variables['A_LoopField34'] , " .= "))or(InStr(variables['A_LoopField34'] , " += "))or(InStr(variables['A_LoopField34'] , " -= "))or(InStr(variables['A_LoopField34'] , " *= "))and(variables['lineDone'] == 0)and( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(59)))): + if ( not (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(59))): variables['lineDone'] = 1 variables['sstr123'] = variables['A_LoopField34'] variables['whatVarWeUse'] = "" @@ -2908,14 +2910,14 @@ def compiler(): #OutputDebug, ||||||||||||%var2%|||||||||||| variables['varOUT1avavavavva'] = transpileVariables(variables['var1avavavavva'] , variables['functionNames']) variables['varOUT2avavavavva'] = transpileVariables(variables['var2avavavavva'] , variables['functionNames']) - variables['out'] = variables['varOUT1avavavavva'] + variables['whatVarWeUse'] + variables['varOUT2avavavavva'] - variables['jsCode'] += variables['out'] + "\n" - elif (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(59)) and(variables['lineDone'] == 0): + variables['out'] = variables['varOUT1avavavavva'] + variables['whatVarWeUse'] + variables['varOUT2avavavavva'] + variables['jsCode'] += variables['out'] + "\n" + elif (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(59))and(variables['lineDone'] == 0): variables['sstr123'] = StringTrimLeft(variables['A_LoopField34'], 1) - variables['sstr123'] = "//" + variables['sstr123'] + variables['sstr123'] = "//" + variables['sstr123'] variables['out'] = variables['sstr123'] variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" elif (SubStr(variables['A_LoopField34'] , 0)== ")")and(variables['lineDone'] == 0): variables['AIndex'] = variables['A_Index34'] + 1 if ( not (variables[f'fixFuncSyntaxBugFixNum{variables["AIndex"]}'] == "{")): @@ -2930,10 +2932,10 @@ def compiler(): variables['var2'] = StringTrimLeft(variables['A_LoopField34'], variables['numOfCharsToTrimFuncFixRun']) variables['var12'] = StrSplit(variables['var1'] , "%" , 1) variables['var13'] = StrSplit(variables['var1'] , "%" , 2) - variables['var1'] = "funcs" + "[" + Chr(34) + variables['var12'] + Chr(34) + " + variables." + variables['var13'] + "]" - variables['out'] = "await " + variables['var1'] + transpileVariables(variables['var2'] , variables['functionNames']) + variables['var1'] = "funcs" + "[" + Chr(34) + variables['var12'] + Chr(34) + " + variables." + variables['var13'] + "]" + variables['out'] = "await " + variables['var1'] + transpileVariables(variables['var2'] , variables['functionNames']) variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" else: variables['numOfCharsToTrimFuncFixRun'] = 0 items = LoopParseFunc(variables['var1']) @@ -2942,11 +2944,11 @@ def compiler(): variables['A_LoopField68'] = A_LoopField68 variables['numOfCharsToTrimFuncFixRun'] += 1 variables['var2'] = StringTrimLeft(variables['A_LoopField34'], variables['numOfCharsToTrimFuncFixRun']) - variables['out'] = "await " + variables['var1'] + transpileVariables(variables['var2'] , variables['functionNames']) + variables['out'] = "await " + variables['var1'] + transpileVariables(variables['var2'] , variables['functionNames']) variables['lineDone'] = 1 - variables['jsCode'] += variables['out'] + "\n" + variables['jsCode'] += variables['out'] + "\n" else: - if ( not (( SubStr(StrLower(variables['A_LoopField34']), 1 , 4)== variables['CheckIFandElsesss1'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 3)== variables['CheckIFandElsesss2'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 5)== variables['CheckIFandElsesss3'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 4)== variables['CheckIFandElsesss4'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 9)== variables['CheckIFandElsesss5'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 8)== variables['CheckIFandElsesss6'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 10)== variables['CheckIFandElsesss7'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 9)== variables['CheckIFandElsesss8'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 5)== "loop,"))): + if ( not ((SubStr(StrLower(variables['A_LoopField34']), 1 , 4)== variables['CheckIFandElsesss1'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 3)== variables['CheckIFandElsesss2'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 5)== variables['CheckIFandElsesss3'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 4)== variables['CheckIFandElsesss4'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 9)== variables['CheckIFandElsesss5'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 8)== variables['CheckIFandElsesss6'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 10)== variables['CheckIFandElsesss7'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 9)== variables['CheckIFandElsesss8'])or(SubStr(StrLower(variables['A_LoopField34']), 1 , 5)== "loop,"))): # not a func #OutputDebug, %A_LoopField34% variables['sstr23IfFuncIn'] = variables['A_LoopField34'] @@ -2964,15 +2966,15 @@ def compiler(): variables['A_LoopField69'] = A_LoopField69 variables['wasHereInfuncAndgetingVar1'] = 1 variables['var1'] = Trim(variables['A_LoopField69']) - variables['theVarsPArmFormTheFunc'] += "variables." + variables['var1'] + " = " + variables['var1'] + "\n" - variables['funcs'] += " " + "" + variables['sstr23IfFuncInNAME'] + "" + ": " + variables['sstr23IfFuncInNAME'] + "," + "\n" + variables['theVarsPArmFormTheFunc'] += "variables." + variables['var1'] + " = " + variables['var1'] + "\n" + variables['funcs'] += " " + "" + variables['sstr23IfFuncInNAME'] + "" + ": " + variables['sstr23IfFuncInNAME'] + "," + "\n" variables['doWeEvenDecAnyFuncHUH'] = 1 variables['skipLeftCuleyForFuncPLS'] = 0 if (variables['sstr23IfFuncInALL'] != ""): - variables['sstr234567'] = "async function " + variables['sstr23IfFuncInNAME'] + Chr(40) + variables['sstr23IfFuncInALL'] + Chr(41) + "\n{\n" + variables['theVarsPArmFormTheFunc'] + variables['sstr234567'] = "async function " + variables['sstr23IfFuncInNAME'] + Chr(40) + variables['sstr23IfFuncInALL'] + Chr(41) + "\n{\n" + variables['theVarsPArmFormTheFunc'] variables['skipLeftCuleyForFuncPLS'] = 1 else: - variables['sstr234567'] = "async function " + variables['sstr23IfFuncInNAME'] + Chr(40) + variables['sstr23IfFuncInALL'] + Chr(41) + "" + variables['sstr234567'] = "async function " + variables['sstr23IfFuncInNAME'] + Chr(40) + variables['sstr23IfFuncInALL'] + Chr(41) + "" for A_Index70 in range(1, variables['sstr23IfFuncInNAMEnum'] + 1): variables['A_Index70'] = A_Index70 if (variables[f'sstr23IfFuncInNAME{variables["A_Index70"]}'] == variables['sstr23IfFuncInNAME']): @@ -2984,41 +2986,41 @@ def compiler(): variables['A_LoopField71'] = A_LoopField71 variables['wasHereInfuncAndgetingVar1'] = 1 variables['var1'] = Trim(variables['A_LoopField71']) - variables['var12312'] += transpileVariables(variables['var1'] , variables['functionNames']) + ", " + variables['var12312'] += transpileVariables(variables['var1'] , variables['functionNames']) + ", " variables['var12312'] = StringTrimRight(variables['var12312'], 2) if (variables['wasHereInfuncAndgetingVar1'] == 0): - variables['sstr2345678'] = variables['sstr23IfFuncInNAME'] + Chr(40) + Chr(41) + variables['sstr2345678'] = variables['sstr23IfFuncInNAME'] + Chr(40) + Chr(41) else: - variables['sstr2345678'] = variables['sstr23IfFuncInNAME'] + Chr(40) + variables['var12312'] + Chr(41) + variables['sstr2345678'] = variables['sstr23IfFuncInNAME'] + Chr(40) + variables['var12312'] + Chr(41) variables['lineDone'] = 1 variables['sstr23IfFuncInNAMEnum'] += 1 variables[f'sstr23IfFuncInNAME{variables["sstr23IfFuncInNAMEnum"]}'] = variables['sstr23IfFuncInNAME'] if (variables['lineDone'] == 1): - variables['jsCode'] += variables['sstr2345678'] + "\n" + variables['jsCode'] += variables['sstr2345678'] + "\n" else: variables['lineDone'] = 1 - variables['jsCode'] += variables['sstr234567'] + "\n" + variables['jsCode'] += variables['sstr234567'] + "\n" else: # this is THE else if (variables['lineDone'] != 1): if (variables['skipLeftCuleyForFuncPLS'] != 1): - if (SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(125)): + if (SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(125)): variables['maybeWeHaveCommentInClosingCurlyBracket'] = variables['A_LoopField34'] if (InStr(variables['maybeWeHaveCommentInClosingCurlyBracket'] , Chr(59))): variables['maybeWeHaveCommentInClosingCurlyBracket'] = StrReplace(variables['maybeWeHaveCommentInClosingCurlyBracket'] , Chr(59), "//") - variables['jsCode'] += variables['maybeWeHaveCommentInClosingCurlyBracket'] + "\n" + variables['jsCode'] += variables['maybeWeHaveCommentInClosingCurlyBracket'] + "\n" else: - variables['jsCode'] += Chr(125) + "\n" + variables['jsCode'] += Chr(125) + "\n" else: - if (variables['jsCodeAcurlyBraceAddSomeVrasFixLP'] == 1)and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(123)): + if (variables['jsCodeAcurlyBraceAddSomeVrasFixLP'] == 1)and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(123)): variables['jsCodeAcurlyBraceAddSomeVrasFixLP'] = 0 - variables['jsCode'] += variables['A_LoopField34'] + "\n" + variables['theFixTextLoopLP'] + "\n" + variables['jsCode'] += variables['A_LoopField34'] + "\n" + variables['theFixTextLoopLP'] + "\n" else: - if (variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] == 1)and(SubStr(Trim(StrLower(variables['A_LoopField34'])) , 1 , 1)== Chr(123)): + if (variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] == 1)and(SubStr(Trim(StrLower(variables['A_LoopField34'])), 1 , 1)== Chr(123)): variables['jsCodeAcurlyBraceAddSomeVrasFixNL'] = 0 - variables['jsCode'] += variables['A_LoopField34'] + "\n" + variables['theFixTextLoopNL'] + "\n" + variables['jsCode'] += variables['A_LoopField34'] + "\n" + variables['theFixTextLoopNL'] + "\n" else: - variables['jsCode'] += variables['A_LoopField34'] + "\n" + variables['jsCode'] += variables['A_LoopField34'] + "\n" else: variables['skipLeftCuleyForFuncPLS'] = 0 #s @@ -3058,11 +3060,11 @@ def compiler(): variables['A_LoopField73'] = A_LoopField73 #MsgBox, dsfgsdefgesrdg1 #MsgBox, |%A_LoopField73%|`n|%fixLoopLokingFor%| - if (InStr(variables['A_LoopField73'] , variables['fixLoopLokingFor'])) and(variables['insdeAnestedLoopBAD'] != 1): + if (InStr(variables['A_LoopField73'] , variables['fixLoopLokingFor']))and(variables['insdeAnestedLoopBAD'] != 1): variables['fixLoopLokingForNum'] = 1 #MsgBox, do we came here 1 - if (InStr(variables['A_LoopField73'] , "for (/*")) and(variables['weAreDoneHereCurly'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)and(variables['fixLoopLokingForNum'] == 1): - variables['s'] = StrSplit(variables['A_LoopField73'] , "A" + Chr(95) + "Index" , 2) + if (InStr(variables['A_LoopField73'] , "for (/*"))and(variables['weAreDoneHereCurly'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)and(variables['fixLoopLokingForNum'] == 1): + variables['s'] = StrSplit(variables['A_LoopField73'] , "A" + Chr(95) + "Index" , 2) variables['out1z'] = variables['s'] variables['s'] = StrSplit(variables['out1z'] , " " , 1) variables['out1z'] = Trim(variables['s']) @@ -3075,7 +3077,7 @@ def compiler(): variables['dontSaveStr'] = 1 variables['ALoopField'] = variables['A_LoopField73'] variables['DeleayOneCuzOfLoopParse'] = 1 - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" if (variables['inTarget'] == 1)and(InStr(variables['A_LoopField73'] , Chr(123)))and(variables['insdeAnestedLoopBAD'] != 1): variables['insideBracket'] = 1 if (variables['insideBracket'] == 1)and(InStr(variables['A_LoopField73'] , Chr(123)))and(variables['insdeAnestedLoopBAD'] != 1): @@ -3083,7 +3085,7 @@ def compiler(): if (variables['insideBracket'] == 1)and(InStr(variables['A_LoopField73'] , Chr(125)))and(variables['insdeAnestedLoopBAD'] != 1): variables['netsedCurly'] -= 1 variables['readyToEnd'] = 1 - if (InStr(variables['A_LoopField73'] , "for (/*")) and(variables['insdeAnestedLoopBAD'] != 1)and(variables['foundTheTopLoop'] >= 2): + if (InStr(variables['A_LoopField73'] , "for (/*"))and(variables['insdeAnestedLoopBAD'] != 1)and(variables['foundTheTopLoop'] >= 2): variables['insdeAnestedLoopBAD'] = 1 variables['insideBracket1'] = 0 variables['netsedCurly1'] = 0 @@ -3100,12 +3102,12 @@ def compiler(): if (InStr(variables['A_LoopField73'] , Chr(125)))and(variables['readyToEnd1'] == 1)and(variables['netsedCurly1'] == 0)and(variables['insideBracket'] == 1): #MsgBox, % A_LoopField73 variables['eldLoopNestedBADlol'] = 1 - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField73'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField73'] + "\n" if (variables['inTarget'] == 1)and(variables['dontSaveStr'] != 1)and(variables['fixLoopLokingForNum'] != 1)and(variables['insdeAnestedLoopBAD'] != 1): variables['ALoopField'] = variables['A_LoopField73'] # Replace "A_Index" with or without a following digit with "A_Index" + out1z - variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "Index(?:\\d+)?" , "A" + Chr(95) + "Index" + variables['out1z']) - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" + variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "Index(?:\\d+)?" , "A" + Chr(95) + "Index" + variables['out1z']) + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" if (variables['inTarget'] == 1)and(InStr(variables['A_LoopField73'] , Chr(125)))and(variables['readyToEnd'] == 1)and(variables['netsedCurly'] == 0)and(variables['weAreDoneHereCurly'] == 0)and(variables['dontSaveStr'] != 1)and(variables['insdeAnestedLoopBAD'] != 1): #MsgBox, % A_LoopField73 variables['weAreDoneHereCurly'] = 1 @@ -3113,7 +3115,7 @@ def compiler(): variables['endBracketDOntPutThere'] = 1 variables['dontSaveStr'] = 0 if (variables['inTarget'] != 1)and(variables['endBracketDOntPutThere'] != 1)and(variables['insdeAnestedLoopBAD'] != 1): - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField73'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField73'] + "\n" variables['endBracketDOntPutThere'] = 0 if (variables['eldLoopNestedBADlol'] == 1): variables['insdeAnestedLoopBAD'] = 0 @@ -3141,11 +3143,11 @@ def compiler(): for A_Index74, A_LoopField74 in enumerate(items, start=1): variables['A_Index74'] = A_Index74 variables['A_LoopField74'] = A_LoopField74 - if (InStr(variables['A_LoopField74'] , variables['fixLoopLokingFor'])) and(variables['insdeAnestedLoopBAD'] != 1): + if (InStr(variables['A_LoopField74'] , variables['fixLoopLokingFor']))and(variables['insdeAnestedLoopBAD'] != 1): variables['fixLoopLokingForNum'] = 1 #MsgBox, do we came here 3 - if (InStr(variables['A_LoopField74'] , "for (/*")) and(variables['weAreDoneHereCurly'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)and(variables['fixLoopLokingForNum'] == 1): - variables['s'] = StrSplit(variables['A_LoopField74'] , "A" + Chr(95) + "Index" , 2) + if (InStr(variables['A_LoopField74'] , "for (/*"))and(variables['weAreDoneHereCurly'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)and(variables['fixLoopLokingForNum'] == 1): + variables['s'] = StrSplit(variables['A_LoopField74'] , "A" + Chr(95) + "Index" , 2) variables['out1z'] = variables['s'] variables['s'] = StrSplit(variables['out1z'] , " " , 1) variables['out1z'] = Trim(variables['s']) @@ -3158,7 +3160,7 @@ def compiler(): variables['dontSaveStr'] = 1 variables['ALoopField'] = variables['A_LoopField74'] variables['DeleayOneCuzOfLoopParse'] = 1 - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" if (variables['inTarget'] == 1)and(InStr(variables['A_LoopField74'] , Chr(123)))and(variables['insdeAnestedLoopBAD'] != 1): variables['insideBracket'] = 1 if (variables['insideBracket'] == 1)and(InStr(variables['A_LoopField74'] , Chr(123)))and(variables['insdeAnestedLoopBAD'] != 1): @@ -3166,7 +3168,7 @@ def compiler(): if (variables['insideBracket'] == 1)and(InStr(variables['A_LoopField74'] , Chr(125)))and(variables['insdeAnestedLoopBAD'] != 1): variables['netsedCurly'] -= 1 variables['readyToEnd'] = 1 - if (InStr(variables['A_LoopField74'] , "for (/*")) and(variables['insdeAnestedLoopBAD'] != 1)and(variables['foundTheTopLoop'] >= 2): + if (InStr(variables['A_LoopField74'] , "for (/*"))and(variables['insdeAnestedLoopBAD'] != 1)and(variables['foundTheTopLoop'] >= 2): variables['insdeAnestedLoopBAD'] = 1 variables['insideBracket1'] = 0 variables['netsedCurly1'] = 0 @@ -3183,22 +3185,22 @@ def compiler(): if (InStr(variables['A_LoopField74'] , Chr(125)))and(variables['readyToEnd1'] == 1)and(variables['netsedCurly1'] == 0)and(variables['insideBracket'] == 1): #MsgBox, % A_LoopField74 variables['eldLoopNestedBADlol'] = 1 - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField74'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField74'] + "\n" if (variables['inTarget'] == 1)and(variables['dontSaveStr'] != 1)and(variables['fixLoopLokingForNum'] != 1)and(variables['insdeAnestedLoopBAD'] != 1): variables['ALoopField'] = variables['A_LoopField74'] # Replace "A_Index" with or without a following digit with "A_Index" + out1z - variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "Index(?:\\d+)?" , "A" + Chr(95) + "Index" + variables['out1z']) + variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "Index(?:\\d+)?" , "A" + Chr(95) + "Index" + variables['out1z']) # Replace "A_Index" with or without a following digit with "A_Index" + out1z - variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "LoopField(?:\\d+)?" , "A" + Chr(95) + "LoopField" + variables['out1z']) - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" - if (( variables['inTarget'] == 1)and(InStr(variables['A_LoopField74'] , Chr(125)))and(variables['readyToEnd'] == 1)and(variables['netsedCurly'] == 0)and(variables['weAreDoneHereCurly'] == 0)and(variables['dontSaveStr'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)): + variables['ALoopField'] = RegExReplace(variables['ALoopField'] , "A" + Chr(95) + "LoopField(?:\\d+)?" , "A" + Chr(95) + "LoopField" + variables['out1z']) + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['ALoopField'] + "\n" + if ((variables['inTarget'] == 1)and(InStr(variables['A_LoopField74'] , Chr(125)))and(variables['readyToEnd'] == 1)and(variables['netsedCurly'] == 0)and(variables['weAreDoneHereCurly'] == 0)and(variables['dontSaveStr'] != 1)and(variables['insdeAnestedLoopBAD'] != 1)): #MsgBox, % A_LoopField74 variables['weAreDoneHereCurly'] = 1 variables['inTarget'] = 0 variables['endBracketDOntPutThere'] = 1 variables['dontSaveStr'] = 0 if (variables['inTarget'] != 1)and(variables['endBracketDOntPutThere'] != 1)and(variables['insdeAnestedLoopBAD'] != 1): - variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField74'] + "\n" + variables[f'out4758686d86d86d86578991a{variables["AIndexLoopCurlyFix"]}'] += variables['A_LoopField74'] + "\n" variables['endBracketDOntPutThere'] = 0 if (variables['eldLoopNestedBADlol'] == 1): variables['insdeAnestedLoopBAD'] = 0 @@ -3225,7 +3227,7 @@ def compiler(): variables['holdText'] = variables['A_LoopField75'] variables['hold'] = 1 if ( not (variables['ignore'])): - variables['out4758686d86dgt8r754444444'] += variables['A_LoopField75'] + "\n" + variables['out4758686d86dgt8r754444444'] += variables['A_LoopField75'] + "\n" variables['out4758686d86dgt8r754444444'] = StringTrimRight(variables['out4758686d86dgt8r754444444'], 1) variables['jsCode'] = variables['out4758686d86dgt8r754444444'] variables['AHKcodeOut1234565432'] = "" @@ -3235,74 +3237,74 @@ def compiler(): variables['A_LoopField76'] = A_LoopField76 variables['out'] = variables['A_LoopField76'] if ( not (InStr(variables['out'] , "|itsaersdtgtgfergsdgfsegdfsedAA|"))): - variables['AHKcodeOut1234565432'] += variables['out'] + "\n" + variables['AHKcodeOut1234565432'] += variables['out'] + "\n" variables['jsCode'] = StringTrimRight(variables['AHKcodeOut1234565432'], 1) - variables['Attw456543w45eqsubeotibebrawaaachi'] = "\n // Attaching event listener to document\n document.addEventListener(" + Chr(34) + "mouseup" + Chr(34) + ", OnMouseRelease);\n document.addEventListener(" + Chr(34) + "touchend" + Chr(34) + ", OnTouchEnd);\n\n function OnMouseRelease(event) {\n // This function will be called when the mouse button is released\n // You can perform your desired actions here\n //console.log(" + Chr(34) + "Mouse released" + Chr(34) + ");\n // Call your main function after mouse release\n OnMouseClick(event);\n }\n\n function OnTouchEnd(event) {\n // This function will be called when the touch is lifted\n // You can perform your desired actions here\n //console.log(" + Chr(34) + "Touch ended" + Chr(34) + ");\n // Call your main function after touch ends\n OnMouseClick(event);\n }\n" + variables['Attw456543w45eqsubeotibebrawaaachi'] = "\n // Attaching event listener to document\n document.addEventListener(" + Chr(34) + "mouseup" + Chr(34) + ", OnMouseRelease);\n document.addEventListener(" + Chr(34) + "touchend" + Chr(34) + ", OnTouchEnd);\n\n function OnMouseRelease(event) {\n // This function will be called when the mouse button is released\n // You can perform your desired actions here\n //console.log(" + Chr(34) + "Mouse released" + Chr(34) + ");\n // Call your main function after mouse release\n OnMouseClick(event);\n }\n\n function OnTouchEnd(event) {\n // This function will be called when the touch is lifted\n // You can perform your desired actions here\n //console.log(" + Chr(34) + "Touch ended" + Chr(34) + ");\n // Call your main function after touch ends\n OnMouseClick(event);\n }\n" variables['outJScodeLastTime'] = "" items = LoopParseFunc(variables['jsCode'], "\n", "\r") for A_Index77, A_LoopField77 in enumerate(items, start=1): variables['A_Index77'] = A_Index77 variables['A_LoopField77'] = A_LoopField77 variables['sstr1'] = variables['A_LoopField77'] - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_ScreenWidth" , "BuildInVars(" + Chr(34) + "A_ScreenWidth" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_ScreenHeight" , "BuildInVars(" + Chr(34) + "A_ScreenHeight" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_ScreenWidth" , "BuildInVars(" + Chr(34) + "A_ScreenWidth" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_ScreenHeight" , "BuildInVars(" + Chr(34) + "A_ScreenHeight" + Chr(34) + ")") variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_GuiControl" , "A_GuiControl") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_TimeIdle" , "BuildInVars(" + Chr(34) + "A_TimeIdle" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_TickCount" , "BuildInVars(" + Chr(34) + "A_TickCount" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_LastKey" , "BuildInVars(" + Chr(34) + "A_LastKey" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Now" , "BuildInVars(" + Chr(34) + "A_Now" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_YYYY" , "BuildInVars(" + Chr(34) + "A_YYYY" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MMMM" , "BuildInVars(" + Chr(34) + "A_MMMM" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MMM" , "BuildInVars(" + Chr(34) + "A_MMM" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MM" , "BuildInVars(" + Chr(34) + "A_MM" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DDDD" , "BuildInVars(" + Chr(34) + "A_DDDD" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DDD" , "BuildInVars(" + Chr(34) + "A_DDD" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DD" , "BuildInVars(" + Chr(34) + "A_DD" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Hour" , "BuildInVars(" + Chr(34) + "A_Hour" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Min" , "BuildInVars(" + Chr(34) + "A_Min" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Sec" , "BuildInVars(" + Chr(34) + "A_Sec" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Space" , "BuildInVars(" + Chr(34) + "A_Space" + Chr(34) + ")") - variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Tab" , "BuildInVars(" + Chr(34) + "A_Tab" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_TimeIdle" , "BuildInVars(" + Chr(34) + "A_TimeIdle" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_TickCount" , "BuildInVars(" + Chr(34) + "A_TickCount" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_LastKey" , "BuildInVars(" + Chr(34) + "A_LastKey" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Now" , "BuildInVars(" + Chr(34) + "A_Now" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_YYYY" , "BuildInVars(" + Chr(34) + "A_YYYY" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MMMM" , "BuildInVars(" + Chr(34) + "A_MMMM" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MMM" , "BuildInVars(" + Chr(34) + "A_MMM" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_MM" , "BuildInVars(" + Chr(34) + "A_MM" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DDDD" , "BuildInVars(" + Chr(34) + "A_DDDD" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DDD" , "BuildInVars(" + Chr(34) + "A_DDD" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_DD" , "BuildInVars(" + Chr(34) + "A_DD" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Hour" , "BuildInVars(" + Chr(34) + "A_Hour" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Min" , "BuildInVars(" + Chr(34) + "A_Min" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Sec" , "BuildInVars(" + Chr(34) + "A_Sec" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Space" , "BuildInVars(" + Chr(34) + "A_Space" + Chr(34) + ")") + variables['sstr1'] = StrReplace(variables['sstr1'] , "variables.A_Tab" , "BuildInVars(" + Chr(34) + "A_Tab" + Chr(34) + ")") variables['sstr1'] = StrReplace(variables['sstr1'] , "runHTML(variables.Gui" , "runHTML(Gui") variables['sstr1'] = StrReplace(variables['sstr1'] , "runHTML( variables.Gui" , "runHTML(Gui") - variables['sstr1'] = StrReplace(variables['sstr1'] , "Att" + Chr(119) + "456543w45eqsubeotibebrawaaachingeventlistenertodocumentaddEventListeneThisfunnctionaftertouchends768ds798y9z7s7xcfy8s7d9fcx" , variables['Attw456543w45eqsubeotibebrawaaachi']) + variables['sstr1'] = StrReplace(variables['sstr1'] , "Att" + Chr(119) + "456543w45eqsubeotibebrawaaachingeventlistenertodocumentaddEventListeneThisfunnctionaftertouchends768ds798y9z7s7xcfy8s7d9fcx" , variables['Attw456543w45eqsubeotibebrawaaachi']) variables['sstr1'] = StrReplace(variables['sstr1'] , "async function OnMouseClick(A_GuiControl)" , "async function OnMouseClick()") variables['sstr1'] = StrReplace(variables['sstr1'] , "< ==" , "<=") variables['sstr1'] = StrReplace(variables['sstr1'] , "> ==" , ">=") variables['sstr1'] = StrReplace(variables['sstr1'] , Chr(96), Chr(92)) - if (SubStr(Trim(StrLower(variables['A_LoopField77'])) , 1 , 10)== StrLower("IfMsgBox, ")): - variables['sstr1'] = ".then(async (result) => {\n" + variables['sstr1'] + if (SubStr(Trim(StrLower(variables['A_LoopField77'])), 1 , 10)== StrLower("IfMsgBox, ")): + variables['sstr1'] = ".then(async (result) => {\n" + variables['sstr1'] variables['sstr1'] = StrReplace(variables['sstr1'] , " Yes" , " OK") variables['sstr1'] = StrReplace(variables['sstr1'] , " Retry" , " OK") variables['sstr1'] = StrReplace(variables['sstr1'] , " Retry" , " OK") variables['sstr1'] = StrReplace(variables['sstr1'] , "Else" , "else") - variables['sstr1'] = StrReplace(variables['sstr1'] , "IfMsgBox, " , "if (result === " + Chr(34)) - variables['sstr1'] = variables['sstr1'] + Chr(34) + ")\n" - if (SubStr(Trim(StrLower(variables['A_LoopField77'])) , 1 , 20)== StrLower("} // end of ifmsgbox")): - variables['sstr1'] = variables['sstr1'] + "\n});\n" + variables['sstr1'] = StrReplace(variables['sstr1'] , "IfMsgBox, " , "if (result === " + Chr(34)) + variables['sstr1'] = variables['sstr1'] + Chr(34) + ")\n" + if (SubStr(Trim(StrLower(variables['A_LoopField77'])), 1 , 20)== StrLower("} // end of ifmsgbox")): + variables['sstr1'] = variables['sstr1'] + "\n});\n" if (StrLower(variables['sstr1'])== "exitapp"): variables['sstr1'] = "window.close()" if (StrLower(variables['sstr1'])== "reload"): variables['sstr1'] = "location.reload()" - variables['outJScodeLastTime'] += variables['sstr1'] + "\n" + variables['outJScodeLastTime'] += variables['sstr1'] + "\n" variables['jsCode'] = StringTrimRight(variables['outJScodeLastTime'], 1) for A_Index78 in range(1, variables['theIdNumOfThe34'] + 1): variables['A_Index78'] = A_Index78 - variables['jsCode'] = StrReplace(variables['jsCode'] , "ihuiuuhuuhtheidFor--asas-theuhturtyphoutr-" + Chr(65) + Chr(65) + str(variables['A_Index78']) + Chr(65) + Chr(65), variables[f'theIdNumOfThe34theVar{variables["A_Index78"]}']) + variables['jsCode'] = StrReplace(variables['jsCode'] , "ihuiuuhuuhtheidFor--asas-theuhturtyphoutr-" + Chr(65) + Chr(65) + str(variables['A_Index78']) + Chr(65) + Chr(65), variables[f'theIdNumOfThe34theVar{variables["A_Index78"]}']) variables['outJScodeLastTime2'] = "" items = LoopParseFunc(variables['jsCode'], "\n", "\r") for A_Index79, A_LoopField79 in enumerate(items, start=1): variables['A_Index79'] = A_Index79 variables['A_LoopField79'] = A_LoopField79 variables['sstr1'] = variables['A_LoopField79'] - variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Up" , "GetKeyState (" + Chr(34) + "ArrowUp") - variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Down" , "GetKeyState (" + Chr(34) + "ArrowDown") - variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Left" , "GetKeyState (" + Chr(34) + "ArrowLeft") - variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Right" , "GetKeyState (" + Chr(34) + "ArrowRight") - variables['sstr1'] = StrReplace(variables['sstr1'] , Chr(34) + Chr(34) + Chr(34), Chr(34) + Chr(34)) - variables['outJScodeLastTime2'] += variables['sstr1'] + "\n" + variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Up" , "GetKeyState (" + Chr(34) + "ArrowUp") + variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Down" , "GetKeyState (" + Chr(34) + "ArrowDown") + variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Left" , "GetKeyState (" + Chr(34) + "ArrowLeft") + variables['sstr1'] = StrReplace(variables['sstr1'] , "GetKeyState (" + Chr(34) + "Right" , "GetKeyState (" + Chr(34) + "ArrowRight") + variables['sstr1'] = StrReplace(variables['sstr1'] , Chr(34) + Chr(34) + Chr(34), Chr(34) + Chr(34)) + variables['outJScodeLastTime2'] += variables['sstr1'] + "\n" variables['jsCode'] = StringTrimRight(variables['outJScodeLastTime2'], 1) - variables['jsCode'] = "\n" + "// Declare and assign a variable\nlet variables = {};\n" + variables['jsCode'] + "\n" + variables['jsCode'] = "\n" + "// Declare and assign a variable\nlet variables = {\nnull: null,\n};\n" + variables['jsCode'] + "\n" variables['funcs'] += "}" variables['funcsOutFixBug'] = "" items = LoopParseFunc(variables['funcs'], "\n", "\r") @@ -3310,16 +3312,16 @@ def compiler(): variables['A_Index80'] = A_Index80 variables['A_LoopField80'] = A_LoopField80 if ( not (InStr(variables['A_LoopField80'] , "else if"))): - variables['funcsOutFixBug'] += variables['A_LoopField80'] + "\n" + variables['funcsOutFixBug'] += variables['A_LoopField80'] + "\n" variables['funcs'] = StringTrimRight(variables['funcsOutFixBug'], 1) if (variables['doWeEvenDecAnyFuncHUH'] == 0): - variables['jsCode'] = "\n" + variables['onKeyPress'] + "\n\n" + variables['jsCodeGui'] + "\n\n" + variables['HotKeyCalledHotKyes'] + "\n\n" + variables['jsCode'] + variables['jsCode'] = "\n" + variables['onKeyPress'] + "\n\n" + variables['jsCodeGui'] + "\n\n" + variables['HotKeyCalledHotKyes'] + "\n\n" + variables['jsCode'] else: - variables['jsCode'] = "\n" + variables['funcs'] + "\n\n" + variables['onKeyPress'] + "\n\n" + variables['jsCodeGui'] + "\n\n" + variables['HotKeyCalledHotKyes'] + "\n\n" + variables['jsCode'] + variables['jsCode'] = "\n" + variables['funcs'] + "\n\n" + variables['onKeyPress'] + "\n\n" + variables['jsCodeGui'] + "\n\n" + variables['HotKeyCalledHotKyes'] + "\n\n" + variables['jsCode'] variables['addFuncIfWeUseIt_BuildInVars'] = "" - variables['addFuncIfWeUseIt_showCustomMessageBox'] = "\n function showCustomMessageBox(options, title, text, value, timeout) {\n return new Promise((resolve) => {\n // Define default options for the message box\n let defaultOptions = {\n title: title || " + Chr(34) + "" + Chr(34) + ", // Default title is empty\n text: text || " + Chr(34) + "Press OK to continue." + Chr(34) + ", // Default text if not provided\n showCancelButton: false, // Default is to not show Cancel button\n showDenyButton: false, // Default is to not show Deny button\n confirmButtonText: " + Chr(34) + "OK" + Chr(34) + ", // Default text for OK button\n focusConfirm: true, // Default focus on OK button\n };\n\n let numOriginal = value;\n\n let num = numOriginal;\n\n let done1 = 0;\n\n let done2 = 0;\n\n let done3 = 0;\n\n let AIndex = 0;\n\n for (AIndex = 1; AIndex <= 1; AIndex++) {\n // this is about if you add always on top in a msgbox it will be removed in js cuz its kinda useless...\n // becouse if you like adding always on top in ahk in js we dont realy do it so yeah\n if (num >= 262144) {\n num = num - 262144;\n numOriginal = numOriginal - 262144;\n }\n\n if (num >= 256 && num < 500) {\n num = num - 256;\n\n done3 = 256;\n }\n\n if (num >= 512) {\n num = num - 512;\n\n done3 = 512;\n }\n\n if (num == 0) {\n done1 = 0;\n\n break;\n }\n\n if (num <= 6) {\n done1 = num;\n\n break;\n }\n\n if (num >= 64 && num < 64 * 2) {\n done2 = 64;\n\n if (num == 64) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 64;\n\n break;\n }\n }\n\n if (num >= 48 && num < 63) {\n done2 = 48;\n\n if (num == 48) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 48;\n\n break;\n }\n }\n\n if (num >= 32 && num < 47) {\n done2 = 32;\n\n if (num == 32) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 32;\n\n break;\n }\n }\n\n if (num >= 16 && num < 30) {\n done2 = 16;\n\n if (num == 16) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 16;\n\n break;\n }\n }\n }\n\n let doneAdded = done1 + done2 + done3;\n\n if (doneAdded !== numOriginal) {\n // displayMessage(" + Chr(34) + "The calc was wrong!" + Chr(34) + ");\n } else {\n // displayMessage(" + Chr(34) + "num was: " + Chr(34) + " + numOriginal + " + Chr(34) + "" + Chr(92) + "ndone1: " + Chr(34) + " + done1 + " + Chr(34) + "" + Chr(92) + "ndone2: " + Chr(34) + " + done2 + " + Chr(34) + "" + Chr(92) + "ndone3: " + Chr(34) + " + done3);\n }\n\n // Parse the value to determine the options for the message box\n if (done1 === 1) defaultOptions.showCancelButton = true; // OK/Cancel in ahk but here it will show Ok/Cancel wiat its same haha\n\n // not gonna work if you can make it work i will appreciate\n // if (done1 === 2) {\n // defaultOptions.showCancelButton = true; // Abort/Retry/Ignore\n // defaultOptions.showDenyButton = true;\n // }\n if (done1 === 3) {\n defaultOptions.showCancelButton = true; // Yes/No/Cancel in ahk but here it will show Ok/No/Cancel\n defaultOptions.showDenyButton = true;\n }\n if (done1 === 4) {\n // defaultOptions.showCancelButton = true;\n defaultOptions.showDenyButton = true; // Yes/No in ahk but here it will show Ok/No\n }\n if (done1 === 5) {\n defaultOptions.showCancelButton = true; // Retry/Cancel in ahk but here it will show Ok/Cancel tip you can write in the Msgbox press ok to retry\n }\n // not gonna work if you can make it work i will appreciate\n // if (done1 === 6) {\n // defaultOptions.showCancelButton = true; // Cancel/Try Again/Continue\n // defaultOptions.showDenyButton = true;\n // }\n\n if (done2 === 16) defaultOptions.icon = " + Chr(34) + "error" + Chr(34) + "; // Icon Hand (stop/error)\n if (done2 === 32) defaultOptions.icon = " + Chr(34) + "question" + Chr(34) + "; // Icon Question\n if (done2 === 48) defaultOptions.icon = " + Chr(34) + "warning" + Chr(34) + "; // Icon Exclamation\n if (done2 === 64) defaultOptions.icon = " + Chr(34) + "info" + Chr(34) + "; // Icon Asterisk (info)\n\n if (done3 === 256) defaultOptions.focusDeny = true; // Makes the 3rd button the default\n if (done3 === 512) defaultOptions.focusCancel = true; // Makes the 2nd button the default\n\n // Set timeout if provided\n if (timeout) {\n defaultOptions.timer = timeout * 1000; // Convert timeout to milliseconds\n }\n\n // Merge default options with provided options\n Object.assign(defaultOptions, options);\n\n // Display the message box with the constructed options\n Swal.fire(defaultOptions).then((result) => {\n if (result.isConfirmed) {\n resolve(" + Chr(34) + "OK" + Chr(34) + ");\n } else if (result.isDenied) {\n resolve(" + Chr(34) + "No" + Chr(34) + ");\n } else {\n resolve(" + Chr(34) + "Cancel" + Chr(34) + ");\n }\n });\n });\n }\n" - variables['addFuncIfWeUseIt_BuildInVars'] = "\n var lastKeyPressed = " + Chr(34) + "" + Chr(34) + ";\n\n function trackLastKeyPressed() {\n document.addEventListener(" + Chr(34) + "keydown" + Chr(34) + ", function (event) {\n lastKeyPressed = event.key;\n // console.log(lastKeyPressed);\n });\n }\n\n function getLastKeyPressed() {\n return lastKeyPressed;\n }\n\n // Call the trackLastKeyPressed function to start tracking key presses\n trackLastKeyPressed();\n" + "\n let lastInputTime = Date.now(); // Initialize with current timestamp\n let startTimestamp = Date.now(); // Initialize with current timestamp\n\n // Event listener to track user activity\n function resetIdleTimer() {\n lastInputTime = Date.now(); // Update last input time\n }\n\n document.addEventListener(" + Chr(34) + "mousemove" + Chr(34) + ", resetIdleTimer);\n document.addEventListener(" + Chr(34) + "keypress" + Chr(34) + ", resetIdleTimer);\n\n // Function to calculate time since last input event\n function A_TimeIdle() {\n return Date.now() - lastInputTime; // Calculate time difference\n }\n\n // Function to calculate tick count in milliseconds\n function A_TickCount() {\n return Date.now() - startTimestamp;\n }\n\n function BuildInVars(varName) {\n switch (varName) {\n case " + Chr(34) + "A_ScreenWidth" + Chr(34) + ":\n // Return screen width\n return window.innerWidth;\n case " + Chr(34) + "A_LastKey" + Chr(34) + ":\n // Return screen width\n return getLastKeyPressed();\n case " + Chr(34) + "A_ScreenHeight" + Chr(34) + ":\n // Return screen height\n return window.innerHeight;\n case " + Chr(34) + "A_TimeIdle" + Chr(34) + ":\n // Return time idle\n return A_TimeIdle();\n case " + Chr(34) + "A_TickCount" + Chr(34) + ":\n // Return tick count in milliseconds\n return A_TickCount();\n case " + Chr(34) + "A_Now" + Chr(34) + ":\n // Return current local timestamp\n return new Date().toLocaleString();\n case " + Chr(34) + "A_YYYY" + Chr(34) + ":\n // Return current year\n return new Date().getFullYear();\n case " + Chr(34) + "A_MM" + Chr(34) + ":\n // Return current month\n return (new Date().getMonth() + 1).toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_DD" + Chr(34) + ":\n // Return current day\n return new Date().getDate().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_MMMM" + Chr(34) + ":\n // Return full month name\n return new Date().toLocaleDateString(undefined, { month: " + Chr(34) + "long" + Chr(34) + " });\n case " + Chr(34) + "A_MMM" + Chr(34) + ":\n // Return short month name\n return new Date().toLocaleDateString(undefined, { month: " + Chr(34) + "short" + Chr(34) + " });\n case " + Chr(34) + "A_DDDD" + Chr(34) + ":\n // Return full day name\n return new Date().toLocaleDateString(undefined, { weekday: " + Chr(34) + "long" + Chr(34) + " });\n case " + Chr(34) + "A_DDD" + Chr(34) + ":\n // Return short day name\n return new Date().toLocaleDateString(undefined, { weekday: " + Chr(34) + "short" + Chr(34) + " });\n case " + Chr(34) + "A_Hour" + Chr(34) + ":\n // Return current hour\n return new Date().getHours().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Min" + Chr(34) + ":\n // Return current minute\n return new Date().getMinutes().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Sec" + Chr(34) + ":\n // Return current second\n return new Date().getSeconds().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Space" + Chr(34) + ":\n // Return space character\n return " + Chr(34) + " " + Chr(34) + ";\n case " + Chr(34) + "A_Tab" + Chr(34) + ":\n // Return tab character\n return " + Chr(34) + "" + Chr(92) + "t" + Chr(34) + ";\n\n default:\n // Handle unknown variable names\n return null;\n }\n }\n" - variables['addFuncIfWeUseIt_MakeHotKey'] = "\n function MakeHotKey(hotkey, callback) {\n document.addEventListener(" + Chr(34) + "keydown" + Chr(34) + ", function (event) {\n const keys = hotkey.split(" + Chr(34) + "+" + Chr(34) + ").map((key) => key.trim().toLowerCase());\n const modifiers = {\n ctrl: event.ctrlKey,\n shift: event.shiftKey,\n alt: event.altKey,\n };\n\n let hotkeyPressed = true;\n keys.forEach((key) => {\n if (key === " + Chr(34) + "ctrl" + Chr(34) + " || key === " + Chr(34) + "shift" + Chr(34) + " || key === " + Chr(34) + "alt" + Chr(34) + ") {\n if (!modifiers[key]) {\n hotkeyPressed = false;\n }\n } else if (key === " + Chr(34) + "backspace" + Chr(34) + ") {\n if (event.key !== " + Chr(34) + "Backspace" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (key.startsWith(" + Chr(34) + "arrow" + Chr(34) + ")) {\n const arrowDirection = key.replace(" + Chr(34) + "arrow" + Chr(34) + ", " + Chr(34) + "" + Chr(34) + ");\n if (arrowDirection === " + Chr(34) + "up" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowUp" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "down" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowDown" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "left" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowLeft" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "right" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowRight" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (key === " + Chr(34) + "enter" + Chr(34) + ") {\n if (event.key !== " + Chr(34) + "Enter" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (!event.key.match(/^[0-9a-zA-Z]$/) && event.key !== key) {\n hotkeyPressed = false;\n } else if (event.key.toLowerCase() !== key && event.key.match(/^[a-zA-Z]$/)) {\n hotkeyPressed = false;\n }\n });\n\n if (hotkeyPressed) {\n if (modifiers[" + Chr(34) + "shift" + Chr(34) + "]) {\n callback(hotkey.toUpperCase());\n } else {\n callback(hotkey.toLowerCase());\n }\n }\n });\n }\n" + variables['addFuncIfWeUseIt_showCustomMessageBox'] = "\n function showCustomMessageBox(options, title, text, value, timeout) {\n return new Promise((resolve) => {\n // Define default options for the message box\n let defaultOptions = {\n title: title || " + Chr(34) + "" + Chr(34) + ", // Default title is empty\n text: text || " + Chr(34) + "Press OK to continue." + Chr(34) + ", // Default text if not provided\n showCancelButton: false, // Default is to not show Cancel button\n showDenyButton: false, // Default is to not show Deny button\n confirmButtonText: " + Chr(34) + "OK" + Chr(34) + ", // Default text for OK button\n focusConfirm: true, // Default focus on OK button\n };\n\n let numOriginal = value;\n\n let num = numOriginal;\n\n let done1 = 0;\n\n let done2 = 0;\n\n let done3 = 0;\n\n let AIndex = 0;\n\n for (AIndex = 1; AIndex <= 1; AIndex++) {\n // this is about if you add always on top in a msgbox it will be removed in js cuz its kinda useless...\n // becouse if you like adding always on top in ahk in js we dont realy do it so yeah\n if (num >= 262144) {\n num = num - 262144;\n numOriginal = numOriginal - 262144;\n }\n\n if (num >= 256 && num < 500) {\n num = num - 256;\n\n done3 = 256;\n }\n\n if (num >= 512) {\n num = num - 512;\n\n done3 = 512;\n }\n\n if (num == 0) {\n done1 = 0;\n\n break;\n }\n\n if (num <= 6) {\n done1 = num;\n\n break;\n }\n\n if (num >= 64 && num < 64 * 2) {\n done2 = 64;\n\n if (num == 64) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 64;\n\n break;\n }\n }\n\n if (num >= 48 && num < 63) {\n done2 = 48;\n\n if (num == 48) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 48;\n\n break;\n }\n }\n\n if (num >= 32 && num < 47) {\n done2 = 32;\n\n if (num == 32) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 32;\n\n break;\n }\n }\n\n if (num >= 16 && num < 30) {\n done2 = 16;\n\n if (num == 16) {\n done1 = 0;\n\n break;\n } else {\n done1 = num - 16;\n\n break;\n }\n }\n }\n\n let doneAdded = done1 + done2 + done3;\n\n if (doneAdded !== numOriginal) {\n // displayMessage(" + Chr(34) + "The calc was wrong!" + Chr(34) + ");\n } else {\n // displayMessage(" + Chr(34) + "num was: " + Chr(34) + " + numOriginal + " + Chr(34) + "" + Chr(92) + "ndone1: " + Chr(34) + " + done1 + " + Chr(34) + "" + Chr(92) + "ndone2: " + Chr(34) + " + done2 + " + Chr(34) + "" + Chr(92) + "ndone3: " + Chr(34) + " + done3);\n }\n\n // Parse the value to determine the options for the message box\n if (done1 === 1) defaultOptions.showCancelButton = true; // OK/Cancel in ahk but here it will show Ok/Cancel wiat its same haha\n\n // not gonna work if you can make it work i will appreciate\n // if (done1 === 2) {\n // defaultOptions.showCancelButton = true; // Abort/Retry/Ignore\n // defaultOptions.showDenyButton = true;\n // }\n if (done1 === 3) {\n defaultOptions.showCancelButton = true; // Yes/No/Cancel in ahk but here it will show Ok/No/Cancel\n defaultOptions.showDenyButton = true;\n }\n if (done1 === 4) {\n // defaultOptions.showCancelButton = true;\n defaultOptions.showDenyButton = true; // Yes/No in ahk but here it will show Ok/No\n }\n if (done1 === 5) {\n defaultOptions.showCancelButton = true; // Retry/Cancel in ahk but here it will show Ok/Cancel tip you can write in the Msgbox press ok to retry\n }\n // not gonna work if you can make it work i will appreciate\n // if (done1 === 6) {\n // defaultOptions.showCancelButton = true; // Cancel/Try Again/Continue\n // defaultOptions.showDenyButton = true;\n // }\n\n if (done2 === 16) defaultOptions.icon = " + Chr(34) + "error" + Chr(34) + "; // Icon Hand (stop/error)\n if (done2 === 32) defaultOptions.icon = " + Chr(34) + "question" + Chr(34) + "; // Icon Question\n if (done2 === 48) defaultOptions.icon = " + Chr(34) + "warning" + Chr(34) + "; // Icon Exclamation\n if (done2 === 64) defaultOptions.icon = " + Chr(34) + "info" + Chr(34) + "; // Icon Asterisk (info)\n\n if (done3 === 256) defaultOptions.focusDeny = true; // Makes the 3rd button the default\n if (done3 === 512) defaultOptions.focusCancel = true; // Makes the 2nd button the default\n\n // Set timeout if provided\n if (timeout) {\n defaultOptions.timer = timeout * 1000; // Convert timeout to milliseconds\n }\n\n // Merge default options with provided options\n Object.assign(defaultOptions, options);\n\n // Display the message box with the constructed options\n Swal.fire(defaultOptions).then((result) => {\n if (result.isConfirmed) {\n resolve(" + Chr(34) + "OK" + Chr(34) + ");\n } else if (result.isDenied) {\n resolve(" + Chr(34) + "No" + Chr(34) + ");\n } else {\n resolve(" + Chr(34) + "Cancel" + Chr(34) + ");\n }\n });\n });\n }\n" + variables['addFuncIfWeUseIt_BuildInVars'] = "\n var lastKeyPressed = " + Chr(34) + "" + Chr(34) + ";\n\n function trackLastKeyPressed() {\n document.addEventListener(" + Chr(34) + "keydown" + Chr(34) + ", function (event) {\n lastKeyPressed = event.key;\n // console.log(lastKeyPressed);\n });\n }\n\n function getLastKeyPressed() {\n return lastKeyPressed;\n }\n\n // Call the trackLastKeyPressed function to start tracking key presses\n trackLastKeyPressed();\n" + "\n let lastInputTime = Date.now(); // Initialize with current timestamp\n let startTimestamp = Date.now(); // Initialize with current timestamp\n\n // Event listener to track user activity\n function resetIdleTimer() {\n lastInputTime = Date.now(); // Update last input time\n }\n\n document.addEventListener(" + Chr(34) + "mousemove" + Chr(34) + ", resetIdleTimer);\n document.addEventListener(" + Chr(34) + "keypress" + Chr(34) + ", resetIdleTimer);\n\n // Function to calculate time since last input event\n function A_TimeIdle() {\n return Date.now() - lastInputTime; // Calculate time difference\n }\n\n // Function to calculate tick count in milliseconds\n function A_TickCount() {\n return Date.now() - startTimestamp;\n }\n\n function BuildInVars(varName) {\n switch (varName) {\n case " + Chr(34) + "A_ScreenWidth" + Chr(34) + ":\n // Return screen width\n return window.innerWidth;\n case " + Chr(34) + "A_LastKey" + Chr(34) + ":\n // Return screen width\n return getLastKeyPressed();\n case " + Chr(34) + "A_ScreenHeight" + Chr(34) + ":\n // Return screen height\n return window.innerHeight;\n case " + Chr(34) + "A_TimeIdle" + Chr(34) + ":\n // Return time idle\n return A_TimeIdle();\n case " + Chr(34) + "A_TickCount" + Chr(34) + ":\n // Return tick count in milliseconds\n return A_TickCount();\n case " + Chr(34) + "A_Now" + Chr(34) + ":\n // Return current local timestamp\n return new Date().toLocaleString();\n case " + Chr(34) + "A_YYYY" + Chr(34) + ":\n // Return current year\n return new Date().getFullYear();\n case " + Chr(34) + "A_MM" + Chr(34) + ":\n // Return current month\n return (new Date().getMonth() + 1).toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_DD" + Chr(34) + ":\n // Return current day\n return new Date().getDate().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_MMMM" + Chr(34) + ":\n // Return full month name\n return new Date().toLocaleDateString(undefined, { month: " + Chr(34) + "long" + Chr(34) + " });\n case " + Chr(34) + "A_MMM" + Chr(34) + ":\n // Return short month name\n return new Date().toLocaleDateString(undefined, { month: " + Chr(34) + "short" + Chr(34) + " });\n case " + Chr(34) + "A_DDDD" + Chr(34) + ":\n // Return full day name\n return new Date().toLocaleDateString(undefined, { weekday: " + Chr(34) + "long" + Chr(34) + " });\n case " + Chr(34) + "A_DDD" + Chr(34) + ":\n // Return short day name\n return new Date().toLocaleDateString(undefined, { weekday: " + Chr(34) + "short" + Chr(34) + " });\n case " + Chr(34) + "A_Hour" + Chr(34) + ":\n // Return current hour\n return new Date().getHours().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Min" + Chr(34) + ":\n // Return current minute\n return new Date().getMinutes().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Sec" + Chr(34) + ":\n // Return current second\n return new Date().getSeconds().toString().padStart(2, " + Chr(34) + "0" + Chr(34) + ");\n case " + Chr(34) + "A_Space" + Chr(34) + ":\n // Return space character\n return " + Chr(34) + " " + Chr(34) + ";\n case " + Chr(34) + "A_Tab" + Chr(34) + ":\n // Return tab character\n return " + Chr(34) + "" + Chr(92) + "t" + Chr(34) + ";\n\n default:\n // Handle unknown variable names\n return null;\n }\n }\n" + variables['addFuncIfWeUseIt_MakeHotKey'] = "\n function MakeHotKey(hotkey, callback) {\n document.addEventListener(" + Chr(34) + "keydown" + Chr(34) + ", function (event) {\n const keys = hotkey.split(" + Chr(34) + "+" + Chr(34) + ").map((key) => key.trim().toLowerCase());\n const modifiers = {\n ctrl: event.ctrlKey,\n shift: event.shiftKey,\n alt: event.altKey,\n };\n\n let hotkeyPressed = true;\n keys.forEach((key) => {\n if (key === " + Chr(34) + "ctrl" + Chr(34) + " || key === " + Chr(34) + "shift" + Chr(34) + " || key === " + Chr(34) + "alt" + Chr(34) + ") {\n if (!modifiers[key]) {\n hotkeyPressed = false;\n }\n } else if (key === " + Chr(34) + "backspace" + Chr(34) + ") {\n if (event.key !== " + Chr(34) + "Backspace" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (key.startsWith(" + Chr(34) + "arrow" + Chr(34) + ")) {\n const arrowDirection = key.replace(" + Chr(34) + "arrow" + Chr(34) + ", " + Chr(34) + "" + Chr(34) + ");\n if (arrowDirection === " + Chr(34) + "up" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowUp" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "down" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowDown" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "left" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowLeft" + Chr(34) + ") {\n hotkeyPressed = false;\n } else if (arrowDirection === " + Chr(34) + "right" + Chr(34) + " && event.key !== " + Chr(34) + "ArrowRight" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (key === " + Chr(34) + "enter" + Chr(34) + ") {\n if (event.key !== " + Chr(34) + "Enter" + Chr(34) + ") {\n hotkeyPressed = false;\n }\n } else if (!event.key.match(/^[0-9a-zA-Z]$/) && event.key !== key) {\n hotkeyPressed = false;\n } else if (event.key.toLowerCase() !== key && event.key.match(/^[a-zA-Z]$/)) {\n hotkeyPressed = false;\n }\n });\n\n if (hotkeyPressed) {\n if (modifiers[" + Chr(34) + "shift" + Chr(34) + "]) {\n callback(hotkey.toUpperCase());\n } else {\n callback(hotkey.toLowerCase());\n }\n }\n });\n }\n" variables['addFuncIfWeUseIt_Abs'] = "\n // Absolute value\n function Abs(num) {\n if (num === null || isNaN(num)) return null;\n return Math.abs(num);\n }\n" variables['addFuncIfWeUseIt_ACos'] = "\n // Arc cosine\n function ACos(num) {\n if (num === null || isNaN(num)) return null;\n return Math.acos(num);\n }\n" variables['addFuncIfWeUseIt_ASin'] = "\n // Arc sine\n function ASin(num) {\n if (num === null || isNaN(num)) return null;\n return Math.asin(num);\n }\n" @@ -3334,192 +3336,192 @@ def compiler(): variables['addFuncIfWeUseIt_Sin'] = "\n // Sin\n function Sin(num) {\n if (num === null || isNaN(num)) return null;\n return Math.sin(num);\n }\n" variables['addFuncIfWeUseIt_Sqrt'] = "\n // Square root\n function Sqrt(num) {\n if (num === null || isNaN(num)) return null;\n return Math.sqrt(num);\n }\n" variables['addFuncIfWeUseIt_Tan'] = "\n // Tangent\n function Tan(num) {\n if (num === null || isNaN(num)) return null;\n return Math.tan(num);\n }\n" - variables['addFuncIfWeUseIt_Chr'] = "\n function Chr(number) {\n // Check if the number is null\n if (number === null) {\n // Return an empty string\n return " + Chr(34) + "" + Chr(34) + ";\n }\n\n // Check if the number is within the valid range\n if (number >= 0 && number <= 0x10ffff) {\n // Convert the number to a character using String.fromCharCode\n return String.fromCharCode(number);\n } else {\n // Return an empty string for invalid numbers\n return " + Chr(34) + "" + Chr(34) + ";\n }\n }\n" + variables['addFuncIfWeUseIt_Chr'] = "\n function Chr(number) {\n // Check if the number is null\n if (number === null) {\n // Return an empty string\n return " + Chr(34) + "" + Chr(34) + ";\n }\n\n // Check if the number is within the valid range\n if (number >= 0 && number <= 0x10ffff) {\n // Convert the number to a character using String.fromCharCode\n return String.fromCharCode(number);\n } else {\n // Return an empty string for invalid numbers\n return " + Chr(34) + "" + Chr(34) + ";\n }\n }\n" variables['addFuncIfWeUseIt_sleep'] = "\n // Function to simulate Sleep\n function sleep(ms) {\n return new Promise((resolve) => setTimeout(resolve, ms));\n }\n" variables['addFuncIfWeUseIt_InStr'] = "\n // InStr\n function InStr(Haystack, Needle, CaseSensitive = true, StartingPos = 1, Occurrence = 1) {\n if (Haystack === null || Needle === null) return false;\n\n // Adjust starting position if less than 1\n StartingPos = Math.max(StartingPos, 1);\n\n // Case-sensitive search by default\n if (!CaseSensitive) {\n Haystack = Haystack.toLowerCase();\n Needle = Needle.toLowerCase();\n }\n\n let pos = -1;\n let count = 0;\n for (let i = StartingPos - 1; i < Haystack.length; i++) {\n if (Haystack.substring(i, i + Needle.length) === Needle) {\n count++;\n if (count === Occurrence) {\n pos = i + 1;\n break;\n }\n }\n }\n\n return pos > 0; // Return true if the substring is found, false otherwise\n }\n" variables['addFuncIfWeUseIt_RegExMatch'] = "\n // RegExMatch\n function RegExMatch(Haystack, NeedleRegEx, OutputVar, StartingPos) {\n if (Haystack === null || NeedleRegEx === null) return null;\n\n const regex = new RegExp(NeedleRegEx);\n let match;\n\n if (typeof Haystack === 'string') {\n match = Haystack.match(regex);\n }\n\n if (match) {\n if (OutputVar) {\n OutputVar.push(match[0]);\n }\n return match.index + 1;\n } else {\n return 0;\n }\n }\n" variables['addFuncIfWeUseIt_StrLen'] = "\n // StrLen\n function StrLen(str) {\n return str === null ? null : str.length;\n }\n" variables['addFuncIfWeUseIt_getRandomNumber'] = "\n // Function to generate a random number between min (inclusive) and max (inclusive)\n function getRandomNumber(min, max) {\n return Math.floor(Math.random() * (max - min + 1) + min);\n }\n" - variables['addFuncIfWeUseIt_SubStr'] = "\n function SubStr(str, startPos, length) {\n // If str is null or undefined, return an empty string\n if (str === null || str === undefined) {\n return " + Chr(34) + "" + Chr(34) + ";\n }\n\n // If length is not provided or is blank, default to " + Chr(34) + "all characters" + Chr(34) + "\n if (length === undefined || length === " + Chr(34) + "" + Chr(34) + ") {\n length = str.length - startPos + 1;\n }\n\n // If startPos is less than 1, adjust it to start from the end of the string\n if (startPos < 1) {\n startPos = str.length + startPos;\n }\n\n // Extract the substring based on startPos and length\n return str.substr(startPos - 1, length);\n }\n" - variables['addFuncIfWeUseIt_Trim'] = "\n function Trim(inputString) {\n // Check if inputString is null or undefined\n if (inputString == null) {\n return " + Chr(34) + "" + Chr(34) + "; // Return an empty string if inputString is null or undefined\n }\n return inputString.replace(/^" + Chr(92) + "s+|" + Chr(92) + "s+$/g, " + Chr(34) + "" + Chr(34) + "); // Removes leading and trailing whitespace\n }\n" + variables['addFuncIfWeUseIt_SubStr'] = "\n function SubStr(str, startPos, length) {\n // If str is null or undefined, return an empty string\n if (str === null || str === undefined) {\n return " + Chr(34) + "" + Chr(34) + ";\n }\n\n // If length is not provided or is blank, default to " + Chr(34) + "all characters" + Chr(34) + "\n if (length === undefined || length === " + Chr(34) + "" + Chr(34) + ") {\n length = str.length - startPos + 1;\n }\n\n // If startPos is less than 1, adjust it to start from the end of the string\n if (startPos < 1) {\n startPos = str.length + startPos;\n }\n\n // Extract the substring based on startPos and length\n return str.substr(startPos - 1, length);\n }\n" + variables['addFuncIfWeUseIt_Trim'] = "\n function Trim(inputString) {\n // Check if inputString is null or undefined\n if (inputString == null) {\n return " + Chr(34) + "" + Chr(34) + "; // Return an empty string if inputString is null or undefined\n }\n return inputString.replace(/^" + Chr(92) + "s+|" + Chr(92) + "s+$/g, " + Chr(34) + "" + Chr(34) + "); // Removes leading and trailing whitespace\n }\n" variables['addFuncIfWeUseIt_ParseInt'] = "\n async function ParseInt(num) {\n if (num === null) {\n return null;\n }\n\n num = num.trim();\n num++;\n num--;\n\n return num;\n }" - variables['addFuncIfWeUseIt_StrReplace'] = "\n function StrReplace(originalString, find, replaceWith) {\n // Check if originalString is a string\n if (typeof originalString !== " + Chr(34) + "string" + Chr(34) + ") {\n return originalString; // Return originalString as is\n }\n\n // Escape special characters in the 'find' string to be used literally\n const escapedFind = find.replace(/[.*+?^${}()|[" + Chr(92) + "]" + Chr(92) + "" + Chr(92) + "]/g, " + Chr(34) + "" + Chr(92) + "" + Chr(92) + "$&" + Chr(34) + ");\n\n // Use replace method to replace all occurrences of 'find' with 'replaceWith'\n return originalString.replace(new RegExp(escapedFind, " + Chr(34) + "g" + Chr(34) + "), replaceWith);\n }\n" - variables['addFuncIfWeUseIt_Mod'] = "\n // Custom Mod function\n function Mod(dividend, divisor) {\n return dividend " + Chr(37) + " divisor;\n }\n" + variables['addFuncIfWeUseIt_StrReplace'] = "\n function StrReplace(originalString, find, replaceWith) {\n // Check if originalString is a string\n if (typeof originalString !== " + Chr(34) + "string" + Chr(34) + ") {\n return originalString; // Return originalString as is\n }\n\n // Escape special characters in the 'find' string to be used literally\n const escapedFind = find.replace(/[.*+?^${}()|[" + Chr(92) + "]" + Chr(92) + "" + Chr(92) + "]/g, " + Chr(34) + "" + Chr(92) + "" + Chr(92) + "$&" + Chr(34) + ");\n\n // Use replace method to replace all occurrences of 'find' with 'replaceWith'\n return originalString.replace(new RegExp(escapedFind, " + Chr(34) + "g" + Chr(34) + "), replaceWith);\n }\n" + variables['addFuncIfWeUseIt_Mod'] = "\n // Custom Mod function\n function Mod(dividend, divisor) {\n return dividend " + Chr(37) + " divisor;\n }\n" variables['addFuncIfWeUseIt_Asc'] = "\n function Asc(char) {\n return char.charCodeAt(0);\n }\n" - variables['addFuncIfWeUseIt_StringTrimLeft'] = "\n// Function to trim specified number of characters from the left side of a string\nfunction StringTrimLeft(input, numChars) {\n if (typeof input === 'string' && typeof numChars === 'number' && numChars >= 0) {\n return input.length > numChars ? input.substring(numChars) : '';\n } else {\n console.error(" + Chr(34) + "Invalid input provided." + Chr(34) + ");\n return input; // Return original input if trimming is not possible\n }\n}\n" - variables['addFuncIfWeUseIt_StringTrimRight'] = "\n// Function to trim specified number of characters from the right side of a string\nfunction StringTrimRight(input, numChars) {\n if (typeof input === 'string' && typeof numChars === 'number' && numChars >= 0) {\n return input.length > numChars ? input.substring(0, input.length - numChars) : '';\n } else {\n console.error(" + Chr(34) + "Invalid input provided." + Chr(34) + ");\n return input; // Return original input if trimming is not possible\n }\n}\n" + variables['addFuncIfWeUseIt_StringTrimLeft'] = "\n// Function to trim specified number of characters from the left side of a string\nfunction StringTrimLeft(input, numChars) {\n if (typeof input === 'string' && typeof numChars === 'number' && numChars >= 0) {\n return input.length > numChars ? input.substring(numChars) : '';\n } else {\n console.error(" + Chr(34) + "Invalid input provided." + Chr(34) + ");\n return input; // Return original input if trimming is not possible\n }\n}\n" + variables['addFuncIfWeUseIt_StringTrimRight'] = "\n// Function to trim specified number of characters from the right side of a string\nfunction StringTrimRight(input, numChars) {\n if (typeof input === 'string' && typeof numChars === 'number' && numChars >= 0) {\n return input.length > numChars ? input.substring(0, input.length - numChars) : '';\n } else {\n console.error(" + Chr(34) + "Invalid input provided." + Chr(34) + ");\n return input; // Return original input if trimming is not possible\n }\n}\n" variables['addFuncIfWeUseIt_isMobileDevice'] = "\n function isMobileDevice() {\n return /Mobi|Android/i.test(navigator.userAgent);\n }\n" - variables['addFuncIfWeUseIt_SetTimer'] = "\n // Object to store timer intervals for different functions\n const timerIntervals = {};\n\n async function SetTimer(func, timeOrOnOff) {\n if (typeof func !== " + Chr(34) + "function" + Chr(34) + " || typeof timeOrOnOff === " + Chr(34) + "undefined" + Chr(34) + ") {\n console.error(" + Chr(34) + "Invalid arguments. Please provide a valid function and time/On/Off state." + Chr(34) + ");\n return;\n }\n\n if (typeof timeOrOnOff === " + Chr(34) + "number" + Chr(34) + ") {\n // If a number is provided, set the timer to that time in milliseconds and start it.\n func.interval = timeOrOnOff; // Store the interval within the function\n func(); // Call the function initially\n func.intervalId = setInterval(func, timeOrOnOff);\n timerIntervals[func] = func.intervalId; // Store the interval ID\n } else if (timeOrOnOff === " + Chr(34) + "On" + Chr(34) + ") {\n // If 'On' is provided, start the timer if it's not already running.\n if (!func.intervalId && func.interval) {\n func(); // Call the function initially\n func.intervalId = setInterval(func, func.interval); // Start with the stored interval\n timerIntervals[func] = func.intervalId; // Store the interval ID\n } else {\n console.error(" + Chr(34) + "Timer is not set. Please provide a valid interval." + Chr(34) + ");\n }\n } else if (timeOrOnOff === " + Chr(34) + "Off" + Chr(34) + ") {\n // If 'Off' is provided, clear the timer if it's running.\n clearInterval(func.intervalId);\n func.intervalId = null;\n delete timerIntervals[func]; // Remove the interval ID from storage\n } else {\n console.error(" + Chr(34) + "Invalid time/On/Off state. Please provide a valid time in milliseconds or 'On'/'Off'." + Chr(34) + ");\n }\n }\n" - variables['addFuncIfWeUseIt_GuiControl'] = "\n function GuiControl(action, id, param1, param2, param3, param4) {\n const element = document.getElementById(id);\n if (element) {\n // Handle DOM elements\n if (action === " + Chr(34) + "move" + Chr(34) + ") {\n // Set position and size\n element.style.left = param1 + " + Chr(34) + "px" + Chr(34) + ";\n element.style.top = param2 + " + Chr(34) + "px" + Chr(34) + ";\n element.style.width = param3 + " + Chr(34) + "px" + Chr(34) + ";\n element.style.height = param4 + " + Chr(34) + "px" + Chr(34) + ";\n } else if (action === " + Chr(34) + "focus" + Chr(34) + " && (element instanceof HTMLInputElement || element instanceof HTMLElement)) {\n // Focus on the element\n element.focus();\n } else if (action === " + Chr(34) + "text" + Chr(34) + ") {\n // Set new text content\n element.textContent = param1;\n } else if (action === " + Chr(34) + "hide" + Chr(34) + ") {\n // Hide the element\n element.style.display = " + Chr(34) + "none" + Chr(34) + ";\n } else if (action === " + Chr(34) + "show" + Chr(34) + ") {\n // Show the element\n element.style.display = " + Chr(34) + "" + Chr(34) + ";\n } else if (action === " + Chr(34) + "enable" + Chr(34) + ") {\n // Enable the element\n element.disabled = false;\n } else if (action === " + Chr(34) + "disable" + Chr(34) + ") {\n // Disable the element\n element.disabled = true;\n } else if (action === " + Chr(34) + "font" + Chr(34) + ") {\n // Set font size\n element.style.fontSize = param1 + " + Chr(34) + "px" + Chr(34) + ";\n } else if (action === " + Chr(34) + "color" + Chr(34) + ") {\n // Set color\n element.style.color = param1;\n } else if (action === " + Chr(34) + "picture" + Chr(34) + ") {\n // Change the image source\n if (element instanceof HTMLImageElement) {\n element.src = param1;\n } else {\n console.error(" + Chr(34) + "Element is not an tag, cannot change picture." + Chr(34) + ");\n }\n } else if (action === " + Chr(34) + "textide" + Chr(34) + ") {\n // Set value for Ace editor\n var editor = ace.edit(id); // Access the Ace editor instance using its ID\n if (editor && param1) {\n editor.session.setValue(param1);\n } else {\n console.error(" + Chr(34) + "Element is not an Ace editor or parameter is missing." + Chr(34) + ");\n }\n }\n } else {\n // Handle canvas or non-existing element\n if (action === " + Chr(34) + "move" + Chr(34) + ") {\n // Update position and size of the rectangle\n updateRectangle(id, param1, param2, param3, param4);\n redrawCanvas(); // Redraw the canvas with updated rectangles\n } else if (action === " + Chr(34) + "color" + Chr(34) + ") {\n // Update color of the rectangle\n updateRectangleColor(id, param1);\n redrawCanvas(); // Redraw the canvas with updated rectangles\n }\n }\n }\n" - variables['addFuncIfWeUseIt_getDataFromEndpoint'] = "\n async function getDataFromEndpoint(data, endpoint) {\n // Convert data to JSON string\n const requestData = JSON.stringify(data);\n\n // Set up fetch request options\n const requestOptions = {\n method: " + Chr(34) + "POST" + Chr(34) + ", // or 'GET' depending on your server's requirements\n headers: {\n " + Chr(34) + "Content-Type" + Chr(34) + ": " + Chr(34) + "application/json" + Chr(34) + ",\n },\n body: requestData,\n };\n\n // Fetch data from the specified endpoint\n const response = await fetch(endpoint, requestOptions);\n\n // Check if response is successful\n if (!response.ok) {\n throw new Error(" + Chr(96) + "Failed to fetch data from ${endpoint}. Status: ${response.status}" + Chr(96) + ");\n }\n\n // Parse response data based on Content-Type header\n const contentType = response.headers.get(" + Chr(34) + "content-type" + Chr(34) + ");\n if (contentType && contentType.includes(" + Chr(34) + "application/json" + Chr(34) + ")) {\n return response.json(); // Parse JSON response\n } else {\n return response.text(); // Parse plain text response\n }\n }\n" - variables['addFuncIfWeUseIt_FileAppend'] = "\n function FileAppend(data, filename) {\n // Create a blob with the provided data\n const blob = new Blob([data], { type: " + Chr(34) + "text/plain" + Chr(34) + " });\n\n // Create a temporary anchor element\n const anchor = document.createElement(" + Chr(34) + "a" + Chr(34) + ");\n anchor.style.display = " + Chr(34) + "none" + Chr(34) + ";\n\n // Set the download attribute and filename\n anchor.setAttribute(" + Chr(34) + "href" + Chr(34) + ", window.URL.createObjectURL(blob));\n anchor.setAttribute(" + Chr(34) + "download" + Chr(34) + ", filename);\n\n // Append the anchor element to the body\n document.body.appendChild(anchor);\n\n // Trigger a click event on the anchor element\n anchor.click();\n\n // Remove the anchor element\n document.body.removeChild(anchor);\n }\n" - variables['addFuncIfWeUseIt_isConnectedToBackend'] = "\nfunction isConnectedToBackend() {\n return window.location.protocol !== " + Chr(34) + "file:" + Chr(34) + ";\n}\n" - variables['addFuncIfWeUseIt_MouseGetPos'] = "\n var mouseX = 0;\n var mouseY = 0;\n\n document.addEventListener(" + Chr(34) + "mousemove" + Chr(34) + ", function (event) {\n mouseX = event.clientX;\n mouseY = event.clientY;\n });\n\n function MouseGetPos(coord) {\n if (coord === " + Chr(34) + "x" + Chr(34) + ") {\n return mouseX;\n } else if (coord === " + Chr(34) + "y" + Chr(34) + ") {\n return mouseY;\n } else {\n return null; // Invalid parameter\n }\n }\n" - variables['addFuncIfWeUseIt_SoundPlay'] = "\n let audio = new Audio();\n let currentAudioUrl = null;\n\n function isBase64(str) {\n try {\n return btoa(atob(str)) === str;\n } catch (err) {\n return false;\n }\n }\n\n function SoundPlay(command, parameter) {\n switch (command) {\n case " + Chr(34) + "play" + Chr(34) + ":\n if (typeof parameter === " + Chr(34) + "string" + Chr(34) + ") {\n if (isBase64(parameter)) {\n // Parameter is a Base64-encoded string\n let binaryString = atob(parameter);\n let bytes = new Uint8Array(binaryString.length);\n\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n\n let mimeType = " + Chr(34) + "audio/mpeg" + Chr(34) + "; // Default MIME type\n // Determine MIME type based on audio data\n // (You may need more sophisticated detection logic here)\n if (parameter.includes(" + Chr(34) + "audio/wav" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/wav" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/mp3" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/mpeg" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/ogg" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/ogg" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/aac" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/aac" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/m4a" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/mp4" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/flac" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/flac" + Chr(34) + ";\n } else if (parameter.includes(" + Chr(34) + "audio/x-aiff" + Chr(34) + ")) {\n mimeType = " + Chr(34) + "audio/x-aiff" + Chr(34) + ";\n }\n // Add more conditions for other audio formats...\n\n let blob = new Blob([bytes.buffer], {\n type: mimeType,\n });\n let audioSrc = URL.createObjectURL(blob);\n\n audio.src = audioSrc;\n audio.play();\n currentAudioUrl = audioSrc;\n } else {\n // Parameter is assumed to be a URL\n audio.src = parameter;\n audio.play();\n currentAudioUrl = parameter;\n }\n } else {\n console.error(" + Chr(34) + "Invalid parameter for play command" + Chr(34) + ");\n }\n break;\n case " + Chr(34) + "stop" + Chr(34) + ":\n audio.pause();\n audio.currentTime = 0;\n break;\n case " + Chr(34) + "pause" + Chr(34) + ":\n audio.pause();\n break;\n case " + Chr(34) + "resume" + Chr(34) + ":\n audio.play();\n break;\n case " + Chr(34) + "mute" + Chr(34) + ":\n audio.volume = 0;\n break;\n case " + Chr(34) + "unmute" + Chr(34) + ":\n audio.volume = 1;\n break;\n case " + Chr(34) + "setVolume" + Chr(34) + ":\n if (\n typeof parameter === " + Chr(34) + "number" + Chr(34) + " &&\n parameter >= 0 &&\n parameter <= 100\n ) {\n audio.volume = parameter / 100;\n } else {\n console.error(\n " + Chr(34) + "Invalid volume value. Volume must be a number between 0 and 100" + Chr(34) + ",\n );\n }\n break;\n default:\n console.error(" + Chr(34) + "Invalid command specified" + Chr(34) + ");\n break;\n }\n }\n" - variables['addFuncIfWeUseIt_StoreLocally'] = "\n// Define the StoreLocally function with embedded getLocalStorageUsagePercentage logic\nfunction StoreLocally(operation, saveLocation, data) {\n if (operation === " + Chr(34) + "s" + Chr(34) + ") {\n // Save data to local storage under specified saveLocation\n localStorage.setItem(saveLocation, String(data));\n return true; // Indicate success\n } else if (operation === " + Chr(34) + "d" + Chr(34) + ") {\n // Delete data from local storage under specified saveLocation\n localStorage.removeItem(saveLocation);\n return true; // Indicate success\n } else if (operation === " + Chr(34) + "r" + Chr(34) + ") {\n // Retrieve data from local storage under specified saveLocation\n return localStorage.getItem(saveLocation) || null; // Return stored data or null if not found\n } else if (operation === " + Chr(34) + "dALL" + Chr(34) + ") {\n // Delete all data from local storage (clear all keys)\n localStorage.clear();\n return true; // Indicate success\n } else if (operation === " + Chr(34) + "e" + Chr(34) + ") {\n // Check if local storage is empty (no keys present)\n return localStorage.length === 0; // Return true if empty, false if not empty\n } else if (operation === " + Chr(34) + "u" + Chr(34) + ") {\n // Embed the logic of getLocalStorageUsagePercentage function\n\n var store = localStorage;\n var testKey = " + Chr(34) + "$_test" + Chr(34) + ";\n\n // Function to test storage capacity\n function testCapacity(size) {\n try {\n store.setItem(testKey, new Array(size + 1).join('0'));\n store.removeItem(testKey);\n return true;\n } catch (ex) {\n return false;\n }\n }\n\n // Binary search to find maximum size\n var low = 0,\n high = 1,\n upperLimit = (1024 * 1024 * 1024) / 2; // Default upper limit (1 GB)\n\n while (testCapacity(high) && high < upperLimit) {\n low = high;\n high *= 2;\n }\n\n // Refine the estimate using binary search\n var precision = 8; // Number of iterations for precision\n while (precision--) {\n var mid = (low + high) / 2;\n if (testCapacity(mid)) {\n low = mid;\n } else {\n high = mid;\n }\n }\n\n var totalBytes = Math.ceil(high) * 2; // Total storage limit in bytes\n\n // Calculate used storage size directly\n var usedBytes = Object.keys(store).reduce(function(total, key) {\n return total + key.length + store[key].length * 2;\n }, 0);\n\n // Calculate percentage used\n var usedPercentage = (usedBytes / totalBytes) * 100;\n usedPercentage = usedPercentage.toFixed(2); // Round to 2 decimal places\n\n return usedPercentage;\n } else {\n console.error(" + Chr(34) + "Invalid operation specified." + Chr(34) + ");\n return false; // Indicate failure\n }\n}\n" - variables['addFuncIfWeUseIt_createToggleSwitch'] = "\n // Function to create a toggle switch with width and height\n function createToggleSwitch(parent, id, label, color, leftPos, topPos, width, height, switchFunction) {\n let toggleSwitch = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n toggleSwitch.className = " + Chr(34) + "toggle-switch" + Chr(34) + ";\n toggleSwitch.id = id;\n toggleSwitch.dataset.id = id;\n toggleSwitch.dataset.isOn = " + Chr(34) + "false" + Chr(34) + ";\n toggleSwitch.dataset.color = color; // Save color in dataset for use when toggled\n toggleSwitch.style.width = width + " + Chr(34) + "px" + Chr(34) + "; // Set width\n toggleSwitch.style.height = height + " + Chr(34) + "px" + Chr(34) + "; // Set height\n toggleSwitch.style.backgroundColor = " + Chr(34) + "#ccc" + Chr(34) + ";\n toggleSwitch.style.borderRadius = height / 2 + " + Chr(34) + "px" + Chr(34) + "; // Make border radius proportional to height\n toggleSwitch.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n toggleSwitch.style.left = leftPos + " + Chr(34) + "px" + Chr(34) + ";\n toggleSwitch.style.top = topPos + " + Chr(34) + "px" + Chr(34) + ";\n toggleSwitch.style.cursor = " + Chr(34) + "pointer" + Chr(34) + ";\n toggleSwitch.style.transition = " + Chr(34) + "background-color 0.3s ease" + Chr(34) + ";\n\n // Create knob for the toggle switch\n let knob = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n knob.className = " + Chr(34) + "knob" + Chr(34) + ";\n knob.style.width = height - 4 + " + Chr(34) + "px" + Chr(34) + "; // Set knob width (slightly less than height)\n knob.style.height = height - 4 + " + Chr(34) + "px" + Chr(34) + "; // Set knob height (slightly less than height)\n knob.style.backgroundColor = " + Chr(34) + "#fff" + Chr(34) + ";\n knob.style.borderRadius = " + Chr(34) + "50" + Chr(37) + "" + Chr(34) + ";\n knob.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n knob.style.top = " + Chr(34) + "2px" + Chr(34) + ";\n knob.style.left = " + Chr(34) + "2px" + Chr(34) + ";\n knob.style.transition = " + Chr(34) + "transform 0.3s ease" + Chr(34) + ";\n\n toggleSwitch.appendChild(knob);\n parent.appendChild(toggleSwitch);\n\n // Create label for the toggle switch\n let toggleLabel = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n toggleLabel.textContent = label;\n toggleLabel.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n toggleLabel.style.left = leftPos + width + 10 + " + Chr(34) + "px" + Chr(34) + "; // Position label relative to switch\n toggleLabel.style.top = topPos + 5 + " + Chr(34) + "px" + Chr(34) + ";\n parent.appendChild(toggleLabel);\n\n // Toggle switch click event\n toggleSwitch.addEventListener(" + Chr(34) + "click" + Chr(34) + ", function () {\n let isOn = toggleSwitch.dataset.isOn === " + Chr(34) + "true" + Chr(34) + ";\n toggleSwitch.dataset.isOn = String(!isOn); // Toggle the state\n\n const knob = toggleSwitch.querySelector(" + Chr(34) + ".knob" + Chr(34) + ");\n knob.style.transform = isOn ? " + Chr(34) + "translateX(0)" + Chr(34) + " : " + Chr(34) + "translateX(" + Chr(34) + " + (width - height + 4) + " + Chr(34) + "px)" + Chr(34) + "; // Move knob based on state\n\n const backgroundColor = isOn ? " + Chr(34) + "#ccc" + Chr(34) + " : toggleSwitch.dataset.color;\n toggleSwitch.style.backgroundColor = backgroundColor; // Update background color\n\n if (isOn == true) {\n isOn = " + Chr(34) + "0" + Chr(34) + ";\n } else {\n isOn = " + Chr(34) + "1" + Chr(34) + ";\n }\n\n // Call the switch function with toggle switch ID and state\n switchFunction(isOn);\n });\n }\n" - variables['addFuncIfWeUseIt_getUrlParams'] = "\n function getUrlParams() {\n const queryString = window.location.search.substring(1); // Get the query string without the leading '?'\n const paramPairs = queryString.split(" + Chr(34) + "&" + Chr(34) + "); // Split the query string into parameter key-value pairs\n\n // Array to store parameter values starting from the first key's value\n const paramValues = [];\n\n // Iterate over each parameter pair\n paramPairs.forEach((pair, index) => {\n const pairParts = pair.split(" + Chr(34) + "=" + Chr(34) + ");\n\n if (index === 0 && pairParts.length === 2) {\n // For the first parameter pair (index === 0), add the value directly\n const firstValue = decodeURIComponent(pairParts[1]);\n paramValues.push(firstValue);\n } else if (pairParts.length === 1) {\n // For subsequent parameter pairs (values without keys), add the value directly\n const value = decodeURIComponent(pairParts[0]);\n paramValues.push(value);\n }\n });\n\n // Join the parameter values into a single string separated by '&'\n const resultString = paramValues.join(" + Chr(34) + "&" + Chr(34) + ");\n\n return resultString;\n }\n" - variables['addFuncIfWeUseIt_reloadWithParams'] = "\n function reloadWithParams(paramString) {\n // Parse the parameter string to extract individual parameter values\n const paramsArray = paramString.substring(1).split(" + Chr(34) + "&" + Chr(34) + "); // Remove leading '?' and split by '&'\n\n // Construct an array to store valid parameter pairs\n const paramPairs = [];\n\n // Iterate over each parameter value\n paramsArray.forEach((value) => {\n // Check if the value is non-empty (to filter out any empty values)\n if (value.trim() !== " + Chr(34) + "" + Chr(34) + ") {\n // Push the parameter value to paramPairs\n paramPairs.push(value); // No need to encode values here\n }\n });\n\n // Join the parameter pairs into a query string format\n const queryParams = paramPairs.join(" + Chr(34) + "&" + Chr(34) + ");\n\n // Construct the new URL with the parameters and reload the page\n const newUrl = " + Chr(96) + "${window.location.origin}${window.location.pathname}?${queryParams}" + Chr(96) + ";\n window.location.href = newUrl;\n }\n" - variables['addFuncIfWeUseIt_PlayVideoFromBase64'] = "\n function PlayVideoFromBase64(parentElement, base64Data, id, x, y, width, height, autoplay) {\n // Create a container div for the video player\n const playerContainer = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n playerContainer.id = id; // Set the id attribute\n playerContainer.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n playerContainer.style.left = " + Chr(96) + "${x}px" + Chr(96) + ";\n playerContainer.style.top = " + Chr(96) + "${y}px" + Chr(96) + ";\n playerContainer.style.width = " + Chr(96) + "${width}px" + Chr(96) + ";\n playerContainer.style.height = " + Chr(96) + "${height}px" + Chr(96) + ";\n\n // Create a " + Chr(60) + Chr(118) + Chr(105) + Chr(100) + Chr(101) + Chr(111) + Chr(62) + " element for the video player\n const videoElement = document.createElement(" + Chr(34) + "video" + Chr(34) + ");\n videoElement.style.width = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + ";\n videoElement.style.height = " + Chr(34) + "100" + Chr(37) + "" + Chr(34) + ";\n videoElement.controls = true; // Show player controls\n\n // Convert Base64 string to Blob\n const blob = base64ToBlob(base64Data);\n\n // Create a Blob URL from the Blob object\n const blobUrl = URL.createObjectURL(blob);\n\n // Set the video source to the Blob URL\n videoElement.src = blobUrl;\n\n // Set autoplay attribute based on the autoplay parameter\n if (autoplay) {\n videoElement.autoplay = true;\n }\n\n // Append the video element to the player container\n playerContainer.appendChild(videoElement);\n\n // Append the player container to the specified parent element\n parentElement.appendChild(playerContainer);\n }\n\n // Function to convert Base64 string to Blob\n function base64ToBlob(base64Data) {\n const byteCharacters = atob(base64Data);\n const byteNumbers = new Array(byteCharacters.length);\n for (let i = 0; i < byteCharacters.length; i++) {\n byteNumbers[i] = byteCharacters.charCodeAt(i);\n }\n const byteArray = new Uint8Array(byteNumbers);\n return new Blob([byteArray]);\n }\n" - variables['addFuncIfWeUseIt_PlayVideoFromUrl'] = "\n // Define the PlayVideoFromUrl function\n function PlayVideoFromUrl(parentElement, videoUrl, id, x, y, width, height, autoplay) {\n // Create a container div for the video player\n const playerContainer = document.createElement(" + Chr(34) + "div" + Chr(34) + ");\n playerContainer.id = id; // Set the id attribute\n playerContainer.style.position = " + Chr(34) + "absolute" + Chr(34) + ";\n playerContainer.style.left = " + Chr(96) + "${x}px" + Chr(96) + ";\n playerContainer.style.top = " + Chr(96) + "${y}px" + Chr(96) + ";\n playerContainer.style.width = " + Chr(96) + "${width}px" + Chr(96) + ";\n playerContainer.style.height = " + Chr(96) + "${height}px" + Chr(96) + ";\n\n // Create a