quote:
Originally posted by matty
function GetProcessName(){
return new ActiveXObject("WbemScripting.SWbemLocator").ConnectServer(".", "root\\cimv2").ExecQuery("SELECT * FROM Win32_Process WHERE Name LIKE '%" + sExeName + "%'").Count !== 0;
}[/code]
Thank you very much matty. Just 2 little questions from a newbie...
1.- "root\\cimv2" should be changed?... if so, to what?.
2.- If I want to change to a custom state, how should I have to change the line:
Messenger.MyStatus = STATUS_BUSY
Where can I find the constant name of my MSN customized state?
Ty again!.