Hi, @Markus Freitag
Set timer example:
You can put KillTimer in OnTimer event.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Is it your intent to use a timer to poll for the completion of some event?
It's hard to answer. Are you dissatisfied with the timer you are currently using?
SetTimer parameter uElapse: The time-out value, in milliseconds.
Sample: Using Timers