Jump to content

Mirc Theme Alignment...


Kronicdreamer

Recommended Posts

I Personally love Aligned themes... even if the colors are horrid :P 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 by Kronicdreamer
Link to comment
Share on other sites

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

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

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

  • 1 month later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...