Jump to content

New in AutoIt, need help to automatize a server!


Recommended Posts

Well, I am pretty sure this is possible. I have seen many solutions for this, but I couldn't understand how to configurate it.

I have a Minecraft CraftBukkit server, but I want to automatize it a bit. Something like this:

10:00: Wake up pc from hybernating, and start 2 servers (they have both this CMD "gui").

After starting: Type 'save-all' (without the quotes) in both CMD's every 15 minutes until 13:00

13:00: Type 'broadcast Restarting server!' in both CMD's

13:02: Type 'stop' in both CMD's

13:04: Press the ENTER button in both CMD's, wait 5 seconds and restart the pc.

After restart: Start both servers.

After starting: Type 'save-all' in both CMD's every 15 minutes until 16:00

16:00: Type 'broadcast Restarting server!' in both CMD's

16:02: Type 'stop' in both CMD's

13:04: Press the ENTER button in both CMD's, wait 5 seconds and restart the pc.

After restart: Start both servers.

After starting: Type 'save-all' in both CMD's every 15 minutes until 20:00

20:00 Type 'broadcast Restarting server!' in both CMD's

20:02 Type 'stop' in both CMD's

20:04: Press the ENTER button in both CMD's, wait 5 seconds and restart the pc.

After restart: start both servers.

After starting: Type 'save-all' every 15 minutes in both CMD's until 01:00

01:00 Type 'broadcast STOPPING SERVER!' in both CMD's

01:02 Type 'stop' in both CMD's

01:04 Press the ENTER button in both CMD's, wait 5 seconds and set the pc to hybernate, and repeat the sequence (the pc wakes up at 10:00 again).

What I would like, is a clear optin/config in the beginning of the file or something where I can set when the server should start and stop (e.g $start=10:00; $stop=01:00) and when it should restart (e.g $restart=13:00;16:00;20:00) if that is possible.

If anyone can make a script like that for me, then I would be very happy. I have never used AutoIt before, I was just recommended by a friend about it.

-CasterAnd

Link to comment
Share on other sites

  • Moderators

CasterAnd,

Welcome to the AutoIt forum. :)

The Forum Rules prohibit the automation of game servers - so this thread will now be locked. ;)

However, I am not a gamer and I have asked another Mod who is to confirm that your request does indeed fall foul of the rules - if it does not it will be reopened. ;)

If anyone can make a script like that for me

But even if it is reopened, I must warn you that we do not write scripts to order. Think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers, so we will expect you do some work yourself. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

This is against the forum rules. As already mentioned you won't get any help if you just want somebody to write a script for you. However, what you want shouldn't be all that hard. You've already broken the main problem down into a discrete series of smaller problems so begin to solve them one at a time and before long you will have your script. Indeed the "send command" part is generic enough that once it is solved once it's just a matter of passing different input to send other commands.

Thread remains locked. Should you choose to learn the language and need help make sure you are very clear on our rules before you post again.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...