mIRC Home    About    Download    Register    News    Help

Print Thread
#151613 19/06/06 04:24 PM
Joined: Jun 2006
Posts: 2
C
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jun 2006
Posts: 2
Okay, possibly the simplest (dumbest) question ever, but I am new and fragile, so go easy on me. wink

i am looking for a way to pass commands to a dcc chat window. in other words, i would like to have a way to, for example, set a popup.ini command so i can click on a name, start a dcc chat and send a couple scripted messages to that chat.

any hints or pointers in the right direction would be massively appreciated. thanks!

#151614 19/06/06 05:46 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
on 1:DCCSERVER:Chat:{ msg =$nick msghere }

thats if im not mistaken..


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#151615 19/06/06 06:30 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
(for a standard dcc chat window) <a href="Hello://msg" target="_blank">Hello://msg</a> =$nick Hello =$nick (as a simple popup example


Those who fail history are doomed to repeat it
#151616 19/06/06 08:54 PM
Joined: Jun 2006
Posts: 2
C
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Jun 2006
Posts: 2
hmmm okay, looked at those two tid bits and i realize that i wasn't very clear. they both work, but i don't think that is exactly what i'm trying to do.

here's the scenario. when i am in a channel i want to be able to right click on a username for the variable, but send a couple commands to another account.

for example, i right-click on "JoeUser" in the user list for the channel #friendsofmine. from the popup menu i select "Set Reminder" which
1: starts a dcc chat with the account "mycalendar"
2: sends the message "JoeUser was here" to that dcc chat
3: closes the dcc chat

now that's not exactly what i'm trying to accomplish with this, but that's the part i'm having trouble with. i know how to open the dcc chat with passing the selected username as the string, it's scripting the auto-msg into it.

if there was someway to do it completely behind the scenes, not even opening a window, just piping the commands together, that would be the best since i don't really need to see the output, it is being captured by the target account.

thanks again guys!

#151617 19/06/06 09:28 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
ok, if you're looking to start a dcc with one user and user another user's nickname as the "data name", maybe try something like this:

/dcc chat mycalendar | /msg =mycalendar $1 was here | /whatever-your-close-dcc-alias/command-is

Does that help?


Those who fail history are doomed to repeat it
#151618 19/06/06 11:24 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
i think its more likely

dcc chat mycalendar
.timer 1 10 if ($chat(mycalender).status == active) msg =mycalendar $1 was here
.timer 1 11 if ($chat(mycalender)) close -c mycalender

#151619 20/06/06 06:57 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
yeah, I know there's the close command but I wasnt sure if they had a custom one or not hence the command name smile Also, that script was off the top of my head


Those who fail history are doomed to repeat it
#151620 21/06/06 10:02 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
oh i was just refering to the fact that you cant issue the msg command directkly following the dcc chat, sicne it wont have completed opening yet.

#151621 21/06/06 11:16 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
ah, gotcha


Those who fail history are doomed to repeat it

Link Copied to Clipboard