<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://hotline.ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_GUICreateTimer</id>
		<title>Core Function GUICreateTimer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_GUICreateTimer"/>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;action=history"/>
		<updated>2026-04-05T19:09:57Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=4354&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=4354&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=4353&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=4353&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:51Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:40, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=1547&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; GUICreate( &quot;Timer&quot;, &lt;gui object&gt;, &lt;Interval&gt; ) &lt;/pre&gt;  === Description ===  Create a Timer  === Parameters ===  ==== gui object ====  The GUI object to place the button on....&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_GUICreateTimer&amp;diff=1547&amp;oldid=prev"/>
				<updated>2011-12-15T03:56:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; GUICreate( &amp;quot;Timer&amp;quot;, &amp;lt;gui object&amp;gt;, &amp;lt;Interval&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Create a Timer  === Parameters ===  ==== gui object ====  The GUI object to place the button on....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
GUICreate( &amp;quot;Timer&amp;quot;, &amp;lt;gui object&amp;gt;, &amp;lt;Interval&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Create a Timer&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== gui object ====&lt;br /&gt;
&lt;br /&gt;
The GUI object to place the button on.&lt;br /&gt;
&lt;br /&gt;
==== interval ====&lt;br /&gt;
How many miliseconds between the timer link execute.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns the new GUI object.&lt;br /&gt;
&lt;br /&gt;
Failure: Returns 0 if error occurs.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
The timer will execute its code totally independent of all other code (Same as every other Link code)&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Create the GUI&lt;br /&gt;
$GUI = GUICreate(&amp;quot;Window&amp;quot;, &amp;quot;Hello&amp;quot;, 200, 200);&lt;br /&gt;
// Show the GUI&lt;br /&gt;
GUILoad( $GUI );&lt;br /&gt;
// Create a Timer&lt;br /&gt;
$Timer = GUICreate(&amp;quot;Timer&amp;quot;, $GUI, 100);&lt;br /&gt;
// Create a button&lt;br /&gt;
$Button = GUICreate(&amp;quot;Button&amp;quot;, $GUI, 8, 8);&lt;br /&gt;
// Link timer to a function&lt;br /&gt;
GUILink($Timer, &amp;quot;Tick&amp;quot;, 'TimerTicky($me);');&lt;br /&gt;
// Link button to a function&lt;br /&gt;
GUILink($Button, &amp;quot;Click&amp;quot;, 'ButtonClicky($me);');&lt;br /&gt;
// Start the timer&lt;br /&gt;
GUITimer($Timer, &amp;quot;Start&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Keep the GUI running as long as long as the window is open&lt;br /&gt;
While ( GUIStatus( $GUI ) ) DoEvents( );&lt;br /&gt;
 &lt;br /&gt;
Function TimerTicky( $me )&lt;br /&gt;
{&lt;br /&gt;
	println(&amp;quot;Ticky is: &amp;quot; . $me);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Function ButtonClicky( $me )&lt;br /&gt;
{&lt;br /&gt;
	// Toggle the timer on/off&lt;br /&gt;
	if(GUITimer($Timer, &amp;quot;Status&amp;quot;))&lt;br /&gt;
	{&lt;br /&gt;
		GUITimer($Timer, &amp;quot;Stop&amp;quot;);&lt;br /&gt;
		println(&amp;quot;Timer Stopped&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		GUITimer($Timer, &amp;quot;Start&amp;quot;);&lt;br /&gt;
		println(&amp;quot;Timer Started&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>