• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Trying to write a autoit crash restart script

    Discussion in 'Archives' started by plzrepeat, Aug 8, 2016.

    1. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      Hi, I trying to write a crash detect restart poe exe and Exilebuddy with autoit. I need someone to point me to the right direction.
      Will donate donate if this is possible. Please pm me.
       
      Last edited: Aug 8, 2016
    2. lchmingcn

      lchmingcn New Member

      Joined:
      Dec 16, 2015
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
    3. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      Last edited: Aug 8, 2016
    4. fabcard

      fabcard Member

      Joined:
      Nov 7, 2013
      Messages:
      131
      Likes Received:
      1
      Trophy Points:
      18
      I need some like that as well.
      I let the bot working overnight and when I wake up I notice it is still working only once out of 4 times. It's very frustrating when I come to see the bot progress and the game is stuck at logging screen...
      If some one please could share a autoit/relogger (here or pm), it would be very appreciated.
      Thanks.
       
    5. replicate

      replicate Member

      Joined:
      Aug 25, 2015
      Messages:
      307
      Likes Received:
      4
      Trophy Points:
      18
      What's wrong with this?
      [​IMG]
       
      Last edited: Aug 8, 2016
    6. codyst

      codyst Member

      Joined:
      Dec 6, 2012
      Messages:
      76
      Likes Received:
      0
      Trophy Points:
      6
      That doesn't start PoE.exe or EB.exe if they crash.
       
    7. Unknown Buddy

      Unknown Buddy Member

      Joined:
      May 20, 2015
      Messages:
      603
      Likes Received:
      17
      Trophy Points:
      18
      Since you are writing it yourself and just need pointers, you can start here: https://www.thebuddyforum.com/tankleader-forum/tankleader-support/73252-simple-relogger-autoit.html

      Its an autoit relogger for World of Tanks. I briefly looked at it and it should be really easy to convert to PoE. Everything is there to create a relogger via autoit for Exilebuddy / PoE.
       
    8. replicate

      replicate Member

      Joined:
      Aug 25, 2015
      Messages:
      307
      Likes Received:
      4
      Trophy Points:
      18
    9. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      How did you get it work? if I may ask

      so far, I've gotten this to start poe and exilebuddy automatically.

      Send("#r") ;
      Sleep(2000) ; sleep 2000 ms. 2000 milisecond equals to 2 second
      Send("C:\PathofExile\PathOfExile.exe") ; send keyboard strokes
      Sleep(1000)
      Send("{ENTER}") ; send enter
      Sleep(8000)
      Send("#r") ; Open "RUN" dialog ( "Windows key" + "r" )
      Sleep(2000) ;
      Send("D:\Exilebuddy\EB 0.2.4385.200\EB.exe") ;
      Sleep(1000)
      Send("{ENTER}") ; send enter
      Sleep(2000)
      Send("^r")
      Sleep(18000)
      MouseClick("left",857,132)

      I need a coder to check if POE and Exilebuddy is running and restart em on crash.
       
      Last edited: Aug 10, 2016
    10. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      I don't understand that in 2016 people still don't know how to google things

      https://www.autoitscript.fr/autoit3/docs/functions/ProcessExists.htm
       
    11. DontBeAfraid

      DontBeAfraid Active Member

      Joined:
      Oct 2, 2015
      Messages:
      742
      Likes Received:
      30
      Trophy Points:
      28
    12. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
    13. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Here goes 10mn of my life :

      http://puu.sh/qwrz3/12f774c9a3.txt

      sample script to restart poe only on crash, edit paths & delay you want.

      Working for single clients only, might derp if more are running (2 on same OS... ofc)

      restarts if window is closed or hanging, press ESC to exit script
       
      Last edited: Aug 10, 2016
    14. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      Thank you so much. but where do I add the restart bot part of the program?
       
      Last edited: Aug 10, 2016
    15. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      Here's my log:
       

      Attached Files:

      Last edited: Aug 11, 2016
    16. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      You're not starting EB in its working directory, process the same way as how poe is set up
       
    17. plzrepeat

      plzrepeat Member

      Joined:
      May 14, 2013
      Messages:
      271
      Likes Received:
      0
      Trophy Points:
      16
      Can anyone tell me what's wrong with this script with some programming knowledge? POE starts, but Exilebuddy doesn't.


      /nvm got it. Thanks Tony.
       
      Last edited: Aug 12, 2016
    18. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Consider embedding the code betwee
      Code:
      [ /code] :) also, your working directory is wrong.
       
    19. botelho

      botelho Member

      Joined:
      Nov 13, 2013
      Messages:
      279
      Likes Received:
      12
      Trophy Points:
      18
      Lets not reinvent the wheel.

      Download this - Download Restart on Crash (google it)

      Set to restart the POE client using this launch option --nopatch
      Set to restart EB client using this launch option --autostart
       
    20. yfbd

      yfbd New Member

      Joined:
      Jun 16, 2016
      Messages:
      132
      Likes Received:
      0
      Trophy Points:
      0
      Progress will never be made if you keep thinking of not re-inventing the wheel. I'm working on teleportation instead of wheels. Progress I say, progress.
       

    Share This Page