如何preSS与批处理文件的关键 [英] How to press a key with batch file

查看:108
本文介绍了如何preSS与批处理文件的关键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有新的批处理文件,我想知道如何自动preSS从批处理文件中的一个关键。
我要特别强调打开一个浏览器和preSS自动Tab键的程序。

Hi I am new with batch file, I want to know how to auto press a key from batch file. I want to make a program that open a browser and press the tab key automatically.

推荐答案

一个用于批处理文件的SendKeys搜索和进一步修改返回类似问题的答案的这个列表:

A search for "batch file sendkeys" and further revision returned this list of answers for similar questions:

  • How to make a batch file to run a hotkey
  • Batch file that changes URL in open browser
  • Press Keyboard keys using a batch file
  • Automatically respond to runas from batch file

下面的批处理文件做你想要什么:

The Batch file below do what you want:

@if (@CodeSection == @Batch) @then
@echo off
CScript //nologo //E:JScript "%~F0"
rem Open the browser here
goto :EOF
@end
WScript.CreateObject("WScript.Shell").SendKeys("{TAB}");

这篇关于如何preSS与批处理文件的关键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