Chat Assistant
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 4.5 (of 2 scores) |
| Date Added | Jul 02, 2007 |
| Last Updated | Jul 25, 2007 |
| Tags | assistant chat dialog friends list talk |
Description
~Chat Assistant v1.3~
This dialog is for sending and recieving messages to and from nicks.
The option is in Channel Popup and Nicklist Popup
It tells you which message is from which nick and which messages you sent to which nicks...if that makes sense.
It also has a listbox friends list with add and remove friends functions. If you click a friend's name it will appear in the "Nick editbox.
You can type a message and click "Send" and it will be sent to the nick in "Nick".
If the "Nick" editbox is empty when you recieve a message, that nick will appear in the editbox.
Auto Chat Assistant: When Switched on, this function will automatically open the Dialog when you get a PM.
Background Chat Assistant: When switched on this will block your PM's, send an optional specified Auto-Reply and log the messages you get with the Sender and Time whenever you don't have the dialog open, if you have unread logged messages, you can click a button and have them appear in the Messages box, the log file will then clear itself.
Partial credit to Bouncer, who provided part of the dialog while asking for help in the forum, so Thankyou Bouncer.
Please leave any thoughts or feedback you have. Thanks
This dialog is for sending and recieving messages to and from nicks.
The option is in Channel Popup and Nicklist Popup
It tells you which message is from which nick and which messages you sent to which nicks...if that makes sense.
It also has a listbox friends list with add and remove friends functions. If you click a friend's name it will appear in the "Nick editbox.
You can type a message and click "Send" and it will be sent to the nick in "Nick".
If the "Nick" editbox is empty when you recieve a message, that nick will appear in the editbox.
Auto Chat Assistant: When Switched on, this function will automatically open the Dialog when you get a PM.
Background Chat Assistant: When switched on this will block your PM's, send an optional specified Auto-Reply and log the messages you get with the Sender and Time whenever you don't have the dialog open, if you have unread logged messages, you can click a button and have them appear in the Messages box, the log file will then clear itself.
Partial credit to Bouncer, who provided part of the dialog while asking for help in the forum, so Thankyou Bouncer.
Please leave any thoughts or feedback you have. Thanks
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 2:15 pm
Posted on Jul 2, 2007 2:15 pm
Well, I added it. I didnt quite get its purpose, but, i sent a message, it popped up in the messages box. Seems fine. Then I tried adding a freind. Added him, he popped up in the list, but the edit box where ive typed his name in, was not wiped (use .did -r $dname id).
Then when I tried removing him it resulted in:
* /write: insufficient parameters (line 64, script.ini)
(I had not typed anything into the box, i thought clicking his name and press delete would be enough...)
also, when I tried opening it when it was already open, it returned in:
* /dialog: 'message' name in use (line 22, script.ini)
theres no check to make sure the same buddy wasnt added twice.
Try learning how to use -b and -e switches.
And $devent == edit.
If so, you would be able to disable and enable the buttons until the person types anything into thebox, and by then avoid the *Invalid information*
Same with remove etc.
Simply, some errors and the dialog could be improved alot.
try using:
if ($did == id) { }
elseif ($did == id) { }
instead of
on *:dialog:message:sclick:15: {
etc..
Anyhow, 3/10.
Then when I tried removing him it resulted in:
* /write: insufficient parameters (line 64, script.ini)
(I had not typed anything into the box, i thought clicking his name and press delete would be enough...)
also, when I tried opening it when it was already open, it returned in:
* /dialog: 'message' name in use (line 22, script.ini)
theres no check to make sure the same buddy wasnt added twice.
Try learning how to use -b and -e switches.
And $devent == edit.
If so, you would be able to disable and enable the buttons until the person types anything into thebox, and by then avoid the *Invalid information*
Same with remove etc.
Simply, some errors and the dialog could be improved alot.
try using:
if ($did == id) { }
elseif ($did == id) { }
instead of
on *:dialog:message:sclick:15: {
etc..
Anyhow, 3/10.
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 3:29 pm
Posted on Jul 2, 2007 3:29 pm
I think I covered everything you said, as far as my testing showed, no buttons are enabled unless all editboxes involved in the command are filled, all text is whiped after it's corresponding button is clicked no matter what the outcome, and now no name that already exists in the file is added to the file or the listbox, i combinded all the sclick events into one on dialog and the option to open the dialog won't function if the dialog is already open. I have not come across any error messages.
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 3:36 pm
Posted on Jul 2, 2007 3:36 pm
If you think there is anything else I could improve don't hesitate to post it, i'll get right on it tomorrow when i'm back on, cya.
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 4:58 pm
Posted on Jul 2, 2007 4:58 pm
menu channel,nicklist {
Chat Assistant:message
}
alias message {
if (( %dialog.message == on )) halt
dialog -mdo message message | set %dialog.message on
}
use:
dialog $iif($dialog($dname),-v,-mdo) dname dname
Chat Assistant:message
}
alias message {
if (( %dialog.message == on )) halt
dialog -mdo message message | set %dialog.message on
}
use:
dialog $iif($dialog($dname),-v,-mdo) dname dname
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 5:01 pm
Posted on Jul 2, 2007 5:01 pm
Also use for the -b/-e switches:
did $iif($did(ID),-e,-b) $dname id
Sorry for the doubble post.
Otherwhize I suppose this script is good and easy to use for newbies :)
4/10
did $iif($did(ID),-e,-b) $dname id
Sorry for the doubble post.
Otherwhize I suppose this script is good and easy to use for newbies :)
4/10
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 5:13 pm
Posted on Jul 2, 2007 5:13 pm
Instead of on *:dialog:message:sclick:*: and the same for edit and init, use
on *:dialog:message:*:*: {
if ( $devent == init ) {
commands
}
elseif ( $devent == sclick ) {
if ( $did == <number> ) {
commands
}
elseif ( $did == <number> ) {
commands
}
}
elseif ( $devent == edit ) {
if ( $did == <number> ) {
commands
}
}
}
Also you can use $devent for a menu to: if ( $devent == menu ) {
on *:dialog:message:*:*: {
if ( $devent == init ) {
commands
}
elseif ( $devent == sclick ) {
if ( $did == <number> ) {
commands
}
elseif ( $did == <number> ) {
commands
}
}
elseif ( $devent == edit ) {
if ( $did == <number> ) {
commands
}
}
}
Also you can use $devent for a menu to: if ( $devent == menu ) {
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 5:52 pm
Posted on Jul 2, 2007 5:52 pm
yes, if youd read my post(s), ive alredy mentioned that :P
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 6:08 pm
Posted on Jul 2, 2007 6:08 pm
Ahh sorry. I thought I only read an example for sclick, so I thought I would explain further. But now I see you did explain it for all events. My bad. :)
mIRC Snippet:
Chat Assistant
Posted on Jul 2, 2007 7:30 pm
Posted on Jul 2, 2007 7:30 pm
Its alright hehe, a little further explenation isnt bad either ;)
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 9:05 am
Posted on Jul 3, 2007 9:05 am
Updated the code, it still functions exactly the same but I put all the dialog events into 1 event, and used the $iif for the check if the dialog is already open and to enable/disable controls. I plan to add extra things soon =)
Thanks for the advice guys.
Thanks for the advice guys.
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 10:01 am
Posted on Jul 3, 2007 10:01 am
Your welcome Callison1 and the coding looks better now. I will let you knwo if I can think of any other things to help. I should be done with my PM Dialog soon. Unsure if I will paste it here yet or not, but maybe we could compare notes on it. You have some good ideas. 5/10
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 11:26 am
Posted on Jul 3, 2007 11:26 am
A feature I have in mine that you may want to add, is to have it open the dialog when someone PM's you. Otherwise if someone PM's you it opens the PM window. Just an idea :)
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 1:44 pm
Posted on Jul 3, 2007 1:44 pm
Thanks bouncer.
I added an option the the Channel Popup Menu to turn Auto Chat Assistant on and off, when switched on, when you get a PM it opens the dialog box. When switched off, you recieve the pm in a query window like normal.
I added an option the the Channel Popup Menu to turn Auto Chat Assistant on and off, when switched on, when you get a PM it opens the dialog box. When switched off, you recieve the pm in a query window like normal.
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 1:54 pm
Posted on Jul 3, 2007 1:54 pm
| Code: |
menu channel,nicklist { Chat Assistant .Open:message .Auto Chat Assistant ..On: noop $input(Auto Chat Assistant is $iif(%autochatassistant == on,already on,now on),o,Auto Chat Assistant) | set %autochatassistant on ..Off: noop $input(Auto Chat Assistant is $iif(%autochatassistant == on,now off,already off),o,Auto Chat Assistant) | unset %autochatassistant } |
Long and usless code, imo. Use:
| Code: |
menu channel,nicklist { Chat Assistant .Open: message .Auto Chat Assistant ..$iif(%autochatassistant == on,Off,On): set %autochatassistant $iif(%autochatassistant == on,off,on) | noop $input(Auto Chat Assistant is $iif(%autochatassistant == on,now on,now off),o,Auto Chat Assistant) } |
No offense though ;P
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 2:12 pm
Posted on Jul 3, 2007 2:12 pm
Thanks Lindrian, Updated, I also changed where I had put -m instead of -mdo
mIRC Snippet:
Chat Assistant
Posted on Jul 3, 2007 2:21 pm
Posted on Jul 3, 2007 2:21 pm
Once again, your welcome :)
mIRC Snippet:
Chat Assistant
Posted on Jul 4, 2007 6:06 am
Posted on Jul 4, 2007 6:06 am
Updated again, now with Logging system that blocks and records PM's and optionally sends a specified Auto-Reply to the sender, when you open the dialog you can click a button and any recorded messages will appear in the box, oh yea and a link to hawkee :p
mIRC Snippet:
Chat Assistant
Posted on Jul 25, 2007 3:04 am
Posted on Jul 25, 2007 3:04 am
Small ammendment, the Chat Box now uses the 'read' function, so it is grey with black text and can't be edited.
mIRC Snippet:
Chat Assistant
Posted on Jul 27, 2007 8:20 am
Posted on Jul 27, 2007 8:20 am
It's alright but /msg and /notice work fine for me.
mIRC Snippet:
Chat Assistant
Posted on Jul 27, 2007 8:31 am
Posted on Jul 27, 2007 8:31 am
I really only made this to help me learn about dialogs. Thanks for the comments.
mIRC Snippet:
Chat Assistant
Posted on Jul 27, 2007 8:38 am
Posted on Jul 27, 2007 8:38 am
/me wishes he had a mouse so he could use the chat assistant :D
BTW how are you callison?
BTW how are you callison?
mIRC Snippet:
Chat Assistant
Posted on Jul 27, 2007 1:51 pm
Posted on Jul 27, 2007 1:51 pm
I'm fine, I really would recommend you buy a mouse.








