R. E. Cook
Home 
Contact Us 

Dr. Cook
Resume 

RunningShoes Library for WinRunner 
RunningShoes 

Custom WinRunner Functions 
and Utilities,
to Your Specs
Custom 

A Random Collection of WinRunner Solutions
Solutions 

Creating DLLs for WinRunner 
"DLLs Demystified" 
(Mercury Interactive's Worldwide Users Conference 2000)

Sending repeated keystrokes to the AUT.

 

RepeatKeys() will send any keystroke or keystroke combination the specified number of times. We've used it to tab to a field, to page down several times, and to press Enter repeatedly to back out of a menu tree.

RepeatKeys(in keystroke, in repetitions);

For example, to tab 5 times:

RepeatKeys("<kTab>", 5);

RepeatKeys() calls the type() statement, so the same constraints on characters that apply to the type() statement also apply to RepeatKeys(). See the online help for type() for handling these 6 characters:  + - < > \ "

The code is in a text file to avoid the usual browser mangling. View RepeatKeys.txt.



Top of  This Page | R. E. Cook Home Page

Copyright R. E. Cook Consulting, 2000 - 2011.
All rights reserved.

The site is designed to look best when viewed with Internet Explorer 5.0 - 8.0. Results with other browsers will probably deviate from what is intended.

NOTE: This website refers to registered trademarks and service marks that are owned by other companies, including Mercury Interactive, WinRunner, TestDirector, TSL, Microsoft, Windows.