Core Function GUITimer

From Sputnik Wiki
Jump to: navigation, search
GUITimer( <timer> )

Contents

Description

Properties & Functions specifically for Timer

Parameters

timer

The Timer GUI object to use.

Functions

Start

Start a timer

GUITimer($Timer, "Start");

Stop

Stop a timer

GUITimer($Timer, "Stop");

Status

Find out if a timer is running or not

// Toggle the timer on/off
if(GUITimer($Timer, "Status"))
{
	GUITimer($Timer, "Stop");
	println("Timer Stopped");
}
else
{
	GUITimer($Timer, "Start");
	println("Timer Started");
}

GetInterval

Get the timers interval between each link execute

$Interval = GUITimer($Timer, "GetInterval");

SetInterval

Set the timers interval between each link execute

GUITimer($Timer, "SetInterval", 300);

Example

Go see GUICreate( "Timer" ) for example.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox