YesNoOk
avatar

Variables and the message log  (Read 37357 times)

Started by Nightwish, April 26, 2005, 22:52:36

0 Members and 1 Guest are viewing this.
#1
Variables and the message log  |
April 26, 2005, 22:52:36
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
Last Edit: June 28, 2006, 15:28:30 by Nightwish
#2
Re: Variables and the message log  |
April 27, 2005, 07:02:48
I told you it was a good idea and would simplify the options + add a lot of new logging styles :D
#3
Re: Variables and the message log  |
April 27, 2005, 07:14:41
Quote
There are different templates available - normal message or event, group start event, group "inner" event. status change event. Default templates are provided so that not everybody needs to deal with them, also, some of the message log settings (toggle timestamp, nickname etc. are still working - they just force the template parser to "skip" these variables).

What do you think of this :
Instead of forcing the template parser to "skip" these variables maybe they could modify the template edit, i.e. when you check/uncheck the "show nickname" button you search the template edit for %N and remove/add it to the edit.
There's no problem unchecking the button, you just remove %N, the problem would be when adding %N ... where to add it :) - maybe at the start or in some other default position.

The reason i'm suggesting this is that this way you only need to look at the template and see how the log is created, you don't need to look to see if buttons are checked or not.
#4
Re: Variables and the message log  |
April 27, 2005, 10:57:54
I told you it was a good idea and would simplify the options + add a lot of new logging styles :D

Actually, I also knew it :) The only thing which always concerned me (and still does) is user-friendlyness. I mean, something like:

Code:
"%I%S  %_%N %~said %D%_%n%H%S  %h:%m:%s:%|%M"

does look confusing, right?

Ok, maybe not for you, for me neither, but certainly for a novice user who never had been working with such variables before. Experienced Miranda users won't have a problem with that system, they are used to variables as they are everywhere in MiM.

That's why I plan to keep most of the message log related menu entries to quickly show/hide certain elements. My idea is that a novice user should not HAVE to deal with the templates and still get a good looking message log, together with some options to change the layout quickly "on the fly". He won't even see the templates, unless he invokes the template set editor.

"Advanced" users who feel that the available menu options are not enough to change the look of their message log can then still customize it by editing the templates.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#5
Re: Variables and the message log  |
April 27, 2005, 12:49:02
Oh, i thought that this new system would reduce the number of options in tabsrmm but it seems to increase them.
I don't have a problem with that, just that you wanted to reduce the options and i thought this would be a way to do it and add endless new options to the log while at it :)

Code:
"%I%S  %_%N %~said %D%_%n%H%S  %h:%m:%s:%|%M"
What's %| ? :)

Quote
Probably a few to invoke bold, underline, maybe italic (no colors, sorry, these are still in the font setup).
Aren't %*, %_ and %/ used for those already ?

I know that we're not really supposed to ask for variables but ... :)
How are you handling status events, will the event message string be like it is now : "<nickname> is now Online (was Away)" or will we have a variable for current status and previous status ? Is this possible, or does miranda send you the status message and there's nothing you can do about it ?
Can we use precision, width and justification formatting on variables (or some of the variables) ?
... and ... :) maybe a toggle variable that moves to the rightmost end of the richedit, writes the string there until it's parsed again then it returns to the previous position :). So we can have something like like this (see atachment). It's no biggie if it's not implemented though :)

