以全屏模式启动批处理文件 [英] start batch file in fullscreen mode
问题描述
如何以全屏模式启动批处理文件?我知道以前曾问过这个问题,但实际上并没有回答.
How can I start a batch file in full-screen mode? I know that this question was asked before, but it wasn't actually answered.
不幸的是,我不了解逆向工程,所以我无法反编译代码.
unfortunately, I don't know reverse engineering, so I cant decompile the code.
这是我测试过的东西:
@if (@CodeSection == @Batch) @then
@echo off
rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
start cmd.exe
%sendkeys% "(%{enter})"
goto :EOF
@end
// JScript section
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));
这个想法是,它会启动一个cmd窗口,并且(代码%sendkeys% "(%{enter})"
的这一部分)应该模拟用户按下[alt] + [enter].但这是行不通的.
The idea is that it starts a cmd window, and (this part of the code %sendkeys% "(%{enter})"
) is supposed to simulate the user pressing [alt] + [enter]. But it doesn't work.
我编写了一个小的c#工具,将alt + enter发送到cmd窗口,但是我正在寻找一种内部方法.
I wrote a little c# tool to send an alt+enter to the cmd window, but I'm looking for an internal method.
推荐答案
如果"Alt-Enter"的sendkeys
参数应为%{enter}",则此行:
If sendkeys
parameter for "Alt-Enter" should be "%{enter}", then this line:
%sendkeys% "(%{enter})"
...应该没有括号,并且缺少一个百分号.试试:
... should have not parentheses and there is one percent sign missing. Try:
%sendkeys% "%%{enter}"
在 查看全文