Skip to content
⌘ NSIS Forum Archive

Sniff for Open Programs

5 posts

cliverman#

Sniff for Open Programs

Is there a comand or a combination of commands that would allow me to determine if a program is open on a users machine.

Cheers,
Chris
Guest#
Chris,

you should know he window name (e.g. Notepad) and/or it's class. Then use FindWindow to verify if the window is open. Use SendMessage to close the window if necessary.

You can detect name and/or class using some Spy tool (e.g. Spy++ of VC++).

Good luck, greetz,
Hendri.
linuxamp#
is there a way other than FindWindow name/class ?
can i find a running file "msmsgs.exe" and SendMessage to close?
Thank you
Guest#
Chris,

I don't think so.
You should use FindWindow and SendMessage.

see also latest thread about SendMessage:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Good luck,
Hendri.
Guest#
And see this thread for further information about spy...

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Greetz,
Hendri.