用批处理模拟按键

2024-12-26 04:27:03
推荐回答(2个)
回答1:

::间接的用vbs代码实现:
@echo off
for %%i in (1,2) do (
>tmp.vbs echo set x=createobject^("wscript.shell"^)
>>tmp.vbs echo x.run "%%i.exe",1
>>tmp.vbs echo wscript.sleep 3000
::上面是等待程序启动好,界面出现.
>>tmp.vbs echo x.sendkeys "%%s"
>>tmp.vbs echo x.sendkeys "s"
cscript //nologo tmp.vbs & del tmp.vbs
)

回答2:

自动化操控手机APP 延伸功能你懂的!