What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Change state when a specific program starts

Change state when a specific program starts
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Change state when a specific program starts
quote:
Originally posted by SuperAs
1.- "root\\cimv2" should be changed?... if so, to what?.
No you don't have to change that; however if it is not working try this:
Javascript code:
function GetProcessName(){
    return new ActiveXObject("WbemScripting.SWbemLocator").ConnectServer(".").ExecQuery("SELECT * FROM Win32_Process WHERE Name LIKE '%" + sExeName + "%'").Count !== 0;
}

quote:
Originally posted by SuperAs
2.- If I want to change to a custom state, how should I have to change the line:
If you mean personalized status; those are not accessible using Plus! scripting.

This post was edited on 05-11-2011 at 05:34 PM by matty.
05-11-2011 05:26 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Change state when a specific program starts - by SuperAs on 05-10-2011 at 03:38 PM
RE: Change state when a specific program starts - by matty on 05-10-2011 at 04:55 PM
RE: RE: Change state when a specific program starts - by SuperAs on 05-11-2011 at 11:41 AM
RE: Change state when a specific program starts - by matty on 05-11-2011 at 05:26 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