• Visit Rebornbuddy
  • Any way to start automatically after Tuesday Maintenance?

    Discussion in 'Honorbuddy Forum' started by mrballs, Aug 14, 2017.

    1. mrballs

      mrballs New Member

      Joined:
      Jul 25, 2017
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      1
      Hey guys, sorry if this is a simple solution and I'm just not seeing it, but I'm having trouble getting the bot to run on Tuesdays after maintenance. The thing is, I have to leave for work during the downtime and can't tell the bot to start up after maintenance until I get home.

      I've tried using HBRelog and it will try to log in a few times during realm down and then stop.

      Is there any way to get it to wait and then log in after maintenance is done?
       
    2. Travizaros

      Travizaros New Member

      Joined:
      Aug 15, 2017
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      1
      Download Teamviewer on your PC and Phone, control PC from phone when not at home.
       
    3. Aion

      Aion Well-Known Member Buddy Store Developer

      Joined:
      Jan 18, 2011
      Messages:
      3,907
      Likes Received:
      105
      Trophy Points:
      63
      Since a few years, we cannot check anymore if the WoW servers are up or under maintenance. For this, if im not wrong, we needed unique developer identifier from dev.battle.net to be able to queue the battle.net API online.
       
    4. Beltic

      Beltic Member

      Joined:
      May 4, 2014
      Messages:
      196
      Likes Received:
      5
      Trophy Points:
      18
      no offense man, but running the tool unmonitored is very dangerous for the health of your account..
       
    5. mh66

      mh66 Community Developer

      Joined:
      Jun 21, 2016
      Messages:
      1,050
      Likes Received:
      64
      Trophy Points:
      48
      This is the AutoIt script I am using to solve this issue:

      PHP:
      #include <INet.au3>
      #include <Misc.au3>
      #include <Date.au3>

      Opt("TrayIconHide"1)

      Local $dll DllOpen("user32.dll")
      Local $_wow "World of Warcraft"
      Local $_checkTime _NowCalc()
      Local $_checkInterval 2
      Local $_activeCount 
      0
      Local $_winActive 
      WinActive($_wow)
      Local $_timeNoSync _NowCalc()
      Local $_noSyncInterval 300
      Local $_timeLog 
      _NowCalc()

      while 
      true

      ; <!-- WoW -->
         if 
      WinActive($_wow) <> $_winActive then
             
      If _DateDiff('s'$_checkTime_NowCalc()) < $_checkInterval Then
                 $_activeCount 
      += 1
             
      Else
                 
      $_activeCount 0
             
      EndIf

             
      $_checkTime _NowCalc()
             
      $_winActive WinActive($_wow)
         EndIf

         if 
      ProcessExists("hbrelog.exe") == or (ProcessExists("hbrelog.exe") and ProcessExists("wow.exe") and ProcessExists("honorbuddy.exe")) Then
             $_timeNoSync 
      _NowCalc()
         EndIf

         
      Local $_deltaNoSync _DateDiff('s'$_timeNoSync_NowCalc())
         if 
      $_activeCount >= 10 or (ProcessExists("hbrelog.exe") and $_deltaNoSync >= $_noSyncIntervalThen
             
      if $_activeCount >= 10 then
                 $_activeCount 
      0
             
      EndIf

             if 
      ProcessExists("hbrelog.exe") and _DateDiff('s'$_timeNoSync_NowCalc()) >= $_noSyncInterval Then
                 $_timeNoSync 
      _NowCalc()
             EndIf

             
      ProcessClose("hbrelog.exe")
             
      ProcessClose("honorbuddy.exe")
             
      ProcessClose("wow.exe")

             While 
      ProcessExists("hbrelog.exe") <> 0
                 Sleep
      (50)
             
      WEnd

             Run
      ("L:\WoW\HB\_HBRelog\hbrelog.exe /autostart")
         EndIf

         if 
      _IsPressed("72",$dll) AND _IsPressed("12",$dllthen
             ProcessClose
      ("hbrelog.exe")
         EndIf
      ; <!-- 
      // WoW -->

      WEnd


      DllClose
      ($dll)
      What it does:
      - in case hbrelog.exe is running, it will check if wow.exe and honorbuddy.exe are running as well
      - in case those 3 processes haven't been running at the same time for about 5 minutes, HBRelog gets terminated and started again with checked profile
      - if HBRelog is stuck in a loop causing wow window to continuosly being activated, HBRelog gets terminated and restartes as well

      This way you won't have any downtimes
      In case HBRelog is stuck withing a loop, ALT+F3 will terminate it immediately
       
      Last edited: Aug 16, 2017

    Share This Page