powershell - 有没有办法根据文件资源管理器中的文件选择将击键输入到 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。
解决方案
推荐阅读
- java - Java 可以写入/读取已释放的堆外内存吗?
- java - 在 openjdk11 下执行 sonar-maven-plugin 时不支持的类文件主版本 55
- neo4j - 迭代子路径与路径元素
- pandas - 来自延迟 zip csv 的 Dask 数据帧
- r - 估计三种处理的截距和斜率
- dart - chart_flutter - 如何设置 x 轴刻度上的间隔
- ios - iOS Swift - CoreBluetooth 无法发送数据
- regex - 替换为数字时的 Perl 正则表达式替换
- java - 如何将数据添加到 SQLite 数据库中
- vb.net - VB.NET Xor + Mod