I reworked herpderp999's script a bit because Sgather's window and controls often get different class id's after restarting the computer. This version uses the window title and control name instead of class ids. Also it notes the mountfix use in the bots log.
Code:
$wowWindowTitle = "World of Warcraft"
$sGatherWindowTitle = "Nodes :"
$SGatherLogControl = "[NAME:Logs; INSTANCE:1]"
$sGatherMountErrorRegex = "\[BOT\] Mount failed, try unstuck ...\s*\[UNSTUCK\] Let's turn !\s*$"
$sGatherMountFixMessage = "injected Vashjr mountfix (spacebar) to WoW" & @CRLF;
AutoItSetOption("SendKeyDownDelay", 500)
While 1
If WinExists($sGatherWindowTitle) Then
$sGatherLogText = ControlGetText($sGatherWindowTitle,"",$SGatherLogControl)
If StringRegExp ($sGatherLogText, $sGatherMountErrorRegex) Then
If WinExists($wowWindowTitle) Then
ControlSend ($wowWindowTitle, "", "", "{SPACE}", 0)
ControlSetText($sGatherWindowTitle, "", $SGatherLogControl, $sGatherLogText & $sGatherMountFixMessage)
Sleep(10 * 1000)
EndIf
EndIf
EndIf
Sleep(1 * 1000)
WEnd