资源简介
自动化工具包,通过对AutoIt进行封装,得到了AutoItX组件,此资源提供了Java到AutoItX的调用方式,适合在Java项目中继承AutoIt功能,完成WindowS GUI 的自动化操作
代码片段和文件信息
/**
* Copyright (c) 2011 Richard Kanavati
*
* Permission is hereby granted free of charge to any person obtaining a copy
* of this software and associated documentation files (the “Software“) to deal
* in the Software without restriction including without limitation the rights
* to use copy modify merge publish distribute sublicense and/or sell
* copies of the Software and to permit persons to whom the Software is
* furnished to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
* LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package autoitx4java;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.SafeArray;
import com.jacob.com.Variant;
/**
* A Java AutoItX3 Bridge.
* @author Richard Kanavati
*/
public class AutoItX {
/**
* The AutoItX Component.
*/
protected ActiveXComponent autoItX;
/**
* Maximizes the specified window.
*/
public final static int SW_MAXIMIZE = 3;
/**
* Minimizes the specified window and activates the next top-level window
* in the Z order.
*/
public final static int SW_HIDE = 0;
/**
* Activates and displays the window. If the window is minimized or maximized
* the system restores it to its original size and position.
* An application should specify this flag when restoring a minimized window.
*/
public final static int SW_RESTORE = 9;
/**
* Activates the window and displays it in its current size and position.
*/
public final static int SW_SHOW = 5;
/**
* Sets the show state based on the SW_ value specified by the program
* that started the application.
*/
public final static int SW_SHOWDEFAULT = 10;
/**
* Activates the window and displays it as a maximized window.
*/
public final static int SW_SHOWMAXIMIZED = 3;
/**
* Activates the window and displays it as a minimized window.
*/
public final static int SW_SHOWMINIMIZED = 2;
/**
* Displays the window as a minimized window. This value is similar to
* SW_SHOWMINIMIZED except the window is not activated.
*/
public final static int SW_SHOWMINNOACTIVE = 7;
/**
* Displays the window in its current size and position. This value is
* similar to SW_SHOW except the window is not activated.
*/
public final s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-29 02:40 autoitx4java-master\
文件 2644 2015-07-29 02:40 autoitx4java-master\README.md
目录 0 2015-07-29 02:40 autoitx4java-master\dist\
文件 45321 2015-07-29 02:40 autoitx4java-master\dist\AutoItX4Java.jar
文件 1141 2015-07-29 02:40 autoitx4java-master\dist\LICENSE.txt
目录 0 2015-07-29 02:40 autoitx4java-master\dist\javadoc\
文件 802 2015-07-29 02:40 autoitx4java-master\dist\javadoc\allclasses-fr
文件 782 2015-07-29 02:40 autoitx4java-master\dist\javadoc\allclasses-nofr
目录 0 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\
文件 287082 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\AutoItX.html
目录 0 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\class-use\
文件 5542 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\class-use\AutoItX.html
文件 915 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\package-fr
文件 5728 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\package-summary.html
文件 5388 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\package-tree.html
文件 5287 2015-07-29 02:40 autoitx4java-master\dist\javadoc\autoitx4java\package-use.html
文件 15774 2015-07-29 02:40 autoitx4java-master\dist\javadoc\constant-values.html
文件 5129 2015-07-29 02:40 autoitx4java-master\dist\javadoc\deprecated-list.html
文件 9561 2015-07-29 02:40 autoitx4java-master\dist\javadoc\help-doc.html
目录 0 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\
文件 7027 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-1.html
文件 10174 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-10.html
文件 11419 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-11.html
文件 6562 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-12.html
文件 25443 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-13.html
文件 6271 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-2.html
文件 36111 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-3.html
文件 7436 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-4.html
文件 6460 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-5.html
文件 7572 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-6.html
文件 9562 2015-07-29 02:40 autoitx4java-master\dist\javadoc\index-files\index-7.html
............此处省略11个文件信息
- 上一篇:基于mvc模式的登录验证
- 下一篇:MQTT相关java代码实现
评论
共有 条评论