GithubHelp home page GithubHelp logo

spcsp / website Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5 KB

Website for StrokesPlus.net ClearScript Plugins

Home Page: https://spcsp.github.io/website/

License: MIT License

strokesplus clearscript plugin

website's Introduction

StrokesPlus.net is an amazing piece of software that can automate//query/interacte with most parts of windows and applications. Included with the support for gestures, hotkeys, macros, floaters, is the the javascript engine, ClearScript. StrokesPlus uses ClearScript to embed the V8 JS engine in the app, and provide a whole host of custom functionality, as well as access to a large portion of the .NET core libraries. (Things like System.IO for example)

With some tinkering, we have leveraged npmjs and the npm package manager to create a plugin ecosystem. They will be downloaded via npm, and installed locally. Part of the loading the plugin will be to load the plugins from disk, and make them avaiable to the scripting engine.

SPPM - StrokesPlus Package Manager

First you will need the plugin to have some fun. Download here. Check the plugin's page for more detailed information, but let's use SPPM to install a plugin!

The root folder that houses all our plugins is located in StrokesPlus's APPDATA folder, located at C:\Users\YOU\AppData\Roaming\StrokesPlus.net\

TIP: You can open the run box with WIN+R and type shell:APPDATA to open explorer right to C:\Users\YOU\AppData\Roaming\

function sppm(command, noWindow = true, waitForExit = true) {
  this.APPDATA = StrokesPlus.OS.Shell.ExpandEnvironmentVariables("%APPDATA%");
  this.SP_APPDATA = System.IO.Path.Combine(this.APPDATA, "StrokesPlus.net");
  this.NODE_MODULES = System.IO.Path.Combine(this.SP_APPDATA, "node_modules");

  const NPM = "C:\\Program Files\\nodejs\\npm.cmd";
  const CMD = `cd "${this.SP_APPDATA}" && "${NPM}" ${command}`;

  return StrokesPlus.OS.Shell.RunProgram(
    "cmd.exe",
    "/C " + CMD,
    "",
    noWindow ? "hidden" : "normal",
    true,
    noWindow,
    waitForExit
  );
}

now we can leverage our new function to install some plugins!

Official Plugins

To install a plugin into StrokesPlus

website's People

Contributors

kevinkhill 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.