PreFab...Player...Documentation...Frontier...User's Guide...Chapter 5, Verbs...One Verb Per Page...

Player.typeText


Syntax

Player.typeText(textOrKeys)


Parameters

textOrKeys is a string of text and/or special keys, concatenated with the "+" operator.


Action

Types the indicated string and/or special keys.


Returns

True.


Examples

Player.typeText("Hello World")
Player.typeText("One" + tab + "Two") « tab is a UserTalk constant
Player.typeText( string(myDocs.letterToMom) ) « type a bunch of text
Player.typeText("One" + Player.downArrow + "Two") « mix text & keys
with Player « ", keys" was required in 1.0x but is optional in 1.1
   typeText(deleteKey) « "standard"
   typeText(upArrow) « "arrows"
   typeText(pageUpKey) « "misc."
   typeText(F12) « "function"
   typeText(keypad1) « "keypad"
with Player « type any number of keys & text in any order
   typeText(F5 + pageDownKey + upArrow + upArrow)
   typeText("One" + downArrow + "Two" + downArrow + "Two")


Errors

Unknown key.


Notes



See Also

Player.typeKeys
Player.typeCombination
Player.setTypingDelay


Keywords

keyboard[1]

| Top |


typeKeys| Prev | Home | Next |windowExists

Updated on 2/5/97 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.