mIRC Home    About    Download    Register    News    Help

Print Thread
#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.
Joined: Feb 2005
Posts: 342
R
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
}

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.
Joined: Dec 2002
Posts: 3,547
S
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.

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!

Joined: Mar 2005
Posts: 420
X
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!
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.

Joined: Oct 2005
Posts: 1,741
G
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


Link Copied to Clipboard