EDIT:
It may not be that user-friendly, but as you said, miranda users are pretty accustomed to these things (i mean, miranda isn't a walk in the park to configure)
I'm sure you've seen mToolTip :D
Like i said before, keep the current buttons but make them modify the template instead of making the template parser skip those variables. That way they see what every variable is for and can quicky catch up and tweak it theirselves. Just an idea though, i didn't give "miranda support and assistance" to anyone yet so i might not know what's at stake :D

EDIT:
Anyway, there's no point in doing these things if i'm the only one that wants them ... i'm using IeView now
minor typos
Last Edit: April 27, 2005, 13:03:36 by eblis
#6
Re: Variables and the message log  |
April 27, 2005, 13:17:21
Oh, i thought that this new system would reduce the number of options in tabsrmm but it seems to increase them.

Nope, the message log page is already cleared and down to less than 1/2 of the old options.

Quote
I don't have a problem with that, just that you wanted to reduce the options and i thought this would be a way to do it and add endless new options to the log while at it :)

Also, the menus have been simplified a bit - basically, there are still the toggles to show nickname/timestamp, switch from normal to groupmode and so on. These will stay for people who don't want to deal with templates. The default set of templates is hardcoded into the DLL and is used as long as you don't define your own set (then, it's saved to the database). The hardcoded set will also make it very easy to "revert to default", if something goes terribly wrong while editing templates

Quote
Code:
"%I%S  %_%N %~said %D%_%n%H%S  %h:%m:%s:%|%M"
What's %| ? :)

It's a "tab" - it advances to the position set by the "indent" value. Useful if you're using grouping and have timestamps with variable length (AM/PM or if you decide not to show leading zeros for the hour - depends on your localized time formatting). That tab will allow to properly align the messages.

Quote
Aren't %*, %_ and %/ used for those already ?

Already working, yes.

Quote
I know that we're not really supposed to ask for variables but ... :)
How are you handling events, will the event message string be like it is now : "<nickname> is now Online (was Away)" or will we have a variable for current status and previous status ? Is this possible, or does miranda send you the status message and there's nothing you can do about it ?

I'am afraid, its not possible. The status change events are created by the message window dialog and are then added to the db (like any other message, preformatted).I could set them to use variables, but then they would look weird in any history plugin... However, the text you can see for status change events can be changed by using a language file.

Variables for the current status should be possible, also, tabSRMM saves the previous status in the message dialog.

Quote
Can we use precision, width and justification formatting on variables (or some of the variables) ?

In general, the layout capabilities of the rich edit control are very lmited (compared to HTML or CSS). It's basically designed for floating text - for example, it doesn't even support textflow around images. Pixel-exact operations are not very well handled (and the only way to use them are tabs or paragraph indent values).

Quote
... and ... :) maybe a toggle variable that moves to the rightmost end of the richedit, writes the string there until it's parsed again then it returns to the previous position :). So we can have something like like this (see atachment). It's no biggie if it's not implemented though :)

The rich edit does not allow this. It does support right-aligning, but only for entire paragraphs. In theory, it could be done with right-aligned tabs, but that's not going to work well when you resize the window (that would require a message log rebuild on resize, which isn't exactly what I want).
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#7
Re: Variables and the message log  |
April 27, 2005, 15:48:24
Can we use precision, width and justification formatting on variables (or some of the variables) ?

In general, the layout capabilities of the rich edit control are very lmited (compared to HTML or CSS). It's basically designed for floating text - for example, it doesn't even support textflow around images. Pixel-exact operations are not very well handled (and the only way to use them are tabs or paragraph indent values).
Oh, when i asked about formatting i was thinking about basic string manipulation and not pixel-exact operations :); something like: limit the number of characters or string is at least x characters long (spaces for new characters) ... you know ... C precision, width and justification formatting :)

i.e. %.15N - this would limit the name to 15 characters or something. %.2h would always put the leading 0 even if the current locale doesn't  ... and things like that, not pixel-exact operations :)
#8
Re: Variables and the message log  |
April 27, 2005, 15:56:06
i.e. %.15N - this would limit the name to 15 characters or something. %.2h would always put the leading 0 even if the current locale doesn't  ... and things like that, not pixel-exact operations :)

