<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.autoitscript.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hhzz</id>
	<title>AutoIt Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.autoitscript.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hhzz"/>
	<link rel="alternate" type="text/html" href="https://www.autoitscript.com/wiki/Special:Contributions/Hhzz"/>
	<updated>2026-04-21T11:19:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.autoitscript.com/w/index.php?title=AdlibEnable&amp;diff=12509</id>
		<title>AdlibEnable</title>
		<link rel="alternate" type="text/html" href="https://www.autoitscript.com/w/index.php?title=AdlibEnable&amp;diff=12509"/>
		<updated>2014-06-21T11:03:53Z</updated>

		<summary type="html">&lt;p&gt;Hhzz: Added note regarding that this function has been replaced.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;NOTE: As of 3.3.4.0 AdlibEnable/AdlibDisable were replaced with AdlibRegister/[[AdlibUnRegister]]no.&lt;br /&gt;
[http://www.autoitscript.com/forum/topic/115139-adlibenable-func-dont-work/ See reference forum topic]&lt;br /&gt;
&lt;br /&gt;
Adlib&#039;s functionality is like that of combining {{Help File|Sleep}} with {{Help File|Call}} in that a function will be called after so many milliseconds.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
 AdlibEnable(&amp;quot;&#039;&#039;func&#039;&#039;&amp;quot;[, &#039;&#039;time&#039;&#039;])&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;func&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Name of function to be called.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;time&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Time in milliseconds till next &#039;&#039;func&#039;&#039; call. Default 250ms. (Optional)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Return Value=&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Local $x = 0, $y&lt;br /&gt;
&lt;br /&gt;
Func myFunction()&lt;br /&gt;
  $y = MsgBox(1,&amp;quot;Count the boxes&amp;quot;,$x,1)  ; timeout in 1 second&lt;br /&gt;
  if $y = 2 then Exit  ; exit on cancel&lt;br /&gt;
  $x += 1&lt;br /&gt;
  AdlibEnable(myFunction(),1000)  ; call this function again in 1 second&lt;br /&gt;
EndFunc&lt;br /&gt;
&lt;br /&gt;
myFunction()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Related Functions=&lt;br /&gt;
&amp;lt;nowiki&amp;gt;[[AdlibDisable]] [[Call]] [[Sleep]]&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hhzz</name></author>
	</entry>
</feed>