💻 Examples

Try Bart++ Examples!

Explore beginner examples that show the power of Bart++.


#01 Hello World
Bart++
print("Hello World I am Bart!");

The first thing every Bart++ programmer should try.

🖥 Try in VS Code COMING SOON
#02 Auto Typing Macro
Bart++
hotkey F1 {
    Send("Hello from Bart++");
}

A simple macro that types text when triggered.

🖥 Try in VS Code COMING SOON
#03 App Launcher
Bart++
hotkey F2 {
    Run("notepad");
}

Launch an app using a Bart++ hotkey.

🖥 Try in VS Code COMING SOON
#04 Mouse Clicker
Bart++
hotkey F3 {
    Mouse.move(500, 300);
    Mouse.click();
}

Move the mouse and click automatically.

🖥 Try in VS Code COMING SOON
#05 Mini Web Page
Bart++
route "/" {
    Page.create("Home");
    H1("Welcome to Bart++");
    P("A language in development.");
}

A web-style page example using Bart++ syntax.

🖥 Try in VS Code COMING SOON
#06 Simple Game Object
Bart++
hotkey F4 {
    sprite("player");
    move("player", 10, 20);
}

Create and move a basic game object.

🖥 Try in VS Code COMING SOON
#07 AI Helper
Bart++
hotkey F5 {
    ai("Give me a project idea");
}

A future AI-powered helper command.

🖥 Try in VS Code COMING SOON
#08 File Save Example
Bart++
hotkey F6 {
    writeFile("save.txt", "Saved from Bart++");
    print(readFile("save.txt"));
}

Write and read a text file with Bart++.

🖥 Try in VS Code COMING SOON

More examples coming soon as Bart++ continues development.
Follow on GitHub to stay updated.

← Back to Bart++ View Syntax →