I'am thinking about this, though it won't probably be in the first version. Basically, allowing macros to pass variables to printf() style formatting - however, this code needs to be "foolproof" to avoid possible crashes due to buffer overruns and more...
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#9
Re: Variables and the message log  |
April 27, 2005, 21:11:40
variables for status could allow showing the status msg if available
#10
Re: Variables and the message log  |
April 27, 2005, 22:37:59
Yeah but if the status event is formmated already (which nightwish said it was) it could be represented by the same variable as any other event string (%M)
#11
Re: Variables and the message log  |
April 28, 2005, 00:07:04
This is the first draft of the template editor.

The empty space on the bottom is reserved for some help text (listing available variables and so on..)

The preview window will show a "faked" message with sample text to visualize the look of the current template, using exactly the same code which also sends the real messages to the message window.

Templates are fully unicode safe, so they may contain any character, even characters from multiple charsets.

edit Screenshot updated - already works, including basic event preview.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
Last Edit: April 28, 2005, 06:45:57 by Nightwish
#12
Re: Variables and the message log  |
April 28, 2005, 06:19:19
Sorry for my offtop, but I wonder when this version will be available? Well, as I've understood, the next version will be 1.0, not 0.9.9.95, am I right?
#13
Re: Variables and the message log  |
April 28, 2005, 06:33:54
Sorry for my offtop, but I wonder when this version will be available? Well, as I've understood, the next version will be 1.0, not 0.9.9.95, am I right?

This version will be available within the next few days, including the template-enabled message log and the template editor. Most likely not full-featured, but useable.

In any way, 1.0 will have these features (tray support, event popups, templates for the message log).
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#14
Re: Variables and the message log  |
April 28, 2005, 18:19:52
This version will be available within the next few days, including the template-enabled message log and the template editor. Most likely not full-featured, but useable.
Woohoo, I want the new version NOW :D I'm really looking forward to it. You rule Nightwish - everytime there is new version, there are so many new features (and mostly good ones). This is just a big "Thank you!" :)

TabSRMM is surely the best plugin for Miranda ever!
__
;D Sorry for my English ;D
#15
Re: Variables and the message log  |
April 30, 2005, 02:46:42
Any chance for a beta testing on 9x before actual release, so we should just "take what we're given"? Or I'd better ask: would it be a 9x (non-unicode) version of it?
#16
Re: Variables and the message log  |
April 30, 2005, 03:30:43
Any chance for a beta testing on 9x before actual release, so we should just "take what we're given"? Or I'd better ask: would it be a 9x (non-unicode) version of it?

That template stuff does work in the non-unicode build (including the editor and everything).
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#17
Re: Variables and the message log  |
April 30, 2005, 04:54:43
More variables...

%Hx (x = a number from 0 to 4) sets background color. X is a color index value into the color table, and the template editor allows you to define up to 5 colors which you can use with some variables in templates.

If x is not given, then this variable sets the "default" background color for the event (it does respect incoming/outgoing background colors, if they are in use).

%-x - draws a horizontal grid line with the given color. Again, if x is left out, the default grid line color will be used.

With these things, layouts like in the attached screenshots will be possible. Sure, it's not IEView, but still pretty cool for a basically plain-text based message log :)



__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#18
Re: Variables and the message log  |
May 09, 2005, 14:51:53
Is it just me or is any change I'm doing and applying to the preview, does not show up correctly?
#19
Re: Variables and the message log  |
May 09, 2005, 15:05:01
You first have to save the template and then try the preview button; that should make the changes appear.
But for some people, myself included, the preview doesn't work even if i save the template beforehand (the changes appear in the log though :) )
#20
Re: Variables and the message log  |
May 09, 2005, 15:21:22
You first have to save the template and then try the preview button; that should make the changes appear.
But for some people, myself included, the preview doesn't work even if i save the template beforehand (the changes appear in the log though :) )

