1.0.7 • Published 4 years ago

node-ahk v1.0.7

Weekly downloads
13
License
ISC
Repository
-
Last release
4 years ago

node-ahk

node-ahk is a library that allows NodeJS to communicate with autohotkey.

Installation

Use the package manager npm to install node-ahk.

npm install node-ahk --save

Setup - NodeJS

const nodeahk = require('node-ahk');
const fs = require('fs');

const gui = new nodeahk()
    .import(fs.readFileSync(__dirname + '/index.ahk'))
    .run();

Functions

NodeJS

gui.import("string");                        // Imports this string as autohotkey.
gui.write("event", "message");               // Send a buffer to autohotkey.
gui.run();                                   // Runs the autohotkey script.
gui.on("message", (event, message) => {})    // Event Listener.

Autohotkey

Node_Write("event", "message")               ;; Send a buffer to nodejs.
Node_OnMessage(event, message) {}            ;; Event Listener.

Credits

Creator: Niiko

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago