Well it's the typical Catch 22 - you want to know the Title (which has "9600" right now), but the Title is the only way you know how to locate the field, and the Title data changes so it's unusable for that.
Are you sure the ID changes?  That's very unusual.  Can you ask the developer to fix this?
Perhaps you can get the ID to change a few dozen times and see if there's a pattern, perhaps it is cycling through the same set of IDs.  With that, you could perhaps look for windows where the title is a number and the ID is in that set and the class is Static, and while it's not perfect, if nothing else meets that criteria on the window, you're guaranteed a match every time.
I find this test routine to be very helpful - it walks an entire window and shows handle, text, classname, parent, and window ID.  It looks like you've already explored the Text and ID but maybe when you see it all relative to the other controls, you will notice something different.
my @objects = FindWindowLike("SlickEdit");
for (@objects) {
   my ($hnd, $title, $class, $parent, $id) = window_info($_);
   print "$hnd, $title, $class, $parent, $id\n";
sub window_info {
   my $hnd    = shift || GetForegroundWindow (    ); # Handle to a window.
   my $title  = GetWindowText       ($hnd);
   my $class  = GetClassName        ($hnd);
   my $parent = GetParent           ($hnd);
   my $id     = GetWindowID         ($hnd);

 From: Cristian Casmala [mailto:casmala_c@yahoo.com]
Sent: Tuesday, July 03, 2007 12:08 AM
To: Erik Knepfler
Subject: RE: [Winguitest-general] read text from static field

It's not like a label, it's more like an non-editable edit field, if that makes any sense. I've attached a small picture of how the field looks like (target.jpg) and the info I get with a spying utility (test.jpg).


Erik Knepfler <erikk@marvell.com> wrote:
Is that like, a Label?

From: winguitest-general-bounces@lists.sourceforge.net [mailto:winguitest-general-bounces@lists.sourceforge.net] On Behalf Of Cristian Casmala
Sent: Monday, July 02, 2007 6:27 AM
To: winguitest-general@lists.sourceforge.net
Subject: [Winguitest-general] read text from static field

I have the following problem: I am able to locate correctly a
"Static" field in a window but I cannot get the text in it.

I've tried using WMGetText and GetWindowText, but both return an empty string.

Any other suggestions?


Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.