html tool

2018年12月17日星期一

AHK cmd run


https://wapiknow.baidu.com/question/547051459.html?entrytime=1545104073339

SetTitleMatchMode 2
dir=c:\WINDOWS
run,cmd
WinWait, ahk_class ConsoleWindowClass,
IfWinNotActive, ahk_class ConsoleWindowClass, , WinActivate, ahk_class ConsoleWindowClass,
WinWaitActive, ahk_class ConsoleWindowClass,
ControlSend, , cd /d %dir% {Enter}, cmd.exe ; 直接发送到命令提示符窗口.要配合SetTitleMatchMode RegEx或SetTitleMatchMode 2

没有评论:

发表评论