Hm, patchou could use the vista search api for this, but that leaves XP out in the cold
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);
}