Git Product home page Git Product logo

pillar's Introduction

Pillar

GitHub GitHub release (release name instead of tag name) GitHub issues GitHub pull requests GitHub package.json version

Pillar is a modern and easy to use language for writting Rubber Ducky scripts.

Getting Started

Prerequisites

Installation

Download the latest release

You can download the latest release here.

Build from source

Linux / Mac OS / Windows

git clone
cd pillar

Then, you can build the sources for your platform using the following command:

make build

Linux / Mac OS

And to install it on your system, run:

make install

Note: You may need to run sudo make install if you want to install it system-wide.

To uninstall it, run:

make uninstall

Finish

You can now run the program by typing pillar in your terminal.

Extensions

VSCode

You can find the extension here.

Usage

You can play with the REPL by typing pillar in your terminal.

Run

pillar run -i <file>

Compile

pillar compile -i <file> -o <file>

Options

-h, --help
    Display this help message
-v, --version
    Display the version of the program
-o, --output <file>
    Specify the output file
-i, --input <file>
    Specify the input file

Documentation

To create a script, you need to import the Process and Keyboard modules.

import Process
import Keyboard

fn main() {
  // Your code here
}

main()

Examples

Hello world

/**
  * A simple script that prints "Hello world!"
  */

import Process

fn main() {
  Process.write("Hello world!")
}

main()

Keyboard

/**
  * A simple script that opens notepad and types "Hello world!"
  */

import Keyboard

fn main() {
  Keyboard.press(Keys.Gui, Keys.R)
  Keyboard.write("notepade")
  Keyboard.press("ENTER")
  Keyboard.release("GUI")

  Keyboard.write("Hello world!")
}

main()

Windows

There is a module called Windows that allows you to interact with the Windows API.

/**
  * A simple script that opens notepad and types "Hello world!"
  */
import Process
import Windows

fn main() {
  Windows.open("notepad.exe")
  Process.write("Hello world!")
}

main()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GPL v3 License - see the LICENSE file for more details.

Authors

pillar's People

Contributors

hokanosekai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.