Results 1 to 2 of 2

Thread: Getting current frequency from Radiator

  1. #1
    Constant Bitrate
    Join Date
    Sep 2006
    Location
    Cornwall, England
    Posts
    161

    Getting current frequency from Radiator

    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

  2. #2
    Constant Bitrate
    Join Date
    Sep 2006
    Location
    Cornwall, England
    Posts
    161

    Sorted!

    After a lot of searching on the internet I have found a way to get the frequency. The actual window that contains the frequency information is the parent to the Radiator window. You simply use the GetWindowLong to find the parent window handle and then use GetWindowText to get its title.

    Hope this is some help to someone.

Similar Threads

  1. Release new phoco integration preview
    By Robby BMW in forum Road Runner
    Replies: 544
    Last Post: 09-12-2009, 06:29 AM
  2. Replies: 1
    Last Post: 12-21-2005, 05:29 PM
  3. radiator problem / radiator keeps playing
    By superbowl in forum Centrafuse
    Replies: 1
    Last Post: 06-14-2005, 12:57 PM
  4. Problem with Radiator: can you help me ?
    By pgiordano in forum RR Bug Tracker
    Replies: 29
    Last Post: 03-22-2005, 12:29 PM
  5. People with tuners who work with radiator NATIVELY.
    By nappyjim in forum General Hardware Discussion
    Replies: 4
    Last Post: 02-18-2005, 10:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •