首页 > 解决方案 > 有没有办法根据文件资源管理器中的文件选择将击键输入到 Internet Explorer 中运行的 Web 应用程序中

问题描述

我正在运行 Windows 10 的计算机上通过扫描输入存款。

扫描具有直接的命名约定:

$<amount>_<check#>_YYYY-MM-DD_<invoice ID>_<other number>_<name and notes>.pdf

我想将当前选择的文件名解析为变量,然后将它们作为击键发送到在 Internet Explorer 中运行的应用程序中;

<alt>
n
p
<tab>
<amount>
<tab>
<check#>
<tab>
<tab>
MM/DD/YYYY
click on a specific interface element to move to the next block
<tab>
<invoice ID>
<alt>
r
<alt>
a
<alt>
f
s
<alt>
f
x

什么是适合这种自动化的工具?在 Mac 上我只使用 AppleScript,但我没有看到任何明显适合的东西。候选人包括 pywinauto、Powershell 和 Autohotkey --- 不确定我是否可以安装其他人,因为 Powershell 已安装且可用。

编辑:

示例文件名:

$25_000123456_2020-11-02_1234567_9994321_John Q Public.pdf

此时桌面上唯一的浏览器是 Internet Explorer。

标签: powershellautohotkeypywinauto

解决方案


推荐阅读