I am trying to have a progress bar start in one of my scripts. The thing is that i do not want to have to use a button to start it.I would like it to start automatically. I have search the kixforms forums and other places and i still do not understand this. Here is the Code
code:
Break On

$frmForm = CreateObject("Kixtart.Form")
$frmForm.Width = 320
$frmForm.Height = 100
$frmForm.Caption = "Backup In Progress"
$frmForm.Center

$prgProgressBar1 = $frmForm.ProgressBar("",10,10,294,20)


$frmForm.Show

While $frmForm.Visible
$=Execute($frmForm.DoEvents())
Loop

Exit 1

Function fnCommandButton1_Click()
$cmdCommandButton1.Enabled = False
For $lProgress = 0 to 100
$prgProgressBar1.Value = $lProgress
Sleep 0.1
Next
$cmdCommandButton1.Enabled = True
EndFunction