What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » [Suggestion] Messenger Plus! Instant Search Log Viewer

[Suggestion] Messenger Plus! Instant Search Log Viewer
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer
Hm, patchou could use the vista search api for this, but that leaves XP out in the cold :P

edit:
XP could just install windows desktop search, it seems like it has the same api : >

edit2:
hm could be done as a plus script *starts*

edit3:


hm Ive created code to search the log directory for "hello" and debug.trace the results, though :( because the IE control isnt available for scripts i cant display the results and highlight the phrase :(
code:

var CSIDL_PERSONAL = 0x5;
var reglogdir = "HKCU\\Software\\Patchou\\Messenger Plus! Live\\" + Messenger.MyEmail +"\\Preferences\\LogsDirectory";

var shell  = new ActiveXObject('WScript.Shell');

try{
    var dir = shell.RegRead(reglogdir);
}catch(e){
    var dir = getSpecialDir(CSIDL_PERSONAL) + "\\My Chat Logs";
}
dir = dir.replace("\\", "/");

var db = new ActiveXObject('ADODB.Connection');
db.open("Provider=Search.CollatorDSO;Extended Properties='Application=Windows';");

var results = db.Execute("SELECT System.ItemPathDisplay FROM SystemIndex WHERE CONTAINS('hello') AND SCOPE='file:" + dir + "'");

while(!results.EOF){
    Debug.Trace(results.Fields.item('System.ItemPathDisplay'));
    results.MoveNext();
}


function getSpecialDir( CSIDL){
    var szSendToPath = Interop.Allocate((255 *2) +2);
    Interop.Call("Shell32", "SHGetSpecialFolderPathW", 0, szSendToPath,  CSIDL, 0);
    return szSendToPath.ReadString(0);
}


This post was edited on 08-13-2007 at 05:02 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
08-12-2007 11:42 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Suggestion] Messenger Plus! Instant Search Log Viewer - by riahc4 on 07-12-2007 at 08:10 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Jimbo on 07-17-2007 at 04:41 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Salem on 07-17-2007 at 05:01 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by CookieRevised on 07-17-2007 at 07:08 PM
RE: RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Salem on 07-17-2007 at 08:55 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by riahc4 on 08-08-2007 at 12:03 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Matti on 08-08-2007 at 03:26 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by vaccination on 08-08-2007 at 10:04 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by markee on 08-08-2007 at 11:20 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by CookieRevised on 08-12-2007 at 07:01 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Nathan on 08-12-2007 at 08:01 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by -dt- on 08-12-2007 at 11:42 PM
RE: RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by ahmetgns on 08-22-2007 at 08:05 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by Patchou on 08-23-2007 at 04:20 PM
RE: [Suggestion] Messenger Plus! Instant Search Log Viewer - by riahc4 on 08-29-2007 at 06:39 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On