该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
首先把开服用的bat文件编辑下 在里面加入 'title 服务器' 一条
例子: @ECHO OFF
color b
title 服务器
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"D:\java6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
PAUSE
下面就是脚本了
//下面的指令“”里写你开服用的bat文件路径
RunApp "E:\TDDOWNLOAD\mc\1.3.2服务器端\运行服务器.bat"
Delay 5000
Hwnd = Plugin.Window.Find(0, "管理员: 服务器")
//下面是重启时间默认的是1小时
Delay 3600000
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,89)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,86)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,84)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,84)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,73)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,78)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,101)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,77)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay 300000
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,86)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,189)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,76)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,76)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay 5000
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,89)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,86)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,32)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,69)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,84)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,65)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,82)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,84)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,83)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,84)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,79)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,80)
Delay 500
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay 60000
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay 5000