자유 게시판

ESC key In Press

2019.02.22 14:41

집앞의_큰나무 조회:821 추천:9

 

  동작 명령이 있긴 있군요

굳이 ESC 안눌러도 되게 했지만,

눌러야 하는상황이 또다시 올까봐

메모차원에서 추가 해봣습니다.

뭐 대략 아래와 같은... 뭔말인지는 잘모릅니다.

 

@if (@CodeSection == @Batch) @then


@echo off

rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"

rem Start the other program in the same Window
start "" /B cmd

%SendKeys% "echo off{ESC}"

 

set /P "=Wait and send a command: " < NUL
ping -n 5 -w 1 127.0.0.1 > NUL
%SendKeys% "echo Hello, world!{ESC}"

%SendKeys% "exit{ENTER}"

goto :EOF

@end


// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));

XE1.11.6 Layout1.4.8