Perfect...that worked!

 Code:
$tmr = $System.Timer
$tmr.Tick = "CheckProcess()"
$tmr.Interval = 1000
$tmr.Start


and then...

 Code:
Function CheckProcess()
  If Not Exist($PIDFile)
     $Form1.Hide
  EndIf
EndFunction


Thanks!