Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cleanhands/euojs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

euojs

euojs is a Node.js addon for loading and calling the OpenEUO uo.dll with pure javascript. It can be used to create EasyUO scripts without writing any LUA or EasyUO code.

It also enables you to use networking and any other Node.js modules in your EasyUO scripts.

Example

var client = require('euojs').createClient()

client.CliNr(1, function(err, res) {
  client.monitor('journal')
})

client.on('journal', function(j) {
  console.log('[%d] %s', j.color, j.text)
})

Requirements

  • OpenEUO's uo.dll.
  • Node.js v0.8+.
  • Windows

Installation

First you need to install node-gyp and it's requirements.

To compile euojs:

$ git clone git://github.com/cleanhands/euojs.git
$ cd euojs
$ node-gyp configure build

Documentation

See the OpenEUO wiki for documentation. All UO commands and variables are implemented asynchronously. Pass a value as the first argument to variable accessors to set it, or a callback to get the current value.

In addition to the standard API euojs adds monitor() and stopMonitor() which may be passed 'all', 'journal', or an OpenEUO variable name. Monitored variables emit events when their value changes.

License

MIT License. See the LICENSE file.

About

A node.js binding for OpenEUO's uo.dll.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published