Coder Social home page Coder Social logo

scriptrunner's People

Contributors

gourmethunter94 avatar

Watchers

 avatar

scriptrunner's Issues

variable system

System for variables.
Command to set variables.

set "variable_name" # - s - set integer value to the named variable.

To use a variable on a a script use $ in front of variable name, as example "$variable_name".

refactor commands init method

all commands should have base method that they can call from super() from their init method to remove multiple lines of command name and command short handle related come that repeats in each function.

if command

No short handle

if "variable_1_name" equal/less/greater "variable_2_name" "path/to/executable.sff" - if - If variable_1 fulfills condition compared to variable_2 then run the executable file.

basic minus and plus arthimetics

Complete after #2

commands

minus "variable_name" # - mi - decreases value of named variable by given amount.
plus "variable_name" #  - pl - increases value of named variable by given amount.

get coordinates of mouse

Complete after #2

mouseposition "variable_name_1" "variable_name_2" - mp - sets x coordinate of mouse to variable_name_1, and y coordinate of mouse to variable_name_2.

print command

print - pr - prints everything after the command, supports usage of variables. 

loop as command

loop "path/to/executable.sff" # - l - Run executable file # times, usage of negative number should result into infinite loop.
end - en - end execution of a file, only refers to singular file in question, will continue running of all other files in execution.

random command

random a b "variable_name" - r - Stores random integer between integer value a and integer value b into variable "variable_name"

default exit script key

Default bind to end any execution.
Probably needs separate thread.

Create command to change the bind.
Sub scripts should not have a key bound to end the execution, the main script key should kill all tied executions.

look for an image on a screen

Complete after #2

findimage "variable_name_1" "variable_name_2" "path/to/an/image" - fi - returns x position of image on variable_name_1 and y position of image on variable_name_2, if image is not found returns 0 and 0.

drawimage command

drawimage "path/to/image.png" x y # - di - Draw image on coordinates x and y for duration #.

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.