The moment I could be sure I was in ear-shot, I yelled out; 'Hey there! Hello! Hey there!'
When I knew that they would hear me, I shouted out. 
mnli hypothesis: When I knew that they would hear me, I shouted out.  premise: The moment I could be sure I was in ear-shot, I yelled out; 'Hey there! Hello! Hey there!'