Template editor is buggy and incomplete (it was the main reason for the delay of .95). It will improve, preview already works while editing the template (it takes the string from the input box) and the overall handling of the template editor will be better in the next release.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#21
Re: Variables and the message log  |
May 09, 2005, 15:32:08
Well, like eblis said, it doesn't work... It most certainly does not take the string and apply it to the preview...
#22
Re: Variables and the message log  |
May 09, 2005, 16:21:26
Well, like eblis said, it doesn't work... It most certainly does not take the string and apply it to the preview...

I know that it doesn't work. Please stop reporting these things.. 95 is a PRE release, it is supposed to be incomplete and buggy. Just don't use it, if these things are disturbing for you.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#23
Re: Variables and the message log  |
May 09, 2005, 16:31:28
You said it does work, so I felt like I should emphesis it, but maybe I understood you wrongly. My bad, sorry. ;)
#24
Re: Variables and the message log  |
May 09, 2005, 22:43:37
You said it does work, so I felt like I should emphesis it, but maybe I understood you wrongly. My bad, sorry. ;)

It does work in my current code (which is not yet released). Yes, probably a misunderstanding - no problem :)
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#25
Re: Variables and the message log  |
May 12, 2005, 08:41:20
Man, it is diffecult to master the new message log editor.
Will a tutorial be written at some point and sharing of user-made themes?
#26
Re: Variables and the message log  |
May 12, 2005, 08:53:52
You can already share user made themes.
Use the "message log options" button from any container toolbar, and then "export/import message log settings".
Only the theme (colors, fonts and such) and the templates are imported/exported, others settings remain unchanged.

EDIT:
Also, make sure you download the pre3 version, it's out now. Nightwish improved the template editor and added a few new options too :)
Last Edit: May 12, 2005, 08:58:42 by eblis
#27
Re: Variables and the message log  |
May 12, 2005, 14:23:11
Man, it is diffecult to master the new message log editor.
Will a tutorial be written at some point and sharing of user-made themes?

Yes, a tutorial and better help will be written. The template editor already contains that "link" which opens the variables thread on this forum. The first post of this thread contains more help on the available variables and I'll frequently update it with more information.

Also, sharing templates works (you can import/export "themes"). These themes do only contain and change visual settings in the message log - no settings which affect the functionality or handling of tabsrmm are changed when you import a theme.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#28
Re: Variables and the message log  |
May 13, 2005, 07:56:14
%fn%&r
does change the font .. but a see "r" instead of "today"
%fn%c3%&r - > see "3r"
what is wrong?
none of your examples work too
#29
Re: Variables and the message log  |
May 13, 2005, 12:48:56
%fn%&r
does change the font .. but a see "r" instead of "today"
%fn%c3%&r - > see "3r"
what is wrong?
none of your examples work too

Sorry, this is work in progress and not yet available in pre3.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#30
Re: Variables and the message log  |
May 14, 2005, 14:41:46
OK, I've been playing with the template editor for about an hour without success.
(I also tried compiling the latest source where the %c variable is and tried that one... same result)

Screen1:
I have no idea how to make the error font color red. In some previous releases it WAS red but now (I don't know why) it takes it's color somehow from the outgoing message setting. Is it even possible to change this color?

Screen2:
Any way to change the color for old status changes? It's always the same (red in my case). The thing is that I want to use a red color for new status changes and something like "pink" color for the old status changes. And again... is that even possible? This is getting complicated... using the $ and # and %f and %c and everything... ohhhh.

Thanks!
__
;D Sorry for my English ;D
Last Edit: May 14, 2005, 14:43:37 by Koki.v3
#31
Re: Variables and the message log  |
May 14, 2005, 14:57:06
OK, I've been playing with the template editor for about an hour without success.
(I also tried compiling the latest source where the %c variable is and tried that one... same result)

Screen1:
I have no idea how to make the error font color red. In some previous releases it WAS red but now (I don't know why) it takes it's color somehow from the outgoing message setting. Is it even possible to change this color?

It's using the error font color (a special font definition in "fonts and colors"

Oh, and %c does work, but, and I think, I have mentioned this in the first article of this thread, you have to use the & modifier on the following variable(s).

& means that the variable will not use it's own font for the given context. If you forget to use &, then %c and %fx variables won't have any effect, because the folowing variable will override the font + color with its own settings.

BTW: that stuff was committed to cvs last night. It wasn't working before, and it doesn't work in pre3.

like: %N will print the nickname, always with the font and color set for Nicknames (depending on the context, incoming, outgoing, old, new etc..)

But %&N will print the Nickname without switching to the font configured for nicknames. It will continue to use the font which is currently active...

So a sequence like: %D, %&N will print the date and the Nickname, but both will be using the "date" font (the & modifier prevents a font change).

If it doesn't work, then your sources are probably too old. Remember, that on sourceforge, anonymous CVS "lags" 6-10 hours behind the master repository.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#32
Re: Variables and the message log  |
May 14, 2005, 15:14:09
It's using the error font color (a special font definition in "fonts and colors"
Why is it blue then? In the setting you mentioned there is a red color defined... I checked that before I posted.
Template is "%I %e%l%M"

So a sequence like: %D, %&N will print the date and the Nickname, but both will be using the "date" font (the & modifier prevents a font change).
Hmm, I tried simply %N %&M and I only get this: (attachment)

If it doesn't work, then your sources are probably too old. Remember, that on sourceforge, anonymous CVS "lags" 6-10 hours behind the master repository.
In the pre3 release, it does display "in now online (was away)" but the color is still red (not the same as the nickname is). In the latest source (what I have) I can see only what I attached... however in the message log this "M" is "pink" and not red.
__
;D Sorry for my English ;D
#33
Re: Variables and the message log  |
May 14, 2005, 15:40:18
& doesn't work for messages (%M variable), yet...
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#34
Re: Variables and the message log  |
May 14, 2005, 16:27:01
__
;D Sorry for my English ;D
#35
Re: Variables and the message log  |
May 22, 2005, 14:32:32
%-x doesn't insert lines- but  highlight text (changes bg) :(
#36
Re: Variables and the message log  |
May 22, 2005, 14:52:22
%-x doesn't insert lines- but  highlight text (changes bg) :(

It does insert a line, but you MUST use a %H after it to change the background color again.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#37
Variables and the message log <- a really cool thing! |
May 22, 2005, 16:56:24
Thanks, what a really asskicking thing.Cool.
But
1) there is not all variables listed in plugin window so newbie will have some difficulties at first time.I had few hard minutes  switching between browser and Miranda :D

2)What about following:use colours modifiers (like %fd) to specify coloring of date, nick etc... in explicit manner?
I.e. by default date coloring should look something like %fd %E (without explicit coloring use some default text font or previously assigned).Why? Let's assume you want to have log like
ICON [XX-XX-XX YY:YY:YY] <Nickname> Message text

Now try to acheive that all "[", "]", "<" and ">" symbols are using same colour like according variable.Now it is possible with things like  %fd[%E] %fn<%N> but it is was not evident for me immediately and logic is quite strange(assimetric).I'm thinking that text coloring should be more explicit so it is will be more easy to deal with it.I.e. %fd[%E] should be used by default and %fd is only what makes %E looking like Date.And er... maybe add option to specify FG\BG colours for %fd directly, just like HTML allows to do?
#38
Re: Variables and the message log <- a really cool thing! |
May 22, 2005, 17:04:22
Thanks, what a really asskicking thing.Cool.
But
1) there is not all variables listed in plugin window so newbie will have some difficulties at first time.I had few hard minutes  switching between browser and Miranda :D

That's intentional. There is simply not enough space on the dialog to explain variables enough. Even increasing the dialog size wouldn't help much - I cannot put the entire posting on it. That's why I put the link on the dialog box.

