mIRC Home    About    Download    Register    News    Help

Print Thread
mirc server $scid ? #182426 09/08/07 12:31 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
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?

Last edited by pouncer; 09/08/07 12:31 PM.
Re: mirc server $scid ? [Re: pouncer] #182427 09/08/07 12:47 PM
Joined: Feb 2005
Posts: 342
R
Rand Offline
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
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
}

Re: mirc server $scid ? [Re: Rand] #182428 09/08/07 12:52 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
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?

Last edited by pouncer; 09/08/07 12:53 PM.
Re: mirc server $scid ? [Re: pouncer] #182429 09/08/07 01:01 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.

Re: mirc server $scid ? [Re: SladeKraven] #182430 09/08/07 01:04 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
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!

Re: mirc server $scid ? [Re: pouncer] #182431 09/08/07 01:52 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You'll just have to use an /echo

change
Code:
raw privmsg #torn :hi
to
Code:
echo -t #torn $+(<,$me,>) hi


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: mirc server $scid ? [Re: xDaeMoN] #182432 09/08/07 01:59 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
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.

Re: mirc server $scid ? [Re: pouncer] #182433 09/08/07 02:20 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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