AdlibEnable: Difference between revisions
Jump to navigation
Jump to search
m (BrokenLinks(FunctionList): ...) |
(Added note regarding that this function has been replaced.) |
||
Line 1: | Line 1: | ||
NOTE: As of 3.3.4.0 AdlibEnable/AdlibDisable were replaced with AdlibRegister/[[AdlibUnRegister]]no. | |||
[http://www.autoitscript.com/forum/topic/115139-adlibenable-func-dont-work/ See reference forum topic] | |||
Adlib'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. | Adlib'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. | ||
Revision as of 11:03, 21 June 2014
NOTE: As of 3.3.4.0 AdlibEnable/AdlibDisable were replaced with AdlibRegister/AdlibUnRegisterno. See reference forum topic
Adlib's functionality is like that of combining Sleep with Call in that a function will be called after so many milliseconds.
Syntax
AdlibEnable("func"[, time])
Parameters
func | Name of function to be called. |
time | Time in milliseconds till next func call. Default 250ms. (Optional) |
Return Value
None.
Example
Local $x = 0, $y Func myFunction() $y = MsgBox(1,"Count the boxes",$x,1) ; timeout in 1 second if $y = 2 then Exit ; exit on cancel $x += 1 AdlibEnable(myFunction(),1000) ; call this function again in 1 second EndFunc myFunction()
Related Functions
[[AdlibDisable]] [[Call]] [[Sleep]]