Jump to content
Sign in to follow this  
Shyke

WoW Server Starter

Recommended Posts

I just had an idea for the starting process!

If someone could modify the code so it checks to see if at X=105, Y=207 and the color is Hex=0xFFFF00 or Dec=16776960 then it is a failure and should close the program and restart it and if it isn't that color at that location than leave it run. I don't know how to do this so could someone please modify the latest code so it works with that?

Latest and fastest working code:

Dim $t
HotKeySet("{ESC}", "Terminate")

MsgBox(0, "WoW Server Restarter", "Running WoW server and minimizing..." & @CRLF & "Read read-me for other credits and information!")

Call("Start_WoW")

While 1
    $t = $t + 1
    If $t = 5 Then
        Call("Start_WoW")
        $t = ""
    EndIf
    Sleep(1000)
WEnd

Func Start_WoW()
    If Not ProcessExists ("wowemu.exe") Then
        Run("wowemu.exe", "", @SW_MINIMIZE)
    EndIf
    Sleep(1000)
EndFunc
    
Func Terminate()
    Exit 0
EndFunc
Edited by Shyke

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...