Skip to content

Instantly share code, notes, and snippets.

@itsthatguy
Created May 16, 2015 04:36
Show Gist options
  • Save itsthatguy/917aae3b3589a1a10598 to your computer and use it in GitHub Desktop.
Save itsthatguy/917aae3b3589a1a10598 to your computer and use it in GitHub Desktop.
run: node foo.js
var exec = require('child_process').execFileSync;
var file = 'C:\\Program Files\\AutoHotkey\\AutoHotkey.exe';
exec(file, ['test.ahk', 'Hey Dawg']);
Loop, %0%
param := %A_Index%
MsgBox, % param
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment