napa182 commented on a Page, Global messaging and action  -  Feb 20, 2010

how about using a $input for the errors instead of 2 other dialogs?

maybe something like

noop $input(Please enter a Message in the provided edit box.,uhdo,Message Error)
noop $input(Please enter an Action in the provided edit box.,uhdo,Action Error)

so it would look something like this

on *:dialog:gsm:sclick:*:{ 
  if ($did == 3) {
    if (!$did(2).text) { noop $input(Please enter a Message in the provided edit box.,uhdo,Message Error) }
    else { scid -a amsg $did(2).text }
  }
  if ($did == 6) {
    if (!$did(5).text) { noop $input(Please enter an Action in the provided edit box.,uhdo,Action Error) }
    else { scid -a ame $did(5).text }
  }
}

as well to open ur dialog maybe use

 dialog $iif($dialog(gsm),-v,-m gsm) gsm

so you dont get an error if you try to open it again for some reason

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.