Kronicdreamer Posted September 17, 2008 Report Share Posted September 17, 2008 (edited) I Personally love Aligned themes... even if the colors are horrid and since i have posted SS's of mine, i have had 15+ pple ask me how to align a theme so i will give you the basics. And if you search Google as i did befor i knew how, youll see there isnt any tutorial on manual theme alignment, just mts junk.... so..... Lets start w/ the Alias... alias thalign return $str($chr(160),$calc(15 - $len($nick))) All it is, is $str() w/ $chr(160) "space" , and total of 15 which you can change to align whereever away from the left... 15 - $len($nick) is the 15 total spaces minus the length of the nick talking which aligns everything... also make a timestamp alias which will come in handy if you use one.... alias thtime return $asctime(hh:nn) ok here it is working... on ^*:TEXT:*:#: { echo -i35 # $thtime $thalign $nick **[spacer] $1- halt } -i35 will space any runover on the next line to align w/ the nick from above... It WILL have to change w/ any changes to the total $chr(160)'s to make it align correctly... **[spacer] REPLACE this with : or any symbol so itll break the nick from the persons text ($1-) If you use | either make it a %var or use color code around it or itll break the $1- for the next line which will not work... Next is an example of join/part... Alias... which is a lil different to align these and will work for Quit which youll havta loop to the common channels... alias thjpq return $str($chr(160),14)) on ^*:JOIN:*: { echo # $thtime $thjpq J $nick | halt } This is my 1st Tutorial, so it prolly aint neat nor 100% accurate, but you get the point... On INPUT statement... start w/ alias like always... All is similiar to past alias... alias thme return $str($chr(160),$calc(15 - $len($me))) Here is the on input in action... echo 1st, msg 2nd and theme should work... on &*:INPUT:#: { if (/* !iswm $1) { echo -i35 # $thtime $thme $me **[space] $1- .msg $active $1- halt } } change # to ? and $active to $nick and itll work in Queries.... ***fixed to allow /cmds ** Also will ONLY work w/ fixed width fonts! ** Will edit more in, and extend on whats here later ** Edited September 21, 2008 by Kronicdreamer Link to comment Share on other sites More sharing options...
Kingy Posted September 18, 2008 Report Share Posted September 18, 2008 Hey, thats cool have always wonderd how people have made them. Its been a long time since i've done anything like this and i've fogotten to make the theme work when I type? Its something along the lines of on 1:INPUT:#: { echo -i35 # $thtime $thalign $me : $1- msg # $1- halt } I fully can't remember. Help lol Link to comment Share on other sites More sharing options...
Kronicdreamer Posted September 18, 2008 Author Report Share Posted September 18, 2008 added on input Link to comment Share on other sites More sharing options...
Ozzy10 Posted September 18, 2008 Report Share Posted September 18, 2008 also only works correctly on mono spaced fonts so not all the fonts will work correctly consolas in vista is a new fixed width font Link to comment Share on other sites More sharing options...
Kronicdreamer Posted September 18, 2008 Author Report Share Posted September 18, 2008 i mentioned it.. thanks ozz Windows XP: New Courier Vista .. what ozz mentioned Linux: FreeMono Link to comment Share on other sites More sharing options...
Kingy Posted September 20, 2008 Report Share Posted September 20, 2008 2 questions: When i want to type /join #room or /hop or really anything, now it just messages it to the room instead of doing it? How can i fix this. Secondly as i'm typing now the time says 10:09am when really its actually 10:40am? Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted September 20, 2008 Report Share Posted September 20, 2008 Yeah, that's something he left out. Just do .. on &*:INPUT:#: { if (/* !iswm $1) { echo -i35 # $thtime $thme $me **[space] $1- .msg $active $1- halt } } Link to comment Share on other sites More sharing options...
Kingy Posted September 20, 2008 Report Share Posted September 20, 2008 Thanks X-Fusion, thought it was something like that. I haven't done any theming since the good old msn days! I also figured out the time problem. It should be... alias thtime return $asctime(hh:nn) in mIRC the format for minutes is nn not mm. Seems silly but it is what it is Link to comment Share on other sites More sharing options...
JoshR Posted November 7, 2008 Report Share Posted November 7, 2008 Not all networks have the same nick length, so you must accommodate that. You can do so by retrieving the raw on connect. and using a variable. or a hashtable. Would prefer a hashtable so you can access it quicker. Also, your on INPUT will return the basic mIRC format when using a /command on *:INPUT:*:{ if ($left($1,1) == /) && (!$ctrlenter) { return } else { haltdef !.msg $active $1- echo -ai<# characters to indent> $me $1- } } That should take care of the / problem. Also, to keep it perfectly aligned, i suggest use the i parameter in echo, like i showed in the above. Link to comment Share on other sites More sharing options...
Guest Zantetsuken Posted November 7, 2008 Report Share Posted November 7, 2008 thats some goofy looking coding Lol Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now