Break On
$System = CreateObject("Kixforms.System")
If Not $System
$nul= MessageBox("KiXforms.Net Not Initiated. This Script Will Now Close.","Error",16)
Quit()
EndIf
$nul = $System.Application.EnableVisualStyles
$Form1 = $System.Form()
$Form1.ControlBox = 0 ;false
$Form1.StartPosition = 1
$Form1.Size = $System.Size(301,102) ;(Width,Height)
$Form1.Text = "Form1"
$Label1 = $System.Label()
$Label1.BorderStyle = 1 ;FixedSingle
$Label1.Left = 10
$Label1.Text = "Hello, please wait for the proccess to complete."
$Label1.Top = 20
$Label1.Width = 260
$nul = $Form1.Controls.Add($Label1)
$Form1.Show ;Displays the Form
StartNotepad()
While $Form1.Visible
$Nul = Execute($Form1.DoEvents())
Loop
Exit 0
Function StartNotepad()
;use Run to start notepad and continue to the next command
;Run "Notepad.exe"
;Use Shell to start notepad, wait for notepad to close and continue to the next command
Shell "Notepad.exe"
Sleep 10
Quit
EndFunction