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