Hi all, looking for some help on this problem.
Basicly i have an on text trigger which pops up a dialog
when a certain word (and soon to be action) is said or done
in a channel.
Ok, the dialog pops up when the word away is said, what i want
is a way to get a persons nick in an edit box.
For example my friend Nick1 says he is going away to eat lunch,
and sets his away status
My script then pops up the dialog saying
---------------------------------|
|[ Nick1 ]|
|is away from computer|
----------------------------------|
on 1:text:*away*:#:dialog -m awaynot1 awaynot1
on 1:text:*sleep*:#:dialog -m awaynot2 awaynot2
[color:green];more to come[/color]
dialog awaynot1 {
title ""
size -1 -1 106 17
option dbu
icon 1, 0 0 16 16, mirc.ico, 0
text "is away from computer", 2, 16 10 90 8, center
edit "", 3, 16 0 90 10, read center
}
dialog awaynot2 {
title ""
size -1 -1 106 17
option dbu
icon 1, 0 0 16 16, mirc.ico, 0
text "user is sleeping", 2, 16 10 90 8, center
edit "", 3, 16 0 90 10, read center
}
on *:dialog:awaynot1:init:0:{
did -a $dname 3 [color:red]$1[/color]
}
I checked the code for the did command from both the help file
and another script i have that outputs my ip address and if i
change
$1 to $me or $ip then test the script, i gets either my nick
or my ip address in the edit box but not the nick that triggered the
event
IF i change it back to $1, i have tried $2 and $$1 all to no avail.
Please can somebody help with this, as im really not sure what the command
prefix is ?
If you dont know i`v had trouble with the did command in the past, but i
like it because i find it a useful feature
Thanks
ShadowDemon
mIRC V6.03