Modify

Opened 7 years ago

Closed 7 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 by TicketCleanup, 7 years ago

Version: 3.3.14.5

Automatic ticket cleanup.

comment:2 by Melba23, 7 years ago

Milestone: 3.3.15.1
Owner: set to Melba23
Resolution: Completed
Status: newclosed

Changed by revision [12164] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain Melba23.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.