Quote
2)What about following:use colours modifiers (like %fd) to specify coloring of date, nick etc... in explicit manner?
I.e. by default date coloring should look something like %fd %E (without explicit coloring use some default text font or previously assigned).Why? Let's assume you want to have log like
ICON [XX-XX-XX YY:YY:YY] <Nickname> Message text

Explicit coloring is possible. You need to use the %fx, %cx variables and the "&" modifier on following variables so that these variables won't "switch" the font.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#39
Re: Variables and the message log  |
May 22, 2005, 17:43:29
Quote
I cannot put the entire posting on it. That's why I put the link on the dialog box.
Maybe tooltips would help?
#40
Re: Variables and the message log  |
May 22, 2005, 17:46:42
Quote
I cannot put the entire posting on it. That's why I put the link on the dialog box.
Maybe tooltips would help?

Maybe, but I'am not going to add more stuff there. Users really should read the full docs :)
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#41
Re: Variables and the message log  |
May 22, 2005, 18:07:50
You can do it like mToolTip have done with his variables list.. is very handy, is no need to waste space in option tab and you don't need a browser to get variables list.
#42
Re: Variables and the message log  |
May 22, 2005, 18:18:41
You can do it like mToolTip have done with his variables list.. is very handy, is no need to waste space in option tab and you don't need a browser to get variables list.

You mean a separate help window which pops up "on request"...

Well.. that may be a better idea.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#43
Re: Variables and the message log  |
May 22, 2005, 22:48:20
when I wanna to add a white line above  highlighted part of my templates (attached image line2)
I get , besides new line.. a whole new row above (attached image line1).. why?
One more bug in first attachment.. last 2 colors in the bottom.. has disappeared
#44
Re: Variables and the message log  |
May 22, 2005, 23:09:37
when I wanna to add a white line above  highlighted part of my templates (attached image line2)
I get , besides new line.. a whole new row above (attached image line1).. why?
One more bug in first attachment.. last 2 colors in the bottom.. has disappeared

Try to enable / disable the "normal" grid lines.

But please understand, that some things are simply not possible with rich edit formatting. This is not IEView. The rich edit syntax was developed for simple text editing, not to create advanced layouts. I tried my best to get most of the possible things, but everything is not and never will be possible. That's why IEView was developed - HTML and CSS is much more powerful than the rich edit syntax.

The blank line comes from additional micro linefeeds which are inserted after and before messages. They are required, because, otherwise, the message log won't update properly when new messages arrive (a paragraph needs to be "complete", otherwise it is not shown).
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#45
Re: Variables and the message log  |
May 24, 2005, 16:48:33
hi, what do you think about adding a variable for the contacts current status (online, offline, away and so on..)

I would like to have it...;)
#46
Re: Variables and the message log  |
July 01, 2005, 15:45:39
Does this mean relative date/time stamps are no longer available?  Also, what does %! do?  I can't seem to find an explanation for this variable.
Last Edit: July 01, 2005, 15:50:52 by tksh
#47
Re: Variables and the message log  |
July 01, 2005, 16:16:20
Quote
what is %!?
A dummy variable. It just prints the following text (until the next % is found) to the log. Only useful together with the # and $ modifiers to get different formatting in old and new events.

Relative time/date stamps are still available.
#48
Re: Variables and the message log  |
July 02, 2005, 11:52:14
When I add a tab (%|) the line skips down a row. I would want it to just indent the text.
#49
Re: Variables and the message log  |
July 02, 2005, 14:31:35
Quote
what is %!?
A dummy variable. It just prints the following text (until the next % is found) to the log. Only useful together with the # and $ modifiers to get different formatting in old and new events.

Relative time/date stamps are still available.

Oops, a bit blind reading through that variables list.  Thanks for pointing out %R and %r.
#50
Re: Variables and the message log  |
September 09, 2005, 08:36:36
Hi.

