How to i make a .bat that targets a program and types in a text box

后端 未结 3 1398
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 05:48

I have no idea where to start on this one. I have seen answers that are like this but I don\'t know how to format them for what I want. I just need to target the minecraft serv

3条回答
  •  余生分开走
    2021-01-26 06:48

    Batch files can't do this without calling out to something else; if you're going to call to something else, use AutoHotkey - that's what it's good at.

    WinActivate "the title of the Minecraft server window"

    https://www.autohotkey.com/docs/commands/WinActivate.htm

    Send stop{Enter}

    https://www.autohotkey.com/docs/commands/Send.htm

提交回复
热议问题