AutoIT键盘鼠标模拟组件

 

http://baike.baidu.com/view/239490.htm?fr=ala0_1_1


 

  

AutoIt 目前最新是v3版本,这是一个使用类似BASIC脚本语言的免费软件,它设计用于Windows GUI(图形用户界面)中进行自动化操作.它利用模拟键盘按键,鼠标移动和窗口/控件的组合来实现自动化任务.而这是其它语言不可能做到或无可靠方法实现的(例如VBScript和SendKeys).
  AutoIt最初是为PC(个人电脑)对数千台PC进行配置的“批量处理”而设计,不过随着v3版本的到来它也很适合用于家庭自动化和编写用以完成重复性任务的脚本.

AutoIt 可以做的事

  运行Windows和Dos程序
  模拟键击动作(支持大多数键盘布局)
  模拟鼠标移动和点击动作
  对窗口进行移动,整大小和其它操作
  直接与窗口的“控件“交互(设置/获取文本,移动,关闭等等)
  配合剪贴板进行剪切/粘贴文本操作
  对注册表进行操作
  不同于AutoIt v2版本,新的v3版本有更多标准语法-类似于VBScript和BASIC-而且现在支持更复杂的表达式,用户函数,循环以及脚本编写老手们所期待的其它所有内容.
  正如以前版本一样,AutoIt设计得尽可能的小(大约115KB)并且不用依赖外部DLL文件或添加注册表项目即可独立运行.此外使用 Aut2Exe 这个工具还可以把脚本文件编译为独立的可执行程序.
  同时升级了ActiveX和DLL版本在AutoIt里称为 AutoItX - 与v2版本不同的是它将是一个组合控件 (COM组件对象模型和同一DLL文件中的标准DLL函数).AutoItX 将允许您加入一些AutoIt独有的特性到您最常用的脚本语言或程序设计语言中去!请查看这AutoItX帮助文件 (开始 \ 程序\ AutoIt v3 \ Extras \ AutoItX \ AutoItX Help File) 以获得更多信息和示例.
  最重要的是,AutoIt 将继续是免费的 - 但是如果您打算支持我们花在此工程的时间,金钱以及所作努力和网站主机运作的话,那么您可以到AutoIt的主页上进行捐赠.

AUTOIT中文论坛

  www.autoit.net.cn
  AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!
  AutoIt was initially designed for PC "roll out" situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.
  Features:
  Easy to learn BASIC-like syntax
  Simulate keystrokes and mouse movements
  Manipulate windows and processes
  Interact with all standard windows controls
  Scripts can be compiled into standalone executables
  Create Graphical User Interfaces (GUIs)
  COM support
  Regular expressions
  Directly call external DLL and Windows API functions
  Scriptable RunAs functions
  Detailed helpfile and large community-based support forums
  Compatible with Windows 95 / 98 / ME / NT4 / 2000 / XP / 2003 / Vista / 2008
  Unicode and x64 support
  Digitally signed for peace of mind
  Works with Windows Vista's User Account Control (UAC)

发展简史

  诞生于1998 -C语言,应用于发送按键上
  1999年1月-第一AutoIt版本( 1.0 )
  1999年8月- AutoIt v2的和AutoItX
  1999年9月-第一AutoIt版编译
  2002年12月- AutoIt v3的(公共测试版)
  2004年2月- AutoIt v3的(稳定版本)
  2006年9月- Auto3Lib函数库开发
  2007年11月- AutoIt v3.2.10.0 released, 将Auto3Lib加入到AutoIt v3中
  2008年5月- AutoIt v3.2.12.0 released,增加图形用户界面功能
  2008年12月- AutoIt (和AutoItX ) v3.3.0.0发布
  注意:在AutoIt (约第2版)开发的阶段 ,开发者希望能加快发展AutoIt,基于GPL协议开放了源代码。
  但是不久有少数人为提高产品竞争力而不遵守非通用公共许可证,且不保留开发者的保留署名权。
  AutoIt的开发者决定,为防止这种偷窃的带来不必要的麻烦,于2006年8月,即3.2.0版本后停止发放源代码。

扩展阅读:

1.AutIt官方网站,http://www.autoitscript.com/autoit3/

2.AutIt在线文档,http://www.autoitscript.com/autoit3/docs/

posted @ 2010-07-29 09:23  庚武  Views(2322)  Comments(0Edit  收藏  举报