Figure 2 Example Tester Recorded Script /*1 */ // TestRec autogenerated script
/*2 */ // The TInput object.
/*3 */ var tInput = WScript.CreateObject ( "Tester.TInput" ) ;
/*4 */ // The TSystem object.
/*5 */ var tSystem = WScript.CreateObject ( "Tester.TSystem" ) ;
/*6 */
/*7 */ // A general TWindow object.
/*8 */ var tWin ;
/*9 */ // A general child TWindow object.
/*10*/ var tChildWin ;
/*11*/
/*12*/ tInput.AbsoluteScreenCoordinates = true ;
/*13*/
/*14*/ tInput.MultiMonitor = true ;
/*15*/
/*16*/ tSystem.CheckVirtualResolution ( 2432 , 1024 , 0 , 0 ) ;
/*17*/
/*18*/ tWin = tSystem.FindTopWindow ("Notepad", "Untitled - Notepad");
/*19*/ tWin.SetForegroundTWindow ( ) ;
/*20*/ tWin.SetWindowSize ( 377 , 246 , 750 , 669 ) ;
/*21*/ tInput.PlayInput ( "Now is the time for a" ) ;
/*22*/ tSystem.Sleep ( 2.63 ) ;
/*23*/ tInput.PlayInput ( "ll good men to come t" ) ;
/*24*/ tSystem.Sleep ( 3.28 ) ;
/*25*/ tInput.PlayInput ( "o the aid of their co" ) ;
/*26*/ tSystem.Sleep ( 4.64 ) ;
/*27*/ tInput.PlayInput ( "untry!" ) ;
/*28*/ tInput.PlayInput ( "{DBLCLICK LEFT , 592 , 306}" ) ;
Figure 3 Mouse State Processing .gif) |