Opened 6 years ago
Closed 6 years ago
#3663 closed Feature Request (Completed)
documentation for AdlibRegister()
Reported by: | rudi | Owned by: | Melba23 |
---|---|---|---|
Milestone: | 3.3.15.1 | Component: | Documentation |
Version: | Severity: | None | |
Keywords: | adlibregister. | Cc: |
Description
The documentation for this function should point out, that the fist call of the registered function is not immediately, but after the specified delay time.
Suggestion:
[snip]
Remarks
Every 250 ms (or time ms) the specified "function" is called. The first call is not immediately, but after that time. Typically used to check for unforeseen errors. For example, you could use adlib in a script which causes an error window to pop up unpredictably.
Example code, showing that the first call is *AFTER* the specified intervall:
$start=TimerInit()
AdlibRegister("TestFirstRun",10*1000)
while 1
if TimerDiff($start) > 40*1000 then ExitLoop
WEnd
MsgBox(0,"The End","After " & Round (TimerDiff($start)/1000,3) & " seconds.")
Func TestFirstRun()
MsgBox(0,"TestFirstRun",Round (TimerDiff($start)/1000,3) & " seconds.",1)
EndFunc
Attachments (0)
Change History (2)
comment:1 Changed 6 years ago by TicketCleanup
- Version 3.3.14.5 deleted
comment:2 Changed 6 years ago by Melba23
- Milestone set to 3.3.15.1
- Owner set to Melba23
- Resolution set to Completed
- Status changed from new to closed
Changed by revision [12164] in version: 3.3.15.1
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Automatic ticket cleanup.