PDA

View Full Version : Window title>reg



Ron
October 13th, 2002, 12:55 PM
Maybe one can use the Targeting mechanism that girder offers, then this is a really trivial piece of code.

Thus an action plugin that sends a WM_GETTEXT to a window that girder points out to the plugin and then puts this result into a register.

<font size=-1>[ This Message was edited by: RonB on 2002-01-12 18:22 ]</font>

MMcM
October 13th, 2002, 12:55 PM
This is just the sort of thing that the DVDSpy plug-in does, intercepting Windows messages and extracting interesting bits of related data.

If you are comfortable editing C++ code, it should be straightforward to add this. It is all table-driven, but the table is written with macros. It sounds like you want to look for WM_SETTEXT on a window whose parent is the desktop. If there is more than one such window in the .EXE, then probably the window's class' name is different. A few minutes with Spy++ should point the way.

There has also been some discussion of how to make this easier by eliminating the VC++ requirement. One idea is to have something in the registry. The problem is how expressive that needs to be. The more cases there are where the extraction is the same and only the name of the .EXE changes, the more motivation there is for adding such a thing.

Of course, once you have the window title, you will want a plug-in that applies a regular expression to a text register to branch on match and extract pieces into other text registers.

mattwire
October 13th, 2002, 12:55 PM
Is it possible to put a windowtitle into a register? Basically I want to use an OSD to display the station my radio is tuned to. The only easy way I've found of retrieving station info is via window title. eg 'BBC Radio 1 97.90 - WinTV Radio'
thankyou.