Core Function GUITimer

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> GUITimer( <timer> ) </pre> === Description === Properties & Functions specifically for Timer === Parameters === ==== timer ==== The Timer GUI object to use. === Funct...")
 
m (1 revision)
 
(One intermediate revision by one user not shown)

Latest revision as of 12:37, 14 June 2015

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