Coder Social home page Coder Social logo

amrdeveloper / snapmacro Goto Github PK

View Code? Open in Web Editor NEW
13.0 5.0 0.0 2.26 MB

Free and Open source Cross-platform bot creator with a new scripting language called snap to interact with the mouse, keyboard, and screen using Snap scripting language

License: MIT License

CSS 7.85% Java 92.15%
snap macro scripting-language interpreter java javafx snap-scripting-language bot-creator hacktoberfest

snapmacro's Introduction

Snap Macro 1.0.0

Free and open source Cross-platform bot creator with a new scripting language called snap to interact with mouse, keyboard and screen using snap scripting language

Download SnapMacro Download SnapMacro

Snap language has many features to make it easy to implement your bot

Features:

  • variables,
  • conditions,
  • flow conditions like if, while loop, repeat loop
  • sleep, exit statements

Editor shortcuts

  • F1 to change editor theme dark/light
  • F5 to run snap script
  • F6 to run snap script in debugging mode
  • F7 to restart the execution
  • F8 to stop running snap script
  • F9 to load new snap script file in new tab
  • F10 to save current snap script file
  • F11 Show/Stop the X and Y values in the current cursor position
  • F12 Show/Stop the pixel value in the current cursor position
  • F13 Clear the debugging info area

For examples take a look at example directory

How to use?

To run SnapMacro Jar you need to install JDK 8 Then You can download SnapMacro from Here

Instructions

Mouse

Perform right or left mouse click

mouse click (left | right)

Move mouse cursor to x, y position

mouse point x y

Mouse wheel to control wheel and scroll down or up

mouse wheel 10
mouse wheel -10

Keyboard

Keyboard press key

keyboard press key

Keyboard keys

F1 to F11
F12 to F24
DIGIT_0 to DIGIT_9
CHAR_A to CHAR_Z

Screen to take screenshot and store it in path

screen capture "C:\Users\AmrDeveloper\Desktop\screenshots"

Sleep execution s milliseconds

delay s

Variables assign and reassign

var x = 10 x = x + 1

If to execute the body if the condition is true

if(condition) {

}
Execute the body statements n times
repeat(n) {
   
}
Execute the body statements while the condition is true
while(condition) {
   
}
Function declaration to make easy to call or repeat instructions
func name {

}
Function call to execute function instructions

name()

Boolean values

true
false

Math Operations

+ / - *

Bitwise Operations

x and y
x or y
x xor y

Pixel Color to get color of current pointer position

mouse point 100 100
var color = pixelColor()
if(color == "0xffffff") {

}

Restart the execution to start from first line

restart

Exit the execution to stop the script

exit

Comments to make your script more readable

# .....

snapmacro's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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