Global messaging and action

By Gemster on Feb 20, 2010

Hi, this little dialog i made is for you to be able to send a message to all chans and all servers that you are on, also sends an action to all chans and all servers that you are on.

The simple /amsg and /me only sends the message/action to all chans that your are on in the active server. Not all servers.

I done a little research and was very supprised on how many ppl did not know how or the command to send global messages/actions to all servers and chans that you are on(even me).

So this dialog will help with that

To add, copy and paste into a new remotes window (alt+r)
to use, right click in any chan, query or status and you will see "Global Messaging"

Have fun,
Gemster

menu channel,menubar,query,status {
Global Messaging:/dialog -m gsm gsm }

dialog error {
  title "Error"
  size -1 -1 88 39
  option dbu
  text "Please enter a Message in the provided edit box.", 1, 8 8 73 15, center
  button "OK", 2, 35 24 20 10, ok
}
dialog error1 {
  title "Error"
  size -1 -1 88 39
  option dbu
  text "Please enter an Action in the provided edit box.", 1, 8 8 73 15, center
  button "OK", 2, 35 24 20 10, ok
}
dialog gsm {
  title "Global Server Messaging"
  size -1 -1 184 88
  option dbu
  box "Send a message to all chans and all servers that you are on", 1, 8 4 169 39
  edit "- Enter Global Message Here -", 2, 16 15 154 10, autohs
  button "send", 3, 75 28 33 10
  box "Send an action to all chans and all servers that you are on", 4, 8 45 169 39
  edit "- Enter Global Action Here -", 5, 16 56 154 10, autohs
  button "send", 6, 75 69 33 10
}

on *:dialog:gsm:sclick:3:{ if ($did(2) == $null) { dialog -m error error }
  else { scid -a amsg $did(2) }
}
on *:dialog:gsm:sclick:6:{ if ($did(5) == $null) { dialog -m error1 error1 }
  else { scid -a ame $did(5) }
}

Comments

Sign in to comment.
raccoon   -  Feb 27, 2010

Because it's faster in the long run.

If you are going to type a message, you are already resigned to placing two hands on the keyboard. If that's so, you might as well learn the keyboard commands involved with sending messages in different ways.

Most people know the /me command for sending actions; no dialog needed. It is learned once and memorized through repetition. I suggested above the creation of the alias /a as a shortcut to /scon -a that should be similarly easy to remember especially through repetitious use.

/a ame is king of the world! -- Send to all servers, to all channels, who is king.

 Respond  
sunslayer   -  Feb 27, 2010

@racoon how is what you suggested any different from using a dialog, which btw would probably be faster because your method would require you to search through the list to find the command and then enter the command, whereas Gemster's all you need to do is open a dialog

 Respond  
tv3636   -  Feb 27, 2010

Amazingly Windows and Mac are widely used...it probably has nothing to do with their use of windows over text commands.

Not everyone looking at scripts on this site is a scripter, many are just regular mIRC users who want to find scripts to make things easier or perform cool functions they wouldn't know how to write on their own.

/scon -a isn't exactly common knowledge, so this dialog makes global actions possible for those who wouldn't otherwise know how to do them.

 Respond  
raccoon   -  Feb 27, 2010

so that's why dialogs are so fashionable these days? because kiddies can't remember their own aliases and commands?

I would think that reaching for the mouse and having to click click click around would be more hassle than typing a slash [/] command wherever you are chatting. If memory is a problem, you can create a reference list dialog, or print a reference list on paper, so you can look up what commands are available.

menu channel,menubar,query,status {
Command List: {
  echo 4 -a Available Commands are: /a, /b, /c
  echo 4 -a Type /info <cmd> for usage information.
} }
 Respond  
Gemster   -  Feb 27, 2010

raccoon the point of a dialog is simple, you dont need to remeber commands and it works from a click of a button.

All scripts, all dialogs, all codes are made to make life easyer and us lazy.

 Respond  
raccoon   -  Feb 22, 2010

Why use dialogs at all?
What's so hard about typing:

/scon -a amsg SPAM SPAM BAKED BEANS SPAM!

If you want, create the alias:

/a scon -a $$1-

Then type things like:

/a server
/a nick Dorkus
/a ame is back!
 Respond  
napa182   -  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  
sunslayer   -  Feb 20, 2010

instead of having 2 diff error dialogs, you can /did -ra error 1 error_here
also just a shortcut but instead of $did(2) == $null, !$did(2) works as well

 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.