chris carter's web log

Home |  Contact |  Admin
 

WPF Application: What is That?

Posted on November 16, 2008

I'm playing around with some different WPF controls and WPF in general and wrote a little app to help me find out what processes are running on my machine.  I used http://searchtasks.answersthatwork.com/index.html to find out details about processes by name.  Here's a screen shot of the app(click to enlarge):

Here's the code(it assumes you have VS2008 SP1 installed): WhatIsThat.zip

Comments

Tobin Harris

Nice idea :)

I had a thought... If you want a smaller application, that just gets the data rather than showing the browser, you could probably mine that data from the web page in a few lines of code...

var doc = new XmlDocument();
doc.Load("http://searchtasks.answersthatwork.com/tasklist.php?File=firefox.exe");
var nameNode = doc.SelectSingleNode("//div[@name='programName']");
var programName = nameNode.InnerText;
//repeat for each bit you want

I might give that a go if I get a minute. It also assumes the web site is valid XHTML, which I haven't checked.
 

 

Post a Comment

(required)
(required)
(no HTML!)