::间接的用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
)
自动化操控手机APP 延伸功能你懂的!