$ npm install --save autoit
var au = require('autoit');
au.Init();
au.Run("notepad.exe");
au.WinWait("[Class:Notepad]");
au.Send("Hello, autoit & nodejs!");
Parameter starts with "sz" is a string, for example: szOption, szText
Parameter starts with "n" is an integer, for example: nValue
Parameter starts with "h" is a handler, which is essentially an integer, for example: hWnd, hCtrl
You can call the functions with default parameters.
For example --
ControlCommand(szTitle [, szText], szControl, szCommand [, szExtra] [, nBufSize])
you can call it with the last two parameters omitted --
au.ControlCommand("[Class:Notepad]", "", "[CLASS:Edit]", "IsVisible")
If you would like to use the default value of second parameters "szText", please fill it with undefined,
au.ControlCommand("[Class:Notepad]", undefined, "[CLASS:Edit]", "IsVisible")
Return: none
Return: integer
Return: integer
Return: szClip
Return: none
Return: integer
Return: integer
Return: szResult
Return: szResult
Return: szResult
Return: szResult
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: szControlWithFocus
Return: szControlWithFocus
Return: hCtrl
Return: szRetText
Return: lpRect
Return: lpRect
Return: szControlText
Return: szControlText
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: szResult
Return: szResult
Return: szResult
Return: integer
Return: szMapping
Return: integer
Return: integer
Return: integer
Return: none
Return: integer
Return: lpPoint
Return: integer
Return: none
Return: none
Return: integer
Return: integer
Return: integer
Return: pPointResult
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: none
Return: integer
Return: none
Return: szStatusText
Return: szStatusText
Return: none
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: lpPoint
Return: szRetText
Return: szRetText
Return: lpRect
Return: lpRect
Return: hWnd
Return: szRetText
Return: lpRect
Return: lpRect
Return: integer
Return: integer
Return: integer
Return: integer
Return: szRetText
Return: szRetText
Return: szRetText
Return: szRetText
Return: integer
Return: integer
WinMenuSelectItem(szTitle [, szText], szItem1 [, szItem2] [, szItem3] [, szItem4] [, szItem5] [, szItem6] [, szItem7] [, szItem8])
Return: integer
WinMenuSelectItem(hWnd, szItem1 [, szItem2] [, szItem3] [, szItem4] [, szItem5] [, szItem6] [, szItem7] [, szItem8])
Return: integer
Return: none
Return: none
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
Return: integer
MIT © xhawk