Chase Wilson wrote in post #1022417:
> I want to use ruby to monitor other programs that are running in
> Windows. Is there anyway to access information about other programs
> through ruby? If not does anyone know any useful windows command line
> commands to find out that kind of information.
>
> I saw an application which could also look at the title of an open
> window and use that information. This information would be super useful
> as it gives insight into what the user is doing in that application.
> E.g. looking at a webpage in XP, the title usually has the website name
> etc.
>
> The goal of all this is to basically help with tracking the time a user
> spends working on certain projects.
>
> Any ideas?

Depending upon your appetite for rolling-your-own, check out using FFI
to converse with the Win32 API.

  http://rubygems.org/gems/ffi/versions/1.0.9-x86-mingw32
  https://github.com/ffi/ffi/wiki/Windows-Examples

And you might find win32ole (included in MRI and JRuby) useful similar
to

  http://pragmaticdevnotes.wordpress.com/2008/12/17/with-a-little-help-from-ruby/

Jon

-- 
Posted via http://www.ruby-forum.com/.