I am creating a robot for Windows. To move the mouse, this is my code so far:
var ffi = require('ffi'),
user32 = ffi.Library('user32', {
'SetCursorPos': ['long', ['long', 'long']]
});;
user32.SetCursorPos(100,100);
I need a function that using ffi (or any other way) will click to given coordinates like
click(100,100);