I had the problem with it not reading "ingame" also. I tried to fix it, I changed the x1,y1 x2,y2 cooridinates a bit and nothing still.
What I ended up doing to get it to run forever without reading "ingame" was I deleted that whole section and put a 15 second sleep time instead. So now mine hits start game then waits 15 seconds and continues (click quest guy and leaves game". 15 seemed to be plenty of time for me even if I had some lag.
Really really Barney simple work around for now
Code:
Func Startgame()
ToolTip("Starting Game",0,0)
MouseClick( "left", $resumex1, $resumey2 )
Sleep( 15000 )
Questing()
EndFunc
Func Questing()
ToolTip("Go talk to Cain",0,0)
MouseClick( "Left", $cainx, $cainy )
Sleep( 4000 )
Quitgame()
EndFunc
Temporary fix, but works like a charm.