Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.yieldTime
Syntax
Player.yieldTime(delayValue)
Parameters
delay is an integer.
Action
Give processor time to other applications.
Returns
True.
Examples
with Player « ", attributes" was required in 1.0x but is optional in 1.1
while getWindowAttribute(1, name) equals "Progress"
yieldTime(60)
Notes
- This verb is most useful when an application is running a compute-intensive task that must be completed before the script continues. See the new "many ways to wait" example scripts for details.
- If only Player is running, the delay represents "ticks" (60ths of a second). With compute-intensive apps running (the usual case), it might be much longer. Each "tick" that Player yields gives the app a chance to use the processor. Once the app grabs the processor, it will generally use much more than 1/60 of a second.
- In many ways, this verb is the opposite of setForcedYield(...); this gives time from Frontier to other apps, setForcedYield(...) forces another app to yield the processor to Frontier and Player.
- This verb has a similar effect as repeated calls to Frontier's sys.systemTask() verb.
See Also
Player.setForcedYield
Player.getItemInfo
Player.getMenuInfo
Player.getWindowInfo
Player.getItemAttribute
Player.getMenuAttribute
Player.getWindowAttribute
Player.buttonExists
Player.checkboxExists
Player.itemExists
Player.menuExists
Player.popupExists
Player.radioExists
Player.windowExists
Keywords
delay[1] version1.03
help
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.