Macro Instruction Compilation Failure Solutions

Solutions for Macro Instruction Compilation Failures

Restart the computer after installing Kinseal Studio. Ensure the macro instruction compiler runs properly by testing a macro without writing any code first. Check compatibility settings and run the program as an administrator if the compilation fails. Ensure that the necessary arm folder is copied to the C drive. Pay attention to syntax errors, including variable names and punctuation. If previous successful macros fail to compile, restart the software. Add relevant system files to the path environment variable if error codes appear during compilation.

After installing Kinseal Studio touchscreen software, it’s generally recommended to restart your computer.

After restarting, open the Kinseal Studio touchscreen software, create a new project, and click on the macro instruction compiler from the extended toolbar (as shown in the image below).

Once the macro instruction compiler is open, create a new macro, name it, and click OK.

After creating the macro, do not write any code yet. Instead, click Compile (as shown below). If the macro compiles successfully, it indicates that the macro instruction compilation path is properly set up in the system environment variables.

If, after creating a new macro and attempting to compile it from the macro instruction compiler’s menu, the compilation fails (as indicated by the error message shown), follow these steps:

Right-click Kinseal Studio and select Properties, then check if “Run as Administrator” is selected in the Compatibility tab. If not, select it (as shown below).

Copy the arm folder to the root directory of the C drive (the document contains this folder). After copying, restart Kinseal Studio and try compiling the macro again.

Check the syntax carefully when writing macros, ensuring that variable names, punctuation, brackets, etc., are used correctly. Avoid using special characters or single letters/numbers for variable names as this can cause the compilation to fail.

When downloading the project, if the download compilation box displays an error (as shown below), open the macro instruction compiler, locate the specific macro (e.g., “sddff”), and recompile it.

After successfully compiling the macro, close the compiler window and download the project again (as shown in the image).

If a macro instruction that previously compiled successfully suddenly fails without any changes made, close the software and reopen the project to recompile it.

If the compilation fails with specific error codes, it’s necessary to add relevant files to the system path. Follow these steps:

First, go to Control Panel and find Advanced System Settings, then click on Environment Variables.

In the environment variables, select Path and click Edit.

In the edit window, create a new entry, browse to the script folder in the touchscreen software’s path, select it, and confirm by clicking OK repeatedly.

Leave a Comment