Hello everyone, now that my bot works i want to have a script that restarts bot and path of exile every two hours.can someone pls tell me how this is done ?
i know i need AHK but what do i need to to? ive seen a script here but how do i get this to work?
Loop {
Process, Close, PathOfExile.exe ; close existing instances
Process, Close, ExiledBot.exe
sleep, 1000 * 5
run C:\*\PathOfExile.exe ; re-open
sleep, 1000 * 50 ; delay for poe to load
run C:\*\ExiledBot.exe
WinWait, Exiled Bot (Elite)
WinActivate, Exiled Bot (Elite) ; Make sure were on exiled bot screen
sleep, 500 ; small delay
Send {TAB 3} ; Tabbing to start button
Send {Enter}
WinMinimize, Exiled Bot (Elite)
sleep, 3600000 * 2 ; Sleep until next restart (hours)
}