All Miranda core variables

Posted on 1st April 2009 by Vasilich in Miranda IM

Today i will try to explain meaning of all internal (”core”) variables, stripped from latest SVN. You can use all these variables in received files path, and maybe later on – somewhere else in Miranda.
 
%nick%       - nick of current contact (if defined).
%proto%     – protocol you are talking to current contact via (if defined). Account name is used when protocol supports multiaccounts.
%userid%   - UserID of current contact (if defined). It is like UIN Number for ICQ, JID for Jabber, etc.

%miranda_path%              – path to root miranda folder.
%miranda_profile%          – path to current miranda profile.
%miranda_profilename% – name of current miranda profile (filename, without extension).

%miranda_avatarcache%  – will return parsed string %miranda_profile%\Profiles\%miranda_profilename%\AvatarCache
%miranda_logpath%          – will return parsed string %miranda_profile%\Profiles\%miranda_profilename%\Logs
%miranda_userdata%
        – will return parsed string %miranda_profile%\Profiles\%miranda_profilename%

%appdata%             – same as environment variable %APPDATA% for currently logged-on Windows user, but got directly from Windows (that should exclude possibility of hacking it).
%username%          – username for currently logged-on Windows user. Same as Environment variable %USERNAME% (see %appdata% above)
%mydocuments%   – “My Documents” folder for currently logged-on Windows user.
%desktop%             – “Desktop” folder for currently logged-on Windows user.

%xxxxxxx%           - all Environment variables that are defined in current Windows session (like %path%, %systemroot%, %allusersprofile%) etc.

All these variables existed in latest SVN when i wrote it, Rev.9314

3 Comments »

  1. Можно узнать от Вас причину, побудившую “испортить” проверенные временем пути?
    Я имею ввиду новые пути “%miranda_avatarcache%”, “%miranda_logpath%” и “%miranda_userdata%”.

    Comment by Monty — 15 June 2009 @ 18:53

  2. а старых путей вообще не было. переменные ввели совсем недавно.
    а причина введения жёстких путей и мне не совсем понятна

    Comment by Vasilich — 15 June 2009 @ 21:32

  3. Да, насчет “проверенные временем” наверное я загнул, но все же, так как это сейчас получается не красиво.
    Создаются разные папки по разным путям, но относящиеся к одному профилю.
    Если из формируемых путей убрать “Profiles\”, то все встает на свои места.

    Comment by Monty — 16 June 2009 @ 19:38

Leave a comment

Powered by WP Hashcash