mIRC Homepage
Posted By: pouncer mirc server $scid ? - 09/08/07 12:31 PM
how do i send data to my server connection? i conect to a server by /server -m <server> <port> and it opens a new server connectio in switchbar

like

raw -q $scid or something? is that right?
Posted By: Rand Re: mirc server $scid ? - 09/08/07 12:47 PM
scid <cid#> echo -s hi

Keep in mind, this is not safe to do.

If you are using this in a remote script, it will double evaluate. For instance, if you have a variable called $no and it returns $me, if you pass it to the //scid, then it'll show your actual nick. So be careful of the data you pass.

A safer way to do this, is to do something like:
Code:
alias passdatato5 {
  ; Changes your command-connection to the $cid "5" 
  scid 5
  ; The following commands are sent to the status window of $cid 5. :p
  echo -s teehee
  echo -s ^^
  ; Resets the command back to your normal server.
  scid -r
}
Posted By: pouncer Re: mirc server $scid ? - 09/08/07 12:52 PM
well when i do /debug @raw i see stuff like this

<- :john!iflsogfjefgh@ial PRIVMSG #torn :hi

how can i send something like that from my scid connection?

i want to send something like:

:pouncer!test@ial PRIVMSG #torn :hello

so it will show on my mIRC channel, but obviously it wont show it in the channel

how do i do it?
Posted By: SladeKraven Re: mirc server $scid ? - 09/08/07 01:01 PM
Using Rand's alias:

Code:
alias passdatato5 {
  scid <id>
  raw privmsg #torn :hi
  scid -r
}


Should work. Do you mean send a message to the channel whilst not currently on it? If you do you need to unset the channel mode +n which will then allow messages from outside the room.
Posted By: pouncer Re: mirc server $scid ? - 09/08/07 01:04 PM
no not that.

I don't want to send anything to the channel. I want to send it to my server connection id, so that on my channel screen it appears as if i typed something to the channel, only on my channel screen though.

hope you understand what i mean now!
Posted By: xDaeMoN Re: mirc server $scid ? - 09/08/07 01:52 PM
You'll just have to use an /echo

change
Code:
raw privmsg #torn :hi
to
Code:
echo -t #torn $+(<,$me,>) hi
Posted By: pouncer Re: mirc server $scid ? - 09/08/07 01:59 PM
nope i dont think you guys understand me.

sorry, im not sure how else to explain it. i want to send the command to my localhost (mirc client connection) so it will display it in the channel.
Posted By: genius_at_work Re: mirc server $scid ? - 09/08/07 02:20 PM
You can't pretend to be the irc server, if that is what you are trying to do. mIRC only accepts real server raws.

-genius_at_work
© mIRC Discussion Forums