I am not sure what you are asking for if i understendt you right you want to detect if text in editbox was changed if it is so
Code:
  
$did(yourdialog,Id).edited would return $true/$false