autoit - 无法运行基本示例 autoit 脚本
问题描述
我用 AutoIt 编译了下面的脚本并创建了 .exe 文件。但是,当我运行它时它不会启动(只需在右下屏幕闪烁一秒钟然后消失)。知道为什么吗?
脚本示例复制自:AutoIt General Help and Support Forum
#include <IE.au3>
Opt("MouseCoordMode", 2)
Opt("WinTitleMatchMode", 4)
$hWnd = WinGetHandle("AutoIt Script Home Page - Windows Internet Explorer")
;WinWait($hWnd)
;If Not WinActive($hWnd) Then WinActivate($hWnd)
;WinWaitActive($hWnd)
; WINDOW IS NOT ACTIVE!!
sleep(1000)
ControlClick($hWnd, "", "Internet Explorer_Server1", "left", 1, 722, 125) ;;;;Opens The forum
; Does not Work when NOT active!!
;even statusbar only works when active
$status=StatusbarGetText($hWnd)
ConsoleWrite($status&@LF)
解决方案
推荐阅读
- laravel - Laravel 刀片式喷射流脚手架有两个 @if 语句和三个 @endif 语句。这怎么可能?
- c++ - 在 getter 和 setter 中通过引用传递 std::string
- r - 如何将地理距离矩阵添加到 igraph 网络?
- javascript - Javascript - 从 unibet 抓取的赔率 - 如何 decript hascode
- sql - 需要帮助来制作可执行的优化 sql 查询
- java - 在 WINDOWS 10 上启动 hive 时出现 Java SLF4J 警告
- oracle-sqldeveloper - 有没有办法限制默认列宽?
- python - 公会不是在获取频道功能中定义的吗?
- java - 使用 Gson 遍历 Json 文件
- sql-server - 如何从 Visual Studio 中创建的 DACPAC 项目中排除数据库触发器?