Caster Posted June 17, 2012 Posted June 17, 2012 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
Moderators Melba23 Posted June 17, 2012 Moderators Posted June 17, 2012 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 meBut 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Valik Posted June 17, 2012 Posted June 17, 2012 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.
Recommended Posts