Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible Autoit-like JavaScript macros?

The title says it all. Is there a way to write macros in JavaScript to achieve a similar functionality to that of Autoit? I just would want to manipulate files on my own computer (offline) and could easily do it with autoit, but since I am currently learning JavaScript -- plan to develop in Node.js -- I figure it wouldn't hurt to get the extra practice.

Thanks guys!

like image 620
Pytth Avatar asked Sep 18 '26 15:09

Pytth


2 Answers

Use an application which supports JavaScript as a shell scripting language, such as the following:

  • JsRoboKey
  • PowershellJS
  • PowerChakra
  • RemoteNodeJS
  • JScript + WSH
  • JavaScript Shell Scripting with JSC
  • QtScript: QScriptEngine
  • Part I: How to Choose a JavaScript Engine for iOS and Android Development - OpenAphid-Engine
like image 142
Paul Sweatte Avatar answered Sep 20 '26 03:09

Paul Sweatte


nodejs has a module which do autoit things --

nodejs install autoit

var au = require('autoit');

au.Init();
au.Run("notepad.exe");
au.WinWait("[Class:Notepad]");
au.Send("Hello, autoit & nodejs!");
like image 33
xhawk18 Avatar answered Sep 20 '26 03:09

xhawk18



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!