added check for scripteclipse and removed unused and added usage of clipwaitfortext function
added ClipWaitForText