ResultVariable
When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.
See also: Related Actions
Application.Sleep
OverviewExamples
Application.Sleep ( number Time )
De s cr ip t ion
Causes the application to sleep for a desired period of time.
Note: While sleeping, the application will not respond to mouse movements, clicks, or key presses.
P arame t er s
Time
(number) The time to sleep, in milliseconds.
Tip: 1000 milliseconds = 1 second
Re t u r n s
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions
Au d i o
Audio.GetCurrentPos
OverviewExamples
number Audio.GetCurrentPos ( number Channel )
De s cr ip t ion
Retrieves the current time position of an audio channel, in seconds.
P arame t er s
Channel
(number) The audio channel to get the current time of:
CONSTANT |
VALUE DESCRIPTION |
|
CHANNEL_BACKGROUND |
5 |
Background audio channel. |
CHANNEL_EFFECTS |
0 |
Effects channel (used for mouse over, down, and click sounds). |
CHANNEL_NARRATION |
6 |
Narration channel (used for voice overs). |
CHANNEL_USER1 |
1 |
User channel 1. |
CHANNEL_USER2 |
2 |
User channel 2. |
CHANNEL_USER3 |
3 |
User channel 3. |
CHANNEL_USER4 |
4 |
User channel 4. |
Re t u r n s
(number) The current position of the audio in seconds. If an error occurs, -1 will be returned. You can use
Application.GetLastError to determine whether this action failed, and why.