Hi,
I am currently writing a front-end for my CarPC, but cannot get the current frequency form radiator. I can control every part of it apart from getting the Frequency from it. I am coding in Visual Basic .NET 2005. I looked around on the internet and it looks like GetWindowText.
When you change the frequency in Radiator, the windows title changes and has the frequency in it....
eg. 99.30 FM - Radiator (Muted)
I have used the code below to get the windowtext, so I can take the first part of the returned string to give me the frequency........
Public Function Radiator_GetFrequency() as String
Dim buf As String
Dim Title As String
Dim Length As Integer
Length = GetWindowTextLength(hWndRadiator)
buf = Space$(Length)
Length = GetWindowText(hWndRadiator, buf, Length + 1)
Title = buf.Substring(0, 5)
Return Title
End Function
...but all I get back from the function is the string "Radiator", why is this, has anybody else managed to get the frequency from Radiator?
Thanks for any help