Coder Social home page Coder Social logo

neoarc / namacrojs Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 11.31 MB

Scripting MS-Windows using JavaScript

JavaScript 8.52% C++ 15.23% C 75.45% Batchfile 0.33% Inno Setup 0.10% Makefile 0.08% CMake 0.29%
automator macro javascript win32api win32 windows record-macro play-macro

namacrojs's People

Contributors

neoarc avatar ryukw7 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ryukw7 ryanfu

namacrojs's Issues

OCR (Image to Text API)

imageToText API needed.
ex)
var img = system.screen.capture(0,0,500,500);
var txt = imageToText(img);
trace(txt); // -> text ๐Ÿ‘

Catch global mouse event.

ex)
// Mouse.lbuttonDown = static constant
system.mouse.on(Mouse.lbuttondown, function() {
alert("catched lbuttondown");
});

// Mouse.allAction = lbuttonDown | lbuttonUp | move | ...
system.mouse.on(Mouse.allAction, funcnction() {
alert("catched action: " + foobar);
});

Multi monitor support

system.screen cannot support multi monitor.
how to make support it and more easily accessible?

Auto updater

Updater does: Download files -> extract -> Update

This issue contains also:

  • Update when?
  • From where?
  • How?

Make Compiler

Make all files to one executable file.
(exe, bin, dll, js) to (exe)

exit() Problems..

  1. Need exit code for integrate external programs..
    ex)
    exit(0);
    exit(-1);

  2. Exit method does not terminate NaMacro exactly.
    ex)
    exit();
    alert("f**k!!");

Support command argument

To appointment macro-file.

for example:
NaMacro.exe ---> Run default script (NaMacro.js)
NaMacro.exe aaa.js ---> Run aaa.js

Make default modules

  1. Mouse Module

var mouse = system.mouse;
mouse.move(1,1);
mouse.click();
mouse.lbuttonDown();

(Recorder) Tagging hotkey needed

To check 'check point' of script, tagging hotkey needed.

for recorded output example
system.mouse.move(1,1);
//-- tagged -- 2016.03.31 pm 08:32 ---
system.mouse.move(1,2);

Ignore duplicated include.

ex)
// main.js
include("aa.js");
include("bb.js");

// aa.js
include("bb.js");

// in this case, bb.js loaded twice.
// Must check fullpath.

Highlighter idea

ex)
windowObj.highlight(); // highlight window boundary
highlight(0, 0, 100, 100); // screen coord

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.