Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.setMouseDelay
Syntax
Player.setMouseDelay(delay)
Parameters
delay is an integer.
Action
Sets the delay within or between individual mouse actions.
Returns
True.
Examples
Player.setMouseDelay(5) « a small delay usually suffices
Player.setMouseDelay(0) « maximum speed
Player.setMouseDelay(20) « for dragging on a slow machine
Player.setMouseDelay(Player.defaultMouseDelay) « reset
Notes
- By default, Player includes a small delay (2) to ensure that applications "notice" Player's mouse operations.
- If an application doesn't recognize Player's click or drag, setting a higher delay will usually fix the problem.
- Setting a mouse delay will not pause a script; see the yieldTime verb.
- This setting affects all verbs that use the mouse, including clicking on a named button and even an invisible click in the menubar used for the menu verbs. It remains in effect until changed or until a reboot.
- Scripters with slower machines may want to modify defaultMouseDelay and use it to reset back to a normal speed that works for them.
- There is no way to alter the default (other than to execute this verb when Frontier starts up).
- The delay units are approximately "ticks" (60ths of a second), though the value is not intended to be exact.
See Also
Player.clickMouse
Player.clickSequence
Player.dragMouse
Player.dragSequence
Player.setTypingDelay
Player.yieldTime
Keywords
settings[2] preferences mouse
setTargetWindow
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.