自动化任务
Automating a task
我想自动执行一项非常简单的任务。
我所做的只是从名为 "solmetric pv analyzer." 的应用程序导出投影文件,但我需要执行大约 100 次。
不确定此信息是否有帮助,但为了导出项目,我需要将它们加载到程序中,然后“文件”->“导出整个系统的跟踪”。
我会使用 AutoHotKey 之类的东西,但是文件的大小差异很大,所以导出时间也一样,我不希望它对每个文件都等待这么长时间。
最重要的是,我在处理能力有限的计算机上卡在 windows XP 上。
Windows XP SP2
1 GB 内存
看看流程,如果我必须这样做 - 我会使用 Sikuli。它对用户非常友好
automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.
并且非常符合您的硬件要求
Windows XP SP2 1 GB RAM
因为它只需要 about 200MB memory 就可以启动。一旦你创建了你的脚本,我相信执行将花费更少的时间。
旨在获得完整答案 - 您甚至可以通过 PowerShell/batch 文件安排脚本的执行。以下是您可以使用的 CLI arguments:
usage:
Sikuli-IDE [--args <arguments>] [-h] [-r <sikuli-file>] [-s] [-t <sikuli-file>]
--args <arguments> specify the arguments passed to Jython's sys.argv
-h,--help print this help message
-r,--run <sikuli-file> run .sikuli or .skl file
-s,--stderr print runtime errors to stderr instead of popping up a message box
-t,--test <sikuli-file> run .sikuli as a unit test case with junit's text UI runner
我想自动执行一项非常简单的任务。 我所做的只是从名为 "solmetric pv analyzer." 的应用程序导出投影文件,但我需要执行大约 100 次。
不确定此信息是否有帮助,但为了导出项目,我需要将它们加载到程序中,然后“文件”->“导出整个系统的跟踪”。
我会使用 AutoHotKey 之类的东西,但是文件的大小差异很大,所以导出时间也一样,我不希望它对每个文件都等待这么长时间。
最重要的是,我在处理能力有限的计算机上卡在 windows XP 上。
Windows XP SP2 1 GB 内存
看看流程,如果我必须这样做 - 我会使用 Sikuli。它对用户非常友好
automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.
并且非常符合您的硬件要求
Windows XP SP2 1 GB RAM
因为它只需要 about 200MB memory 就可以启动。一旦你创建了你的脚本,我相信执行将花费更少的时间。
旨在获得完整答案 - 您甚至可以通过 PowerShell/batch 文件安排脚本的执行。以下是您可以使用的 CLI arguments:
usage:
Sikuli-IDE [--args <arguments>] [-h] [-r <sikuli-file>] [-s] [-t <sikuli-file>]
--args <arguments> specify the arguments passed to Jython's sys.argv
-h,--help print this help message
-r,--run <sikuli-file> run .sikuli or .skl file
-s,--stderr print runtime errors to stderr instead of popping up a message box
-t,--test <sikuli-file> run .sikuli as a unit test case with junit's text UI runner