M, That's more than most can do, including those that are 10x the cost of SGP. Nice thought though ;}
There is an Altitude property for a telescope object. For now, maybe a simple script called in SGP sequencer. I'll have to check, but if the scope has already slewed to target and is calling the first event, the script has to terminate before it continues. If you chose a start time when it was dark, I think it would start imaging when the scope passed (in this case) 40 deg or did nothing for 5 hours. The ABSolute function is for Southern Hemisphere folks.
set scope = createobject(telescope name)
scope.connected = true
altitude = 40 ' degrees
timeout = 0
condition = false
Do until condition
condition = timeout > 300 or abs(scope.altitude) > altitude
wscript.sleep 60000 ' 1 min
timeout = timeout + 1
loop
scope.connected = false
I quickly tried this in a Maxim sequence with simulators and it worked