I have an idea: would it be possible to make something like 'custom variables' like mTooltip has...? I mean in mtooltip.ini you can specify what values from database to take and it can be uses then in the tooltip (reffer to the mtooltip.ini from mtooltip.zip for examples and more info)... So the things like this would be possible then... is it doable at all...?
#51
Re: Variables and the message log  |
September 09, 2005, 10:34:58
Hi.

I have an idea: would it be possible to make something like 'custom variables' like mTooltip has...? I mean in mtooltip.ini you can specify what values from database to take and it can be uses then in the tooltip (reffer to the mtooltip.ini from mtooltip.zip for examples and more info)... So the things like this would be possible then... is it doable at all...?
Isn't this possible with the variables.dll already? If yes, then it might be easier to use this plugin...
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#52
Re: Variables and the message log  |
September 09, 2005, 14:49:25
Isn't this possible with the variables.dll already? If yes, then it might be easier to use this plugin...
Actually I don't know... :/ Can I use the variables plugin with the template editor...?
#53
Re: Variables and the message log  |
December 15, 2005, 21:59:10
just wanted to point out that the preview and what you get in the tabsrmm window isnt 100% accurate. like say that extra line from adding %-x to the front of a template, it does not show up in the tabsrmm window itself. and sometimes a space thats clearly visible in the template is ignored in the tabsrmm window itself (can have funny effects in combo with smileyadd and similar).
#54
Re: Variables and the message log  |
December 15, 2005, 23:36:39
just wanted to point out that the preview and what you get in the tabsrmm window isnt 100% accurate. like say that extra line from adding %-x to the front of a template, it does not show up in the tabsrmm window itself. and sometimes a space thats clearly visible in the template is ignored in the tabsrmm window itself (can have funny effects in combo with smileyadd and similar).

Known issue. Ignore it. The preview will never be 100% accurate.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#55
Re: Variables and the message log  |
December 16, 2005, 11:43:19
oops, as i was writing up a responce to you i noticed where the problem realy was located...

basicly i used a edited variant of the basic templates. complete with date and time elements that i dont use (turned of using the message log settings).

the template had %h:%m:%s: %M. notice the space between %s: and %M.

but as i had seconds turned of in the message log options, everything between %m: and %M was removed. and as i have smileyadd set to display smileys even tho they are not surounded by spaces i ended up with smileys showing up based on the : and the first letter of the message :P

i guess ill have to go over my templates and trow out everything that i dont use ;)
#56
Re: Variables and the message log  |
December 28, 2005, 12:27:11
the dates variables don't work on RTL templates :|
#57
Re: Variables and the message log  |
December 28, 2005, 12:40:47
the dates variables don't work on RTL templates :|

Don't see any reason why they shouldn't work.. RTL makes no difference for timestamps. They work fine for me in both ltr and rtl message log format.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#58
Re: Variables and the message log  |
December 28, 2005, 15:43:08
the dates variables don't work on RTL templates :|

Don't see any reason why they shouldn't work.. RTL makes no difference for timestamps. They work fine for me in both ltr and rtl message log format.

Well, this is what I used for Group In (Start):
Code:
%I%S %N, %E%! : %l %fd%/%/[%h:%m:%s%/%/] %| %M

It works great on LTR, but in RTL it doesn't show the %E variable..

