Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
powerpc

AHK based Client restarter

Recommended Posts

Incase your Poe crashes while you are sleeping, i got this AHK script running

How to use: Place AHK script inside poe folder. Change path if needed.

itc_exe = Path to client file

itc_path = folder that client file is in (and folder you will be working in, place ahk script here)

itc_imagename = poe process name




#SingleInstance, force

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.



iTC_EXE     = C:\Program Files (x86)\Grinding Gear Games\Path of Exile\client.exe

iTC_Path    = C:\Program Files (x86)\Grinding Gear Games\Path of Exile\

iTC_imgName = PathOfExile.exe



loop {

	sleep 45000

	Process, Exist, %iTC_imgName% ; check to see if PoE is running

	If (ErrorLevel = 0) ; If it is not running

	   {

	   Run, %iTC_EXE%, %iTC_Path%, hide

	   }

	Else ; If it is running, ErrorLevel equals the process id for the target program (Printkey). Then do nothing.

	   {

		sleep 5

	   }

}

Share this post


Link to post
Share on other sites

nice work. should add in something for bot crashes too.. where it says exiled bot gui has stopped responding or whatever the msg is.. i havent had it for a week or so..

Share this post


Link to post
Share on other sites

I think the issue with that....is the exiled bot gui doesnt actually close when it gets that error? So my script wouldnt be able to detect that it crashed, think

But maybe it could detect that error box, close the gui, and reopen it...

But im not seeing this issue myself so i dont think ill make it :)

Share this post


Link to post
Share on other sites

basically crashes are that evil since u cant rly detect them.

if a system would be able to detect crashes and handle them they wouldnt been crashes and ur pc would never make problems.

Share this post


Link to post
Share on other sites

jpbot had an awesome script he wrote for stashing.. unsticking.. i used it for a few weeks.. i remember it would restart if exiled bot crashed.. i searched the script and cut and pasted that section of code he wrote.

; --check if eb gui crash !!!

checkEBGuiCrash()

{

global

IfWinNotExist , ahk_pid %EB_PID%

{

IfWinExist, %_name_crashbotgui_win%

{

writeLog(" Bot crash, restarting...................." )

_crash += 1

IniWrite, %_crash%, %A_WorkingDir%\EEB.ini, internal, crash

SetControlDelay -1

PostMessage, 0x201, , , Button1, %_name_crashbotgui_win%

PostMessage, 0x202, , , Button1, %_name_crashbotgui_win%

Sleep 100

restart()

}

Sleep 2000

IfWinExist, %_name_crashbotgui_win%

{

WinKill, %_name_crashbotgui_win% , ,2

Sleep 1000

}

}

}

; --simple restart poe and eb !!!

restart()

{

global

FileAppend, %A_DD%/%A_MM%/%A_YYYY% %A_Hour%:%A_Min%:%A_Sec% Restart Bot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! `n, log_eeb.txt

TrayTip, , Restart Bot !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! , 2

;~ writeLog("Restart Bot !!!!!!!!!!!!!!!!!!!!!!!!!")

quit()

Sleep 15000

Reload

Sleep 1000

return

}

Share this post


Link to post
Share on other sites

Anyone have any idea how to make a backup chicken script to cover bot crashes when playing in a HC league?

I really don't want to leave my bot on overnight in HC due to the risk of it crashing :(

You can run worngusername autoflask ahk script, it also chickens out, when bot has crashed

Share this post


Link to post
Share on other sites

Super secret technique: Use windows task manager to run a .bat file that kills poe every couple hours.

taskkill /im PathOfExile_x64.exe

Set it and forget it!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...