Hi All

I have a KiXForms script that opens up a GUI with 3 buttons to click, but I also have a countdown timer from 5 to 0, and when it hits 0, it will automatically do the function of one of the buttons.

So I have come up with the following, but it does not allow me to click on a button while it is processing the function.

Of course there must me another way, but I need a liitle help

Thanks

Code:

Function Run_Click()
$x=5
Do
Sleep 1
$Panel3.Text = $x
$x = $x - 1
Until $Stop = 1 OR $x = 0
EndFunction