What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] Titlebar of App -> PSM

Pages: (2): « First « 1 [ 2 ] Last »
[Request] Titlebar of App -> PSM
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [Request] Titlebar of App -> PSM
This script displays all window titles in your PSM. It's based on Matty's code above, but edited... (it will also hide contact's emails when talking on WLM ;))

.plsc File Attachment: ActiveWindow.plsc (934 bytes)
This file has been downloaded 165 time(s).
<Eljay> "Problems encountered: shit blew up" :zippy:
12-22-2008 03:29 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [Request] Titlebar of App -> PSM
I don't think Sam wanted it to show the active window's title in your PSM...
12-22-2008 03:44 AM
Profile E-Mail PM Web Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: [Request] Titlebar of App -> PSM
That is cool, I'll probably just use that, but what I wanted is I just specify the .exe of the program....and if it's open then set your PSM to it :p...however yours does the job just as well....maybe an ability to "exclude" programs, dunno...Whichever is easier :p

Thanks :)

This post was edited on 12-22-2008 at 05:08 AM by prashker.
12-22-2008 05:08 AM
Profile PM Find Quote Report
Pinecone
New Member
*

Avatar
Coffee Powered

Posts: 9
34 / Male / Flag
Joined: Dec 2008
RE: [Request] Titlebar of App -> PSM
Is this what you wanted? It shows the name of the executable file that created the window that's currently in the foregound, however disallows showing all processes listed in the array named "Exclude".

Edit: Sorry, i didn't read the first post. This isn't what you want, but still kinda cool :p

.plsc File Attachment: ExePsm.plsc (2.82 KB)
This file has been downloaded 127 time(s).

This post was edited on 12-23-2008 at 06:52 PM by Pinecone.
12-22-2008 07:24 AM
Profile E-Mail PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: [Request] Titlebar of App -> PSM
Rofl, thanks anyways :p
12-22-2008 04:33 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] Titlebar of App -> PSM
What you need to do is have a config window that shows all the running processes and you can select which you want to show the title of.

This can be done by using EnumProcesses and GetModuleFileNameExW

Javascript code:
var aProcesses = Interop.Allocate(1024);
var bytesReturned = Interop.Allocate(4);
var szPidName = Interop.Allocate(512);
var hProcess;
 
Interop.Call('psapi', 'EnumProcesses', aProcesses, aProcesses.Size, bytesReturned);
 
for (var i=0; i<=bytesReturned.ReadDWORD(0)/4; i++) {
    hProcess = Interop.Call('kernel32', 'OpenProcess', 0x400 /* PROCESS_QUERY_INFORMATION */ | 0x10 /* PROCESS_VM_READ */, 0, aProcess.ReadDWORD(i*4));
    Interop.Call('psapi', 'GetModuleFileNameExW', hProcess, szPidName, 200, 500);
    Debug.Trace(aProcess.ReadDWORD(i*4)+' : '+szPidName.ReadString(0));
}
 
aProcesses.Size = 0;
bytesReturned.Size = 0;
szPidName.Size = 0;


Untested code as I am at work.

This post was edited on 12-22-2008 at 05:59 PM by matty.
12-22-2008 05:41 PM
Profile E-Mail PM Find Quote Report
MicroWay
Senior Member
****

Avatar
Do you want me? Try to get me!

Posts: 571
Reputation: 16
36 / Male / Flag
Joined: Jul 2006
Status: Away
RE: [Request] Titlebar of App -> PSM
Hey guys, have you seen AppMon+ (on Database)????
;)

MAYBE isn't what it have been requested exactly, but it can help you out...

This post was edited on 12-23-2008 at 01:54 AM by MicroWay.
12-22-2008 10:34 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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