使用命令行/批处理切换到/专注于应用程序 [英] Using command line/batch to switch to/focus on app
问题描述
我可以在cmd上使用命令来切换到/聚焦于选定的应用程序窗口吗?
Is there an command i can use on cmd to switch to/focus on selected app window?
可以说我有三个应用程序在工作:A,B,C,目前我专注于B.是否有命令(不是快捷方式)切换到应用程序A/专注于应用程序A?
Lets say i have three apps working: A, B, C and currently i m focused on B. Is there a command (not shortcut) to switch to/focus on app A?
也许我可以批量处理吗?
Maybe can i do it with batch?
我正在Windows上工作.
Im working on windows.
推荐答案
尝试使用 sendKeys.bat :
call sendkeys.bat "Title A" ""
第一个参数是要切换到的标题的开头(如果是 Some Title
,则只能使用 Some
,这是唯一的).参数是空的双引号.通常,脚本用于将键发送到特定窗口.但是,如果您留下第二个参数,例如"
,它将不会发送任何键.
The first argument is the beginning of the title you want to switch to (if it is Some Title
you can use only Some
it is is unique enough).Second argument are empty double quotes.
In general script is used to send keys to a particular window.But if you left the second parameter like ""
it will not send any keys.
这篇关于使用命令行/批处理切换到/专注于应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!