Skip to content

Workflow

Thev2Andy edited this page Mar 14, 2022 · 2 revisions

Creating a script

Script files in PowerBeep don't have any particular extensions, so you can create a file with any extension, and write your script.

For this example I named my file beeper.bp, and I'll open it up in VSCode.

Syntax

The syntax in PowerBeep is simple. You can chose 1 out of 2 keywords per line, followed by an optional integer value, that defaults to 1 if missing. The keywowds (case-insensitive) in PowerBeep are:

  • BEEP - Emits a beep sound the amount of times specified.
  • WAIT - Delays the execution of the program by the amount of time (in milliseconds) specified.

Compiling

After you're done building your program, you'd likely want to compile it.

PowerBeep's dev kit has got you covered.

First of all, you need to compile your program.

You can use the resource builder utility to generate the application data and compile your code.

First of all, introduce the script file path.

Then, introduce the name of your application.

Finally, introduce the output path.

In the end you should have 2 files.

Second of all, you need to create the runtime.

Copy the core runtime to your desired location. Your folder should look like this:

Next, copy the compiled files to the runtime's data folder.

Additionally, rename the exe to your desired name.

Now, it's time to enjoy the sweet beep.