 
 ; Reload script with Alt+F5
 !F5::
-	showSplashAlways("Reloading bot...", 1)
-	Reload
+	global scheduleReload := true
+	handleScheduledReload()
 return
 
 ; Speed run loop.
 ; Use to farm Hero Souls
 ^F1::
-	mode := hybridMode ? "hybrid" : "speed"
-	showSplashAlways("Starting " . mode . " runs...")
-	loop
-	{
-		getClickable()
-	    sleep % coinPickUpDelay * 1000
-		initRun()
-		if (activateSkillsAtStart) {
-			activateSkills(speedRunStartCombo[2])
-		}
-		speedRun()
-		if (hybridMode) {
-			deepRun()
-		}
-		if (saveBeforeAscending) {
-			save()
-		}
-		ascend(autoAscend)
-	}
+	loopSpeedRun()
 return
 
 ; Deep run.


#Include *i ch_bot_settings.ahk

if (useConfigurationAssistant) {
	configurationAssistant()
}

clientCheck()

; -----------------------------------------------------------------------------------------
; -- Hotkeys (+=Shift, !=Alt, ^=Ctrl)

	scrollDown(times)
}

loopSpeedRun() {
	global

	mode := hybridMode ? "hybrid" : "speed"
	showSplashAlways("Starting " . mode . " runs...")
	loop
	{
		getClickable()
		sleep % coinPickUpDelay * 1000
		initRun()
		if (activateSkillsAtStart) {
			activateSkills(speedRunStartCombo[2])
		}
		speedRun()
		if (hybridMode) {
			deepRun()
		}
		if (saveBeforeAscending) {
			save()
		}
		ascend(autoAscend)
		handleScheduledReload(true)
	}
}

; All heroes/rangers are expected to "insta-kill" everything at max speed (i.e. around
; 7 minutes per 250 levels). Only the last 2-3 minutes should slow down slightly.
speedRun() {
