1.0.1 • Published 12 months ago

hmc-autoit v1.0.1

Weekly downloads
-
License
MIT License
Repository
github
Last release
12 months ago

hmc-autoit

系统环境 系统环境 系统环境 系统环境

基于autoItX 与napi( node-api(C) )结合的api转发模块,无需再次编译,也无需使用ffi魔法,安全高效

An API forwarding module based on the combination of autoItX and NAPI (Node-API, C) provides a seamless solution without the need for recompilation or the use of \"ffi\" magic. It ensures high security and efficiency.

api列表

API 名称用途description完成度类型重定向测试
Init初始化AutoItX,通常在开始使用AutoItX函数之前调用Initializes the AutoItX library.OK1
error获取上一次AutoItX函数调用返回的错误代码Retrieves the error code from the last AutoItX function call.OK1
AutoItSetOption设置AutoIt的选项,可以用来配置AutoIt的一些行为Sets various options for AutoItX, such as timeout and behavior.OK1
ClipGet获取剪贴板的内容Retrieves the content of the Windows clipboard.OK1
ClipPut将文本放入剪贴板Puts text into the Windows clipboard.OK1
ControlClick模拟控件的点击操作Simulates a mouse click on a specified control (button, checkbox, etc.) in a window.OK1
ControlClickByHandle使用控件句柄模拟控件的点击操作Same as AU3_ControlClick but uses a handle instead of window and control IDs.OK1
ControlCommand发送命令给控件,比如选择列表中的项、设置复选框状态等Sends a command to a control (button, checkbox, radio button, etc.) in a window.OK1
ControlCommandByHandle使用控件句柄发送命令给控件Same as AU3_ControlCommand but uses a handle instead of window and control IDs.OK1
ControlListView操作ListView控件Sends commands to a ListView control (such as list items selection) in a window.OK1
ControlListViewByHandle使用控件句柄操作ListView控件Same as AU3_ControlListView but uses a handle instead of window and control IDs.OK1
ControlDisable禁用控件Disables a control in a window.OK1
ControlDisableByHandle使用控件句柄禁用控件Same as AU3_ControlDisable but uses a handle instead of window and control IDs.OK1
ControlEnable启用控件Enables a control in a window.OK1
ControlEnableByHandle使用控件句柄启用控件Same as AU3_ControlEnable but uses a handle instead of window and control IDs.OK1
ControlFocus将焦点设置到控件上Sets focus to a control in a window.OK1
ControlFocusByHandle使用控件句柄将焦点设置到控件上Same as AU3_ControlFocus but uses a handle instead of window and control IDs.OK1
ControlGetFocus获取当前具有焦点的控件句柄Retrieves the handle of the control with focus.OK1
ControlGetFocusByHandle使用控件句柄获取当前具有焦点的控件句柄Same as AU3_ControlGetFocus but uses a handle instead of window and control IDs.OK1
ControlGetHandle获取控件句柄Retrieves the handle of a control in a window.OK1
ControlGetHandleAsText获取控件句柄并返回为文本Retrieves the handle of a control in a window as text.OK1
ControlGetPos获取控件的位置和尺寸Retrieves the position and size of a control in a window.OK1
ControlGetPosByHandle使用控件句柄获取控件的位置和尺寸Same as AU3_ControlGetPos but uses a handle instead of window and control IDs.OK1
ControlGetText获取控件的文本内容Retrieves the text from a control in a window.OK1
ControlGetTextByHandle使用控件句柄获取控件的文本内容Same as AU3_ControlGetText but uses a handle instead of window and control IDs.OK1
ControlHide隐藏控件Hides a control in a window.OK1
ControlHideByHandle使用控件句柄隐藏控件Same as AU3_ControlHide but uses a handle instead of window and control IDs.OK1
ControlMove移动控件到指定位置Moves a control within a window.OK1
ControlMoveByHandle使用控件句柄移动控件到指定位置Same as AU3_ControlMove but uses a handle instead of window and control IDs.OK1
ControlSend向控件发送按键输入Sends keystrokes to a control in a window.OK1
ControlSendByHandle使用控件句柄向控件发送按键输入Same as AU3_ControlSend but uses a handle instead of window and control IDs.OK1
ControlSetText设置控件的文本内容Sets the text of a control in a window.OK1
ControlSetTextByHandle使用控件句柄设置控件的文本内容Sets the text of a control in a window using its handle.OK1
ControlShow显示控件Shows a control in a window.OK1
ControlShowByHandle使用控件句柄显示控件Shows a control in a window using its handle.OK1
ControlTreeView操作TreeView控件Sends commands to a TreeView control in a window.OK1
ControlTreeViewByHandle使用控件句柄操作TreeView控件Same as AU3_ControlTreeView but uses a handle instead of window and control IDs.OK1
DriveMapAdd映射本地驱动器到网络共享路径Maps a network drive.OK1
DriveMapDel取消驱动器映射Unmaps a network drive.OK1
DriveMapGet获取驱动器映射的信息Retrieves the mapping of a network drive.OK1
IsAdmin检查当前用户是否有管理员权限Checks if the current process is running with administrative privileges.OK1
MouseClick模拟鼠标点击Simulates a mouse click at the current cursor position.OK1
MouseClickDrag模拟鼠标点击并拖动Simulates dragging the mouse between two points.OK1
MouseDown模拟鼠标按下Simulates pressing a mouse button.OK1
MouseGetCursor获取鼠标当前的光标样式Retrieves the mouse cursor's current shape.OK1
MouseGetPos获取鼠标当前位置Retrieves the current position of the mouse cursor.OK1
MouseMove移动鼠标到指定位置Moves the mouse cursor to a specified position.OK1
MouseUp模拟鼠标释放Simulates releasing a mouse button.OK1
MouseWheel模拟鼠标滚轮滚动Simulates scrolling the mouse wheel.OK1
Opt设置AutoIt选项Sets options for AutoItXOK1
PixelChecksum获取屏幕区域的像素校验和Calculates a checksum of a region of pixels on the screen.OK1
PixelGetColor获取屏幕上指定位置的像素颜色Retrieves the color of a pixel at a specified position.OK1
PixelSearch在屏幕上搜索指定颜色的像素Searches for a pixel of a specific color in a region of the screen.OK1
ProcessClose关闭进程Closes a specified process.OK1
ProcessExists检查进程是否存在Checks if a specified process exists.OK1
ProcessSetPriority设置进程的优先级Sets the priority of a specified process.OK1
ProcessWait等待进程的出现Waits for a specified process to exist.OK1
ProcessWaitClose等待进程的结束Waits for a specified process to close.OK1
Run用于运行外部程序或执行系统命令Runs an external program or opens a document.OK1
RunWait运行外部程序并等待其完成Runs an external program and waits for it to complete.OK1
RunAs以其他用户的身份运行外部程序Runs an external program with different credentials (as a different user).OK1
RunAsWait以其他用户的身份运行外部程序并等待其完成Runs an external program with different credentials and waits for it to complete.OK1
Send向活动窗口发送按键输入Sends simulated keystrokes.OK1
Shutdown关闭或重启系统Shuts down, restarts, or logs off the computer.OK1
Sleep在脚本中加入暂停/延迟Pauses the script for a specified number of milliseconds.OK1
StatusbarGetText获取状态栏的文本内容Retrieves the text from the status bar of a window.OK1
StatusbarGetTextByHandle使用控件句柄获取状态栏的文本内容Retrieves the text from the status bar of a window using its handle.OK1
ToolTip显示一个提示框,通常用于在屏幕上显示临时的提示信息Creates a tooltip with the specified text at the current mouse position or on a specific control.OK1
WinActivate激活指定的窗口Activates a window by title or window handle.OK1
WinActivateByHandle使用窗口句柄激活指定的窗口Activates a window using its handle.OK1
WinActive检查指定的窗口是否处于活动状态Checks if a window is currently active by title.OK1
WinActiveByHandle使用窗口句柄检查指定的窗口是否处于活动状态Checks if a window is currently active using its handle.OK1
WinClose关闭指定的窗口Closes a window by title.OK1
WinCloseByHandle使用窗口句柄关闭指定的窗口Closes a window using its handle.OK1
WinExists检查指定的窗口是否存在Checks if a window exists by title.OK1
WinExistsByHandle使用窗口句柄检查指定的窗口是否存在Checks if a window exists using its handle.OK1
WinGetCaretPos获取当前光标的位置Retrieves the position of the caret in the active window.OK1
WinGetClassList获取指定窗口的类名列表Retrieves a list of classes used by a window by title.OK1
WinGetClassListByHandle使用窗口句柄获取指定窗口的类名列表Retrieves a list of classes used by a window using its handle.OK1
WinGetClientSize获取指定窗口客户区的尺寸Retrieves the client area's size of a window by title.OK1
WinGetClientSizeByHandle使用窗口句柄获取指定窗口客户区的尺寸Retrieves the client area's size of a window using its handle.OK1
WinGetHandle获取指定窗口的句柄Retrieves the handle of a window by title.OK1
WinGetHandleAsText获取指定窗口的句柄并返回为文本Retrieves the handle of a window by title as text.OK1
WinGetPos获取指定窗口的位置和尺寸Retrieves the position and size of a window by title.OK1
WinGetPosByHandle使用窗口句柄获取指定窗口的位置和尺寸Retrieves the position and size of a window using its handle.OK1
WinGetProcess获取指定窗口的进程IDRetrieves the process ID of a window by title.OK1
WinGetProcessByHandle使用窗口句柄获取指定窗口的进程IDRetrieves the process ID of a window using its handle.OK1
WinGetState获取指定窗口的状态Retrieves the state of a window by title (minimized, maximized, etc.).OK1
WinGetStateByHandle使用窗口句柄获取指定窗口的状态Retrieves the state of a window using its handle.OK1
WinGetText获取指定窗口的文本内容Retrieves the text from a window by title.OK1
WinGetTextByHandle使用窗口句柄获取指定窗口的文本内容Retrieves the text from a window using its handle.OK1
WinGetTitle获取指定窗口的标题Retrieves the title of a window by title.OK1
WinGetTitleByHandle使用窗口句柄获取指定窗口的标题Retrieves the title of a window using its handle.OK1
WinKill强制关闭指定的窗口Forces a window to close by title.OK1
WinKillByHandle使用窗口句柄强制关闭指定的窗口Forces a window to close using its handle.OK1
WinMenuSelectItem选择窗口的菜单项Selects an item from a menu in a window by title.OK1
WinMenuSelectItemByHandle使用窗口句柄选择窗口的菜单项Selects an item from a menu in a window using its handle.OK1
WinMinimizeAll最小化所有窗口Minimizes all windows.OK1
WinMinimizeAllUndo恢复最小化的窗口Undoes the effect of AU3_WinMinimizeAll.OK1
WinMove移动指定窗口到指定位置Moves and/or resizes a window by title.OK1
WinMoveByHandle使用窗口句柄移动指定窗口到指定位置Moves and/or resizes a window using its handle.OK1
WinSetOnTop设置指定窗口在其他窗口之上Sets a window to be always on top by title.OK1
WinSetOnTopByHandle使用窗口句柄设置指定窗口在其他窗口之上Sets a window to be always on top using its handle.OK1
WinSetState设置指定窗口的状态(最大化、最小化、正常等)Sets the state of a window by title (minimize, maximize, etc.).OK1
WinSetStateByHandle使用窗口句柄设置指定窗口的状态Sets the state of a window using its handle.OK1
WinSetTitle设置指定窗口的标题Sets the title of a window by title.OK1
WinSetTitleByHandle使用窗口句柄设置指定窗口的标题Sets the title of a window using its handle.OK1
WinSetTrans设置指定窗口的透明度Sets the transparency level of a window by title.OK1
WinSetTransByHandle使用窗口句柄设置指定窗口的透明度Sets the transparency level of a window using its handle.OK1
WinWait等待指定的窗口出现Waits for a window to exist by title.OK1
WinWaitByHandle使用窗口句柄等待指定的窗口出现Waits for a window to exist using its handle.OK1
WinWaitActive等待指定的窗口处于活动状态Waits for a window to be active by title.OK1
WinWaitActiveByHandle使用窗口句柄等待指定的窗口处于活动状态Waits for a window to be active using its handle.OK1
WinWaitClose等待指定的窗口关闭Waits for a window to close by title.OK1
WinWaitCloseByHandle使用窗口句柄等待指定的窗口关闭Waits for a window to close using its handle.OK1
WinWaitNotActive等待指定的窗口不处于活动状态Waits for a window to be not active by title.OK1
WinWaitNotActiveByHandle使用窗口句柄等待指定的窗口不处于活动状态Waits for a window to be not active using its handle.OK1
1.0.1

12 months ago

1.0.0

12 months ago