mIRC Home    About    Download    Register    News    Help

Print Thread
#122869 16/06/05 05:15 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
if i am located on status window or in #channel-2 and i need something to SAY to #channel-1 throught script how do i do that? /msg and /say dont do that :?

#122870 16/06/05 05:26 PM
A
Abuser__
Abuser__
A
you mean like that?

/msg #channel message

smile

#122871 16/06/05 05:31 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
yes but it wont work for me frown

and i tried with /remote off and still wont ...

#122872 16/06/05 06:01 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Try /[color:red]!msg #channel-1 Hello[/color], if it works then you have a /msg alias overriding the default.

#122873 16/06/05 06:32 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
i have this

/msg {
if ($server = $null) { /errorecho Can't send messages while disconnected from server ! | halt }
else { /.msg $1- }
}


but it still should work :0

#122874 16/06/05 08:12 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
no, you ar calling an alias inside of itself, plus you have used a standard command as the alias
Also you put .msg and with the period (fullstop) it Would send and not show YOU which is what using the . is meant to do.
try it like this
/mmsg {
if ($server = $null) { /errorecho Can't send messages while disconnected from server ! | halt }
else { msg $1 $2- }
}

#122875 16/06/05 10:09 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
in that case i will have to change every command in script that executes /msg for server :tongue:

but nvm... thanks all for help

#122876 17/06/05 06:05 AM
D
DaveC
DaveC
D
Quote:
no, you ar calling an alias inside of itself


There is no problem with that, since an alias well not run itself, the default command is executed instead, no need for a !msg

Quote:
plus you have used a standard command as the alias


Im pretty sure he did that on purpose

Quote:
Also you put .msg and with the period (fullstop) it Would send and not show YOU which is what using the . is meant to do.


That hit the nail on the head! thats his exact problem, hes just not seeing the command entered.

Code:
/msg {
  if (!$server) { /errorecho Can't send messages while disconnected from server ! }
  else { $iif($show,msg,.msg) $1- }
}


* untested but i beleive thats what he wants

#122877 17/06/05 01:30 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
thanks davec laugh
it works great !


Link Copied to Clipboard