Another Auto-Join :P
mIRC Code
+ 1 likes
Please Register to submit score.
| Average Score | 7.0 |
| Scores Submitted | 3 |
| Date Added | Aug 30, 2007 |
| Last Updated | Sep 04, 2008 |
| Tags | auto join mirc |
|
|
Introduction
Right-click on the channel or go to the menubar and select Auto-Join :) Any comments or ideas would be fantastic! :)
Update 10/2/07: I condensed it a bit more and added a 'Clear' button for all the channels.
Update 5/8/08: Removed the use of a global variable to turn the auto-join on and off. It now uses $group() to check if the group is enabled or not. :)
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 5:40 am
Posted on Aug 31, 2007 5:40 am
on *:CONNECT:{
set %con 1
while (%con <= $lines(ajoin.txt)) {
join $read(ajoin.txt,%con))
inc %con 1
}
}
You don't need to do that:
on *:CONNECT:.play -cs ajoin.txt
You could also expand this script by writing to a different filename for different networks (something like write ajoin. $+ $network $+ .txt $did(2) instead).
If you did that, you could make the connection part be something like this:
on *:CONNECT:.play -cs ajoin. $+ $network $+ .txt
Good idea, Akishoot. :)
set %con 1
while (%con <= $lines(ajoin.txt)) {
join $read(ajoin.txt,%con))
inc %con 1
}
}
You don't need to do that:
on *:CONNECT:.play -cs ajoin.txt
You could also expand this script by writing to a different filename for different networks (something like write ajoin. $+ $network $+ .txt $did(2) instead).
If you did that, you could make the connection part be something like this:
on *:CONNECT:.play -cs ajoin. $+ $network $+ .txt
Good idea, Akishoot. :)
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 6:12 am
Posted on Aug 31, 2007 6:12 am
I'll get to work on it as soon as I can (that would be right now :P). Thanks for the suggestion! :)
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 9:18 am
Posted on Aug 31, 2007 9:18 am
Edit: The list is now saved as .ajoin so you don't accidently lose any channels you have saved.
There is now a Key option. I'm pretty sure you know what this is for. I realized shortly after posting that I couldn't join a channel because of the key :
Each file is saved as $+ $network $+ .ajoin (Thanks Gummo! :D) so you can use it for multiple servers. I'm thinking about adding an Open/Load button so you can edit another servers channel list without actually connecting to that server. (Keyword: thinking :P)
Still working on it. Still looking for any comments/ideas :D
There is now a Key option. I'm pretty sure you know what this is for. I realized shortly after posting that I couldn't join a channel because of the key :
Each file is saved as $+ $network $+ .ajoin (Thanks Gummo! :D) so you can use it for multiple servers. I'm thinking about adding an Open/Load button so you can edit another servers channel list without actually connecting to that server. (Keyword: thinking :P)
Still working on it. Still looking for any comments/ideas :D
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 8:44 pm
Posted on Aug 31, 2007 8:44 pm
Awesome script dude.
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 8:45 pm
Posted on Aug 31, 2007 8:45 pm
I wish I could rate. Why can't I rate yet? 0.o
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 8:54 pm
Posted on Aug 31, 2007 8:54 pm
Dizzle, you need 25 forum posts to rate snippets.
Akishoot, good job, very simple to use.
Akishoot, good job, very simple to use.
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 31, 2007 8:59 pm
Posted on Aug 31, 2007 8:59 pm
Thanks mountaindew :)
mIRC Snippet:
Another Auto-Join :P
Posted on Sep 29, 2007 7:04 pm
Posted on Sep 29, 2007 7:04 pm
Pros:
- efficient and easy to use
- Original =)
Cons:
- Setting unnecessary variables
- Doesn't check if the the dialog is in use when opening.
Use local variables: var %ajs 1 and var %ajd 1. You can also create an alias that opens the dialog: alias aj.open { if (!$dialog(aj)) dialog -md aj aj } <- That's just an example. Sometimes it's easier to type the alias. On average, this is a really nice snippet. Good job.
- efficient and easy to use
- Original =)
Cons:
- Setting unnecessary variables
- Doesn't check if the the dialog is in use when opening.
Use local variables: var %ajs 1 and var %ajd 1. You can also create an alias that opens the dialog: alias aj.open { if (!$dialog(aj)) dialog -md aj aj } <- That's just an example. Sometimes it's easier to type the alias. On average, this is a really nice snippet. Good job.
mIRC Snippet:
Another Auto-Join :P
Posted on Sep 29, 2007 7:41 pm
Posted on Sep 29, 2007 7:41 pm
Edit: I've changed the .set %ajs and %ajd to var %ajs = 1 and var %ajd = 1. I've also added an alias and it checks to see if the dialog is in use.
mIRC Snippet:
Another Auto-Join :P
Posted on Sep 30, 2007 1:35 pm
Posted on Sep 30, 2007 1:35 pm
Looks good.
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 1, 2007 7:10 pm
Posted on Oct 1, 2007 7:10 pm
Suggestions:
*Add a clear all channels button
*I suggest you disable the add button until you typed in the edit box, and when theres nothing in it, disable it again
*Also, u might wanna disable the delete button until you click a channel
*Check if what you inputed begins with #
*Disable key until you type in a channel
*make it
*Add a clear all channels button
*I suggest you disable the add button until you typed in the edit box, and when theres nothing in it, disable it again
*Also, u might wanna disable the delete button until you click a channel
*Check if what you inputed begins with #
*Disable key until you type in a channel
| Code: |
| on *:dialog:aj:sclick:5:{ did -ar aj 2 did -ar aj 10 } |
*make it
| Code: |
| did -r aj 2,10 |
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 5:28 am
Posted on Oct 2, 2007 5:28 am
Thanks for all the suggestions, mountaindew. I'm working on those now, and a few other things. =)
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 8:37 pm
Posted on Oct 2, 2007 8:37 pm
Not quite sure on how to get it to check to see if what you inputed begins with #. I'm still fooling around with the dialog a bit...
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 8:40 pm
Posted on Oct 2, 2007 8:40 pm
It'd probably be along the lines of: if ($left($1,1) iswm $chr(35))
--Roy
--Roy
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 8:41 pm
Posted on Oct 2, 2007 8:41 pm
Just change the $1 to $did(aj,2).text
--Roy
--Roy
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 8:43 pm
Posted on Oct 2, 2007 8:43 pm
Edit: I've disabled the second editbox and the 'Add' and 'Clear' button until you've entered something into the first editbox. I've yet to add the 'Clear All Channels' button, which I'll be adding sometime soon.
I'll also be working on figuring something out for the 'Delete' button and the # thing.
I'll also be working on figuring something out for the 'Delete' button and the # thing.
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 8:51 pm
Posted on Oct 2, 2007 8:51 pm
Or you could also try, I'm a little fuzzy on this,
if ($left($did(aj,2).text,1) != $chr(35)) write $+($network,.,ajoin,.,txt) $+($chr(35),$did(aj,2).text) $did(aj,10).text
else { write $+($network,.,ajoin,.,txt) $did(aj,2).text $did(aj,10).txt }
Just in case someone makes a mistake, it already writes it for them.
--Roy
if ($left($did(aj,2).text,1) != $chr(35)) write $+($network,.,ajoin,.,txt) $+($chr(35),$did(aj,2).text) $did(aj,10).text
else { write $+($network,.,ajoin,.,txt) $did(aj,2).text $did(aj,10).txt }
Just in case someone makes a mistake, it already writes it for them.
--Roy
mIRC Snippet:
Another Auto-Join :P
Posted on Oct 2, 2007 9:18 pm
Posted on Oct 2, 2007 9:18 pm
Edit: You no longer need to put the # before the channel name. Though if you do, it doesn't matter. (Thanks to Roy_ ;)
mIRC Snippet:
Another Auto-Join :P
Posted on Aug 15, 2008 4:46 pm
Posted on Aug 15, 2008 4:46 pm
excellent work akishoot