btw (and I don't belive it matters), I'm using TabSrmm 0.9.9.97
Last Edit: December 28, 2005, 15:53:29 by Jacklawi
#59
Re: Variables and the message log  |
December 28, 2005, 15:47:58
Well, this is what I used for Group In (Start):
Code:
%I%S %N, %E%! : %l %fd%/%/[%h:%m:%s%/%/] %| %M

It works great on LTR, but in RTL it doesn't show the %E variable..

Must be a local configuration problem. It works for me.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#60
Re: Variables and the message log  |
December 28, 2005, 16:06:30
Well, this is what I used for Group In (Start):
Code:
%I%S %N, %E%! : %l %fd%/%/[%h:%m:%s%/%/] %| %M

It works great on LTR, but in RTL it doesn't show the %E variable..

Must be a local configuration problem. It works for me.

It works on the preview but on the message log it doesn't :\

(don't u just hate these prbs?)

btw I moved to 0.9.9.99 and now instead of my nick it shows "(Unknown Contact)"

EDIT: OH MY GOD !!!
In the msg window, at the timestamp settings the option "Show Date" was checked!!

STUPID STUPID ME !!

Now just the problem with the Unknown Contact :))
Last Edit: December 28, 2005, 16:19:39 by Jacklawi
#61
Re: Variables and the message log  |
December 28, 2005, 16:59:55
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#62
Re: Variables and the message log  |
May 20, 2006, 00:01:47
Hi, everyone!
I have an issue with the %s sequence on my system :eek: Whenever I input the %s - it eats up everything untill next modifier. It seems it places the NULL string instead of seconds. I came to this conclusion cos' if I use %t instead of %h:%m:%s it won't show you seconds as well. I guess this is the problem of my system, but I don't really know how and where I can change something in order to solve my problem. In Windows regional settings 'HH:mm:ss' pattern is used. Thus, I really wonder what I've missed.
So, would you PLEASE help me? :)

PS.
However, the template preview is working correct - it shows seconds just like I want...
Last Edit: May 20, 2006, 00:11:07 by Elle
#63
Re: Variables and the message log  |
May 20, 2006, 00:42:29
Hi, everyone!
I have an issue with the %s sequence on my system :eek: Whenever I input the %s - it eats up everything untill next modifier. It seems it places the NULL string instead of seconds. I came to this conclusion cos' if I use %t instead of %h:%m:%s it won't show you seconds as well. I guess this is the problem of my system, but I don't really know how and where I can change something in order to solve my problem. In Windows regional settings 'HH:mm:ss' pattern is used. Thus, I really wonder what I've missed.
So, would you PLEASE help me? :)
This happens when the option to show seconds in the message log is disabled. Then the variable will be skipped.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#64
Re: Variables and the message log  |
May 20, 2006, 13:42:20
This happens when the option to show seconds in the message log is disabled. Then the variable will be skipped.
Well, I see... But still I can't find this option anywhere
#65
Re: Variables and the message log  |
May 20, 2006, 14:05:58
This happens when the option to show seconds in the message log is disabled. Then the variable will be skipped.
Well, I see... But still I can't find this option anywhere

There are two places.

1) the message log option page
2) the message log settings menu (you can find this on the menu bar or by clicking the toolbar button with the "Message log options" tooltip.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#66
Re: Variables and the message log  |
May 20, 2006, 17:15:09
There are two places.

1) the message log option page
2) the message log settings menu (you can find this on the menu bar or by clicking the toolbar button with the "Message log options" tooltip.
But there's no such places in my Miranda
1) I go to Miranda Options, select there Message Sessions->Message Window, choose the Message Log tab - there's no 'show seconds' option at all!
2) I've turned on Miranda Toolbar: there're 6 buttons: Main Menu, Show/Hide offline contacs, Toggle Grouping, Find/Add contacs, Preferences and Toggle Sounds. NO button for 'Message log options'
May be I should turn off TabSrmm for a while to see if such an option appears?

PS. I use the latest #54 Miranda build.
#67
Re: Variables and the message log  |
May 20, 2006, 17:17:19
2) I've turned on Miranda Toolbar: there're 6 buttons: Main Menu, Show/Hide offline contacs, Toggle Grouping, Find/Add contacs, Preferences and Toggle Sounds. NO button for 'Message log options'
May be I should turn off TabSrmm for a while to see if such an option appears?

It is the toolbar in the message window itself, not on the contact list.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
#68
Re: Variables and the message log  |
May 20, 2006, 17:47:55
Ohhh!! That's it!!!!!!!!!!!! Feel so stupid and happy Thank you very much, dear Nightwish!!! Wish you good nights